]> Pileus Git - ~andy/gtk/blob - demos/gtk-demo/Makefile.am
gtk-demo: Add a simple example for theming
[~andy/gtk] / demos / gtk-demo / Makefile.am
1 ## Makefile.am for gtk+/demos
2 include $(top_srcdir)/Makefile.decl
3
4 democodedir=$(datadir)/gtk-$(GTK_API_VERSION)/demo
5
6 ## These should be in the order you want them to appear in the
7 ## demo app, which means alphabetized by demo title, not filename
8 demos =                                         \
9         application.c                           \
10         appwindow.c                             \
11         assistant.c                             \
12         builder.c                               \
13         button_box.c                            \
14         changedisplay.c                         \
15         clipboard.c                             \
16         colorsel.c                              \
17         combobox.c                              \
18         css_basics.c                            \
19         dialog.c                                \
20         drawingarea.c                           \
21         editable_cells.c                        \
22         entry_buffer.c                          \
23         entry_completion.c                      \
24         expander.c                              \
25         hypertext.c                             \
26         iconview.c                              \
27         iconview_edit.c                         \
28         images.c                                \
29         infobar.c                               \
30         links.c                                 \
31         list_store.c                            \
32         menus.c                                 \
33         offscreen_window.c                      \
34         offscreen_window2.c                     \
35         overlay.c                               \
36         panes.c                                 \
37         pickers.c                               \
38         pixbufs.c                               \
39         printing.c                              \
40         rotated_text.c                          \
41         search_entry.c                          \
42         sizegroup.c                             \
43         spinner.c                               \
44         stock_browser.c                         \
45         textview.c                              \
46         textscroll.c                            \
47         theming_style_classes.c                 \
48         theming_custom_css.c                    \
49         toolpalette.c                           \
50         transparent.c                           \
51         tree_store.c                            \
52         ui_manager.c
53
54 AM_CPPFLAGS = \
55         -DDEMOCODEDIR="\"$(democodedir)\""      \
56         -I$(top_srcdir)                         \
57         -I$(top_builddir)/gdk                   \
58         -DGDK_DISABLE_DEPRECATED                \
59         -DGTK_DISABLE_DEPRECATED                \
60         $(GTK_DEBUG_FLAGS)                      \
61         $(GTK_DEP_CFLAGS)
62
63 DEPS = \
64         $(top_builddir)/gtk/libgtk-3.la
65
66 LDADDS = \
67         $(top_builddir)/gtk/libgtk-3.la \
68         $(top_builddir)/gdk/libgdk-3.la \
69         $(GTK_DEP_LIBS)                         \
70         -lm
71
72 bin_PROGRAMS = gtk3-demo gtk3-demo-application
73
74 BUILT_SOURCES = demos.h application_resources.c
75
76 EXTRA_DIST +=                           \
77         $(IMAGEFILES)                   \
78         demo.ui                         \
79         application.gresource.xml       \
80         application.ui                  \
81         menus.ui                        \
82         theming.ui                      \
83         fancy.css                       \
84         gtk-logo-24.png                 \
85         gtk-logo-48.png                 \
86         org.gtk.Demo.gschema.xml
87
88 gsettings_SCHEMAS = \
89         org.gtk.Demo.gschema.xml
90
91 @GSETTINGS_RULES@
92
93 demos.h: @REBUILD@ $(demos) geninclude.pl
94         $(AM_V_GEN) (here=`pwd` ; cd $(srcdir) && $(PERL) $$here/geninclude.pl $(demos)) > demos.h
95
96 gtk3_demo_SOURCES =             \
97         $(demos)                \
98         demo-common.h           \
99         main.c                  \
100         demos.h
101
102 gtk3_demo_DEPENDENCIES = $(DEPS)
103 gtk3_demo_LDADD = $(LDADDS)
104 gtk3_demo_LDFLAGS = -export-dynamic
105
106 gtk3_demo_application_SOURCES = \
107         application-standalone.c \
108         application_resources.c
109
110 gtk3_demo_application_LDADD = $(LDADDS)
111
112 application_resources.c: application.gresource.xml gtk-logo-24.png gtk-logo-48.png application.ui menus.ui
113         $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $(srcdir)/application.gresource.xml
114
115 IMAGEFILES=     alphatest.png           \
116                 apple-red.png           \
117                 background.jpg          \
118                 floppybuddy.gif         \
119                 gnome-applets.png       \
120                 gnome-calendar.png      \
121                 gnome-fs-directory.png  \
122                 gnome-fs-regular.png    \
123                 gnome-foot.png          \
124                 gnome-gimp.png          \
125                 gnome-gmush.png         \
126                 gnome-gsame.png         \
127                 gnu-keys.png            \
128                 gtk-logo-rgb.gif
129
130 democode_DATA = \
131         $(demos)                \
132         $(IMAGEFILES)           \
133         demo.ui                 \
134         menus.ui                \
135         application.ui          \
136         theming.ui              \
137         fancy.css
138
139 DISTCLEANFILES = demos.h
140
141 -include $(top_srcdir)/git.mk