2009-09-08 15:47:30 -04:00
|
|
|
st_cflags = \
|
2010-10-05 10:15:22 -04:00
|
|
|
-I$(top_srcdir)/src \
|
|
|
|
-DPREFIX=\""$(prefix)"\" \
|
|
|
|
-DLIBDIR=\""$(libdir)"\" \
|
|
|
|
-DG_LOG_DOMAIN=\"St\" \
|
|
|
|
-DST_COMPILATION \
|
2014-08-07 14:06:19 -04:00
|
|
|
-DCLUTTER_ENABLE_EXPERIMENTAL_API \
|
|
|
|
-DCOGL_ENABLE_EXPERIMENTAL_API \
|
2010-10-05 10:15:22 -04:00
|
|
|
-DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
|
|
|
|
$(ST_CFLAGS) \
|
|
|
|
$(NULL)
|
2009-09-08 15:47:30 -04:00
|
|
|
|
|
|
|
st_built_sources = \
|
2010-10-05 10:15:22 -04:00
|
|
|
st-enum-types.h \
|
2011-10-18 18:17:49 -04:00
|
|
|
st-enum-types.c
|
2009-09-08 15:47:30 -04:00
|
|
|
|
|
|
|
BUILT_SOURCES += $(st_built_sources)
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
2009-10-02 12:02:25 -04:00
|
|
|
st/test-theme.css \
|
2009-09-08 15:47:30 -04:00
|
|
|
st/st-enum-types.h.in \
|
|
|
|
st/st-enum-types.c.in
|
|
|
|
|
2011-10-18 18:17:49 -04:00
|
|
|
CLEANFILES += stamp-st-enum-types.h
|
2009-09-08 15:47:30 -04:00
|
|
|
|
|
|
|
st-enum-types.h: stamp-st-enum-types.h Makefile
|
|
|
|
@true
|
2011-06-22 20:10:56 -04:00
|
|
|
stamp-st-enum-types.h: $(source_h) $(srcdir)/st/st-enum-types.h.in $(st_source_h)
|
|
|
|
$(AM_V_GEN) ( \
|
2009-09-08 15:47:30 -04:00
|
|
|
$(GLIB_MKENUMS) \
|
2011-06-22 20:10:56 -04:00
|
|
|
--template $(srcdir)/st/st-enum-types.h.in \
|
|
|
|
$(addprefix $(srcdir)/, $(st_source_h)) ) >> $@.tmp && \
|
2009-09-08 15:47:30 -04:00
|
|
|
(cmp -s $@.tmp st-enum-types.h || cp $@.tmp st-enum-types.h) && \
|
|
|
|
rm -f $@.tmp && \
|
|
|
|
echo timestamp > $(@F)
|
|
|
|
|
2011-06-22 20:10:56 -04:00
|
|
|
st-enum-types.c: stamp-st-enum-types.h $(srcdir)/st/st-enum-types.c.in
|
|
|
|
$(AM_V_GEN) ( \
|
2009-09-08 15:47:30 -04:00
|
|
|
$(GLIB_MKENUMS) \
|
2011-06-22 20:10:56 -04:00
|
|
|
--template $(srcdir)/st/st-enum-types.c.in \
|
|
|
|
$(addprefix $(srcdir)/,$(st_source_h)) ) >> $@.tmp && \
|
2009-09-08 15:47:30 -04:00
|
|
|
cp $@.tmp $@ && \
|
|
|
|
rm -f $@.tmp
|
|
|
|
|
|
|
|
# please, keep this sorted alphabetically
|
|
|
|
st_source_h = \
|
2010-10-05 10:15:22 -04:00
|
|
|
st/st-adjustment.h \
|
|
|
|
st/st-bin.h \
|
|
|
|
st/st-border-image.h \
|
|
|
|
st/st-box-layout.h \
|
|
|
|
st/st-box-layout-child.h \
|
|
|
|
st/st-button.h \
|
|
|
|
st/st-clipboard.h \
|
|
|
|
st/st-drawing-area.h \
|
|
|
|
st/st-entry.h \
|
2010-10-05 10:09:40 -04:00
|
|
|
st/st-focus-manager.h \
|
2013-08-22 13:55:57 -04:00
|
|
|
st/st-generic-accessible.h \
|
2010-10-30 19:57:59 -04:00
|
|
|
st/st-icon.h \
|
2010-10-31 22:06:48 -04:00
|
|
|
st/st-icon-colors.h \
|
2010-10-05 10:15:22 -04:00
|
|
|
st/st-im-text.h \
|
|
|
|
st/st-label.h \
|
|
|
|
st/st-private.h \
|
|
|
|
st/st-scrollable.h \
|
|
|
|
st/st-scroll-bar.h \
|
|
|
|
st/st-scroll-view.h \
|
|
|
|
st/st-shadow.h \
|
|
|
|
st/st-texture-cache.h \
|
|
|
|
st/st-theme.h \
|
|
|
|
st/st-theme-context.h \
|
|
|
|
st/st-theme-node.h \
|
|
|
|
st/st-types.h \
|
|
|
|
st/st-widget.h \
|
2011-01-04 07:14:15 -05:00
|
|
|
st/st-widget-accessible.h \
|
2010-10-05 10:15:22 -04:00
|
|
|
$(NULL)
|
2010-02-22 19:35:03 -05:00
|
|
|
|
2011-01-01 10:20:34 -05:00
|
|
|
st.h: stamp-st.h
|
|
|
|
@true
|
|
|
|
stamp-st.h: Makefile
|
2009-12-26 11:48:51 -05:00
|
|
|
$(AM_V_GEN) (echo "#define ST_H_INSIDE 1"; \
|
|
|
|
for name in $(st_source_h); do \
|
|
|
|
echo "#include <"$$name">"; \
|
2011-01-01 10:20:34 -05:00
|
|
|
done; echo "#undef ST_H_INSIDE") > $@.tmp && \
|
|
|
|
(cmp -s $@.tmp st.h || cp $@.tmp st.h) && \
|
|
|
|
rm -f $@.tmp && \
|
|
|
|
echo timestamp > $(@F)
|
2009-12-26 11:48:51 -05:00
|
|
|
|
2010-02-22 19:35:03 -05:00
|
|
|
BUILT_SOURCES += st.h
|
2011-01-11 18:05:08 -05:00
|
|
|
CLEANFILES += stamp-st.h
|
2009-09-08 15:47:30 -04:00
|
|
|
|
2012-11-28 16:07:25 -05:00
|
|
|
st-scroll-view-fade-generated.c: stamp-st-scroll-view-fade-generated.c
|
|
|
|
@true
|
|
|
|
stamp-st-scroll-view-fade-generated.c: $(srcdir)/st/st-scroll-view-fade.glsl $(srcdir)/data-to-c.pl
|
|
|
|
$(AM_V_GEN) $(srcdir)/data-to-c.pl $(srcdir)/st/st-scroll-view-fade.glsl st_scroll_view_fade_glsl > $@.tmp && \
|
|
|
|
(cmp -s $@.tmp st-scroll-view-fade-generated.c || cp $@.tmp st-scroll-view-fade-generated.c) && \
|
|
|
|
rm -f $@.tmp && \
|
|
|
|
echo timestamp > $(@F)
|
|
|
|
|
|
|
|
BUILT_SOURCES += st-scroll-view-fade-generated.c
|
2012-12-05 17:32:05 -05:00
|
|
|
CLEANFILES += stamp-st-scroll-view-fade-generated.c
|
2012-11-28 16:07:25 -05:00
|
|
|
EXTRA_DIST += \
|
|
|
|
st/st-scroll-view-fade.glsl \
|
|
|
|
data-to-c.pl \
|
|
|
|
$(NULL)
|
|
|
|
|
2009-09-19 20:43:49 -04:00
|
|
|
st_source_private_h = \
|
2010-10-05 10:15:22 -04:00
|
|
|
st/st-private.h \
|
|
|
|
st/st-theme-private.h \
|
|
|
|
st/st-theme-node-private.h \
|
|
|
|
st/st-theme-node-transition.h
|
2009-09-19 20:43:49 -04:00
|
|
|
|
2009-09-08 15:47:30 -04:00
|
|
|
# please, keep this sorted alphabetically
|
|
|
|
st_source_c = \
|
2010-10-05 10:15:22 -04:00
|
|
|
st/st-adjustment.c \
|
|
|
|
st/st-bin.c \
|
|
|
|
st/st-border-image.c \
|
|
|
|
st/st-box-layout.c \
|
|
|
|
st/st-box-layout-child.c \
|
|
|
|
st/st-button.c \
|
|
|
|
st/st-clipboard.c \
|
|
|
|
st/st-drawing-area.c \
|
|
|
|
st/st-entry.c \
|
2010-10-05 10:09:40 -04:00
|
|
|
st/st-focus-manager.c \
|
2013-08-22 13:55:57 -04:00
|
|
|
st/st-generic-accessible.c \
|
2010-10-30 19:57:59 -04:00
|
|
|
st/st-icon.c \
|
2010-10-31 22:06:48 -04:00
|
|
|
st/st-icon-colors.c \
|
2010-10-05 10:15:22 -04:00
|
|
|
st/st-im-text.c \
|
|
|
|
st/st-label.c \
|
|
|
|
st/st-private.c \
|
|
|
|
st/st-scrollable.c \
|
|
|
|
st/st-scroll-bar.c \
|
|
|
|
st/st-scroll-view.c \
|
|
|
|
st/st-shadow.c \
|
|
|
|
st/st-texture-cache.c \
|
|
|
|
st/st-theme.c \
|
|
|
|
st/st-theme-context.c \
|
|
|
|
st/st-theme-node.c \
|
|
|
|
st/st-theme-node-drawing.c \
|
|
|
|
st/st-theme-node-transition.c \
|
|
|
|
st/st-widget.c \
|
|
|
|
$(NULL)
|
2009-09-08 15:47:30 -04:00
|
|
|
|
2011-01-20 14:25:21 -05:00
|
|
|
st_non_gir_sources = \
|
|
|
|
st/st-scroll-view-fade.c \
|
|
|
|
st/st-scroll-view-fade.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2009-09-08 15:47:30 -04:00
|
|
|
noinst_LTLIBRARIES += libst-1.0.la
|
|
|
|
|
2010-03-26 16:48:38 -04:00
|
|
|
libst_1_0_la_LIBADD = -lm $(ST_LIBS)
|
2009-09-08 15:47:30 -04:00
|
|
|
libst_1_0_la_SOURCES = \
|
2011-01-20 14:25:21 -05:00
|
|
|
$(st_source_c) \
|
|
|
|
$(st_non_gir_sources) \
|
2010-10-05 10:15:22 -04:00
|
|
|
$(st_source_private_h) \
|
|
|
|
$(st_source_private_c) \
|
|
|
|
$(st_source_h) \
|
2013-10-30 18:29:45 -04:00
|
|
|
$(NULL)
|
|
|
|
nodist_libst_1_0_la_SOURCES = \
|
2010-10-05 10:15:22 -04:00
|
|
|
$(st_built_sources) \
|
2013-10-30 18:29:45 -04:00
|
|
|
st.h \
|
2010-10-05 10:15:22 -04:00
|
|
|
$(NULL)
|
2009-09-08 15:47:30 -04:00
|
|
|
libst_1_0_la_CPPFLAGS = $(st_cflags)
|
|
|
|
libst_1_0_la_LDFLAGS = $(LDADD)
|
2009-09-19 20:43:49 -04:00
|
|
|
|
|
|
|
noinst_PROGRAMS += test-theme
|
|
|
|
|
|
|
|
test_theme_CPPFLAGS = $(st_cflags)
|
2010-03-31 14:40:43 -04:00
|
|
|
test_theme_LDADD = libst-1.0.la
|
2009-09-19 20:43:49 -04:00
|
|
|
|
|
|
|
test_theme_SOURCES = st/test-theme.c
|