83dd5b60b8cb46c4ab3666f377a6748ae3a6af42
[framework/uifw/elementary.git] / src / examples / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2
3 .PHONY: screenshots
4
5 pkglibdir = $(datadir)/$(PACKAGE)/examples
6 filesdir = $(datadir)/$(PACKAGE)/examples
7 files_DATA =
8
9 AM_CPPFLAGS = \
10 -I. \
11 -I$(top_srcdir)/src/lib \
12 -I$(top_builddir)/src/lib \
13 -DPACKAGE_DATA_DIR="\"$(datadir)/elementary\"" \
14 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
15 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
16 @ELEMENTARY_EDBUS_CFLAGS@ \
17 @ELEMENTARY_EFREET_CFLAGS@ \
18 @ELEMENTARY_ETHUMB_CFLAGS@ \
19 @ELEMENTARY_CFLAGS@
20
21 LDADD = \
22         @ELEMENTARY_LIBS@ \
23         $(top_builddir)/src/lib/libelementary.la
24
25 EDJE_CC = @edje_cc@
26 EDJE_FLAGS_VERBOSE_ =
27 EDJE_FLAGS_VERBOSE_0 =
28 EDJE_FLAGS_VERBOSE_1 = -v
29 EDJE_FLAGS = $(EDJE_FLAGS_$(V))
30
31 SRCS = \
32         actionslider_example_01.c \
33         anchorblock_example_01.c \
34         animator_example_01.c \
35         bubble_example_01.c \
36         button_example_01.c \
37         check_example_01.c \
38         colorselector_example_01.c \
39         frame_example_01.c \
40         transit_example_01.c \
41         transit_example_02.c \
42         transit_example_03.c \
43         transit_example_04.c \
44         bg_example_01.c \
45         bg_example_02.c \
46         bg_example_03.c \
47         box_example_02.c \
48         flip_example_01.c \
49         general_funcs_example.c \
50         hover_example_01.c \
51         hoversel_example_01.c \
52         label_example_01.c \
53         theme_example_01.c \
54         theme_example_02.c \
55         calendar_example_01.c \
56         calendar_example_02.c \
57         calendar_example_03.c \
58         calendar_example_04.c \
59         calendar_example_05.c \
60         calendar_example_06.c \
61         clock_example.c \
62         conformant_example_01.c \
63         conformant_example_02.c \
64         image_example_01.c \
65         icon_example_01.c \
66         layout_example_01.c \
67         layout_example_02.c \
68         layout_example_03.c \
69         flipselector_example.c \
70         fileselector_example.c \
71         fileselector_button_example.c \
72         fileselector_entry_example.c \
73         diskselector_example_01.c \
74         diskselector_example_02.c \
75         index_example_01.c \
76         index_example_02.c \
77         theme_example.edc \
78         layout_example.edc \
79         ctxpopup_example_01.c \
80         pager_example_01.c \
81         separator_example_01.c
82
83 pkglib_PROGRAMS =
84
85 .edc.edj:
86         $(EDJE_CC) $(EDJE_FLAGS) $< $@
87
88 if EFL_INSTALL_EXAMPLES
89 files_DATA += $(SRCS) \
90         dict.txt
91 endif
92
93 if EFL_BUILD_EXAMPLES
94 files_DATA += \
95         theme_example.edj \
96         layout_example.edj
97
98 clean-local:
99         rm -f *.edj
100
101 pkglib_PROGRAMS += \
102         actionslider_example_01 \
103         anchorblock_example_01 \
104         animator_example_01 \
105         bubble_example_01 \
106         button_example_01 \
107         check_example_01 \
108         colorselector_example_01 \
109         frame_example_01 \
110         transit_example_01 \
111         transit_example_02 \
112         transit_example_03 \
113         transit_example_04 \
114         bg_example_01 \
115         bg_example_02 \
116         bg_example_03 \
117         box_example_02 \
118         flip_example_01 \
119         general_funcs_example \
120         hover_example_01 \
121         hoversel_example_01 \
122         label_example_01 \
123         theme_example_01 \
124         theme_example_02 \
125         calendar_example_01 \
126         calendar_example_02 \
127         calendar_example_03 \
128         calendar_example_04 \
129         calendar_example_05 \
130         calendar_example_06 \
131         clock_example \
132         conformant_example_01 \
133         conformant_example_02 \
134         image_example_01 \
135         diskselector_example_01 \
136         diskselector_example_02 \
137         icon_example_01 \
138         layout_example_01 \
139         layout_example_02 \
140         layout_example_03 \
141         ctxpopup_example_01 \
142         flipselector_example \
143         fileselector_example \
144         fileselector_button_example \
145         fileselector_entry_example \
146         index_example_01 \
147         index_example_02 \
148         pager_example_01 \
149         separator_example_01
150
151 # This variable will hold the list of screenshots that will be made
152 # by "make screenshots". Each item in the list is of the form:
153 # <example executable>:<screenshot filename>:<delay in seconds>
154 SCREENSHOTS = \
155         actionslider_example_01:actionslider_01.png:0.0 \
156         bg_example_02:bg_01.png:0.0 \
157         box_example_02:box_example_02.png:1.3 \
158         bubble_example_01:bubble_example_01.png:0.0 \
159         button_example_01:button_01.png:0.0 \
160         check_example_01:check_example_01.png:0.0 \
161         colorselector_example_01:colorselector_example_01.png:0.0 \
162         animator_example_01:animator_example_01.png:0.2 \
163         animator_example_01:animator_example_02.png:0.5 \
164         animator_example_01:animator_example_03.png:0.9 \
165         flip_example_01:flip_example_01.png:0.0 \
166         frame_example_01:frame_example_01.png:0.0 \
167         hover_example_01:hover_example_01.png:0.0 \
168         hoversel_example_01:hoversel_example_01.png:0.0 \
169         label_example_01:label_example_01.png:0.0 \
170         theme_example_01:theme_example_01.png:0.0 \
171         conformant_example_01:conformant_example_01.png:0.0 \
172         conformant_example_02:conformant_example_02.png:0.0 \
173         calendar_example_01:calendar_example_01.png:0.0 \
174         calendar_example_02:calendar_example_02.png:0.0 \
175         calendar_example_03:calendar_example_03.png:0.0 \
176         calendar_example_04:calendar_example_04.png:0.0 \
177         calendar_example_05:calendar_example_05.png:0.0 \
178         calendar_example_06:calendar_example_06.png:0.0 \
179         clock_example:clock_example.png:0.5 \
180         image_example_01:image_example_01.png:0.0 \
181         diskselector_example_01:diskselector_example_01.png:0.2 \
182         diskselector_example_02:diskselector_example_02.png:0.2 \
183         icon_example_01:icon_example_01.png:0.0 \
184         layout_example_01:layout_example_01.png:0.0 \
185         layout_example_02:layout_example_02.png:0.0 \
186         layout_example_03:layout_example_03.png:0.0 \
187         flipselector_example:flipselector_example.png:0.0 \
188         fileselector_example:fileselector_example.png:0.0 \
189         index_example_02:index_example_03.png:0.3 \
190         ctxpopup_example_01:ctxpopup_example_01.png:0.0 \
191         pager_example_01:pager_example_01.png:0.0 \
192         separator_example_01:separator_example_01.png:0.0
193
194 HTML_SS_DIR=$(top_builddir)/doc/html/screenshots
195 LATEX_SS_DIR=$(top_builddir)/doc/latex/screenshots
196 screenshots: all
197         @mkdir -p $(HTML_SS_DIR)
198         @mkdir -p $(LATEX_SS_DIR)
199         @for ss in $(SCREENSHOTS); do \
200                 SS_ENTRY=($${ss//:/ }) ; \
201                 EXAMPLE=$${SS_ENTRY[0]} ; \
202                 SS_FILE=$${SS_ENTRY[1]} ; \
203                 SS_DELAY=$${SS_ENTRY[2]} ; \
204                 ILLUME_KBD=0,0,240,123 ILLUME_IND=0,0,240,32 ILLUME_STK=0,288,240,32 ELM_ENGINE="shot:delay=$${SS_DELAY}:file=$(HTML_SS_DIR)/$${SS_FILE}" ./$${EXAMPLE} ; \
205                 convert $(HTML_SS_DIR)/$${SS_FILE} $(LATEX_SS_DIR)/$${SS_FILE/.png/.eps} ; \
206         done
207
208 else
209
210 screenshots:
211         @echo "Examples are not built. Run \"./configure --enable-build-examples\" first."
212
213 endif