[access] move mouse postion if an object has a highlight by highlight_cycle(); not...
[framework/uifw/elementary.git] / src / examples / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2
3 .PHONY: screenshots
4
5 examplesdir = $(pkgdatadir)/examples
6 filesdir = $(pkgdatadir)/examples
7 files_DATA =
8
9 AM_CPPFLAGS = \
10 -Wno-unused-parameter \
11 -I. \
12 -I$(top_srcdir)/src/lib \
13 -I$(top_builddir)/src/lib \
14 -DPACKAGE_DATA_DIR="\"$(pkgdatadir)\"" \
15 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
16 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
17 @ELEMENTARY_EDBUS_CFLAGS@ \
18 @ELEMENTARY_EFREET_CFLAGS@ \
19 @ELEMENTARY_EWEATHER_CFLAGS@ \
20 @ELEMENTARY_ETHUMB_CFLAGS@ \
21 @ELEMENTARY_EMAP_CFLAGS@ \
22 @ELEMENTARY_X_CFLAGS@ \
23 @ELEMENTARY_CFLAGS@
24
25 LDADD = \
26 @ELEMENTARY_LIBS@ \
27 @ELEMENTARY_ETHUMB_LIBS@ \
28 @ELEMENTARY_EMAP_LIBS@ \
29 @ELEMENTARY_X_LIBS@ \
30 $(top_builddir)/src/lib/libelementary.la
31
32 EDJE_CC = @edje_cc@
33 EDJE_FLAGS_VERBOSE_ =
34 EDJE_FLAGS_VERBOSE_0 =
35 EDJE_FLAGS_VERBOSE_1 = -v
36 EDJE_FLAGS = $(EDJE_FLAGS_$(V))
37
38 ELEMENTARY_CODEGEN = $(top_builddir)/src/bin/@ELEMENTARY_CODEGEN_PRG@
39 ELEMENTARY_CODEGEN_FLAGS = --prefix=codegen_example
40
41 SRCS = \
42 actionslider_example_01.c \
43 bg_example_01.c \
44 bg_example_02.c \
45 bg_example_03.c \
46 box_example_02.c \
47 bubble_example_01.c \
48 button_example_00.c \
49 button_example_01.c \
50 calendar_example_01.c \
51 calendar_example_02.c \
52 calendar_example_03.c \
53 calendar_example_04.c \
54 calendar_example_05.c \
55 calendar_example_06.c \
56 check_example_01.c \
57 clock_example.c \
58 codegen_example.edc \
59 colorselector_example_01.c \
60 conformant_example_01.c \
61 conformant_example_02.c \
62 ctxpopup_example_01.c \
63 datetime_example.c \
64 dayselector_example.c \
65 diskselector_example_01.c \
66 diskselector_example_02.c \
67 efl_thread_1.c \
68 efl_thread_2.c \
69 efl_thread_3.c \
70 efl_thread_4.c \
71 efl_thread_5.c \
72 efl_thread_6.c \
73 efl_thread_win32_1.c \
74 efl_thread_win32_2.c \
75 efl_thread_win32_3.c \
76 efl_thread_win32_4.c \
77 entry_example.c \
78 fileselector_button_example.c \
79 fileselector_entry_example.c \
80 fileselector_example.c \
81 flip_example_01.c \
82 flipselector_example.c \
83 frame_example_01.c \
84 general_funcs_example.c \
85 gengrid_example.c \
86 genlist_example_01.c \
87 genlist_example_02.c \
88 genlist_example_03.c \
89 genlist_example_04.c \
90 genlist_example_05.c \
91 glview_example_01.c \
92 hover_example_01.c \
93 hoversel_example_01.c \
94 icon_example_01.c \
95 image_example_01.c \
96 index_example_01.c \
97 index_example_02.c \
98 inwin_example.c \
99 label_example_01.c \
100 layout_example.edc \
101 layout_example_01.c \
102 layout_example_02.c \
103 layout_example_03.c \
104 list_example_01.c \
105 list_example_02.c \
106 list_example_03.c \
107 map_example_01.c \
108 map_example_02.c \
109 map_example_03.c \
110 mapbuf_example.c \
111 menu_example_01.c \
112 notify_example_01.c \
113 panes_example.c \
114 panel_example_01.c \
115 photocam_example_01.c \
116 popup_example_01.c \
117 popup_example_02.c \
118 popup_example_03.c \
119 progressbar_example.c \
120 radio_example_01.c \
121 segment_control_example.c \
122 separator_example_01.c \
123 slider_example.c \
124 slideshow_example.c \
125 spinner_example.c \
126 scroller_example_01.c \
127 table_example_01.c \
128 table_example_02.c \
129 theme_example.edc \
130 theme_example_01.c \
131 theme_example_02.c \
132 thumb_example_01.c \
133 toolbar_example_01.c \
134 toolbar_example_02.c \
135 toolbar_example_03.c \
136 transit_example_01.c \
137 transit_example_02.c \
138 transit_example_03.c \
139 transit_example_04.c \
140 web_example_01.c \
141 web_example_02.c \
142 win_example.c
143
144 .edc.edj:
145         $(EDJE_CC) $(EDJE_FLAGS) $< $@
146
147 if EFL_INSTALL_EXAMPLES
148 files_DATA += $(SRCS) \
149         dict.txt
150 endif
151
152 if EFL_BUILD_EXAMPLES
153 files_DATA += \
154         theme_example.edj \
155         layout_example.edj\
156         codegen_example.edj
157
158 clean-local:
159         rm -f *.edj
160
161 codegen_example_generated.c codegen_example_generated.h: codegen_example.edj
162         $(ELEMENTARY_CODEGEN) $(ELEMENTARY_CODEGEN_FLAGS) codegen_example.edj \
163         elm/example/mylayout/default codegen_example_generated.c codegen_example_generated.h
164
165 BUILT_SOURCES = codegen_example_generated.c codegen_example_generated.h
166
167 codegen_example_SOURCES = \
168         codegen_example.c
169 nodist_codegen_example_SOURCES = \
170 codegen_example_generated.c \
171 codegen_example_generated.h
172
173 examples_PROGRAMS = \
174 actionslider_example_01 \
175 bg_example_01 \
176 bg_example_02 \
177 bg_example_03 \
178 box_example_02 \
179 bubble_example_01 \
180 button_example_00 \
181 button_example_01 \
182 calendar_example_01 \
183 calendar_example_02 \
184 calendar_example_03 \
185 calendar_example_04 \
186 calendar_example_05 \
187 calendar_example_06 \
188 check_example_01 \
189 clock_example \
190 codegen_example \
191 colorselector_example_01 \
192 conformant_example_01 \
193 conformant_example_02 \
194 ctxpopup_example_01 \
195 datetime_example \
196 dayselector_example \
197 diskselector_example_01 \
198 diskselector_example_02 \
199 efl_thread_1 \
200 efl_thread_2 \
201 efl_thread_3 \
202 efl_thread_4 \
203 efl_thread_5 \
204 efl_thread_6 \
205 entry_example \
206 fileselector_button_example \
207 fileselector_entry_example \
208 fileselector_example \
209 flip_example_01 \
210 flipselector_example \
211 frame_example_01 \
212 general_funcs_example \
213 gengrid_example \
214 genlist_example_01 \
215 genlist_example_02 \
216 genlist_example_03 \
217 genlist_example_04 \
218 genlist_example_05 \
219 glview_example_01 \
220 hover_example_01 \
221 hoversel_example_01 \
222 icon_example_01 \
223 image_example_01 \
224 index_example_01 \
225 index_example_02 \
226 inwin_example \
227 label_example_01 \
228 layout_example_01 \
229 layout_example_02 \
230 layout_example_03 \
231 list_example_01 \
232 list_example_02 \
233 list_example_03 \
234 map_example_01 \
235 map_example_02 \
236 map_example_03 \
237 mapbuf_example \
238 menu_example_01 \
239 notify_example_01 \
240 panes_example \
241 panel_example_01 \
242 photocam_example_01 \
243 popup_example_01 \
244 popup_example_02 \
245 popup_example_03 \
246 progressbar_example \
247 radio_example_01 \
248 segment_control_example \
249 separator_example_01 \
250 slider_example \
251 slideshow_example \
252 spinner_example \
253 scroller_example_01 \
254 table_example_01 \
255 table_example_02 \
256 theme_example_01 \
257 theme_example_02 \
258 thumb_example_01 \
259 toolbar_example_01 \
260 toolbar_example_02 \
261 toolbar_example_03 \
262 transit_example_01 \
263 transit_example_02 \
264 transit_example_03 \
265 transit_example_04 \
266 web_example_01 \
267 web_example_02 \
268 win_example
269
270 if ELEMENTARY_WINDOWS_BUILD
271 efl_thread_1_SOURCES = efl_thread_win32_1.c
272 efl_thread_2_SOURCES = efl_thread_win32_2.c
273 efl_thread_3_SOURCES = efl_thread_win32_3.c
274 efl_thread_4_SOURCES = efl_thread_win32_4.c
275 else
276 efl_thread_1_SOURCES = efl_thread_1.c
277 efl_thread_2_SOURCES = efl_thread_2.c
278 efl_thread_3_SOURCES = efl_thread_3.c
279 efl_thread_4_SOURCES = efl_thread_4.c
280 endif
281
282 # This variable will hold the list of screenshots that will be made
283 # by "make screenshots". Each item in the list is of the form:
284 # <example executable>:<screenshot filename>:<delay in seconds>
285 SCREENSHOTS = \
286 actionslider_example_01:actionslider_01.png:0.0 \
287 bg_example_02:bg_01.png:0.0 \
288 box_example_02:box_example_02.png:1.3 \
289 bubble_example_01:bubble_example_01.png:0.0 \
290 button_example_00:button_00.png:0.0 \
291 button_example_01:button_01.png:0.0 \
292 check_example_01:check_example_01.png:0.0 \
293 colorselector_example_01:colorselector_example_01.png:0.0 \
294 animator_example_01:animator_example_01.png:0.2 \
295 animator_example_01:animator_example_02.png:0.5 \
296 animator_example_01:animator_example_03.png:0.9 \
297 flip_example_01:flip_example_01.png:0.0 \
298 frame_example_01:frame_example_01.png:0.0 \
299 hover_example_01:hover_example_01.png:0.0 \
300 hoversel_example_01:hoversel_example_01.png:0.0 \
301 label_example_01:label_example_01.png:0.0 \
302 theme_example_01:theme_example_01.png:0.0 \
303 conformant_example_01:conformant_example_01.png:0.0 \
304 conformant_example_02:conformant_example_02.png:0.0 \
305 calendar_example_01:calendar_example_01.png:0.0 \
306 calendar_example_02:calendar_example_02.png:0.0 \
307 calendar_example_03:calendar_example_03.png:0.0 \
308 calendar_example_04:calendar_example_04.png:0.0 \
309 calendar_example_05:calendar_example_05.png:0.0 \
310 calendar_example_06:calendar_example_06.png:0.0 \
311 datetime_example:datetime_example.png:0.0 \
312 map_example_01:map_example_01.png:2 \
313 map_example_02:map_example_02.png:2.5 \
314 map_example_03:map_example_03.png:2 \
315 toolbar_example_01:toolbar_example_01.png:0.0 \
316 toolbar_example_02:toolbar_example_02.png:1 \
317 toolbar_example_03:toolbar_example_03.png:1 \
318 spinner_example:spinner_example.png:0.0 \
319 clock_example:clock_example.png:0.5 \
320 dayselector_example:dayselector_example.png:0.0 \
321 mapbuf_example:mapbuf_example.png:0.0 \
322 image_example_01:image_example_01.png:0.0 \
323 diskselector_example_01:diskselector_example_01.png:0.2 \
324 diskselector_example_02:diskselector_example_02.png:0.2 \
325 icon_example_01:icon_example_01.png:0.0 \
326 layout_example_01:layout_example_01.png:0.0 \
327 layout_example_02:layout_example_02.png:0.0 \
328 layout_example_03:layout_example_03.png:0.0 \
329 list_example_01:list_example_01.png:0.0 \
330 list_example_02:list_example_02.png:0.0 \
331 list_example_03:list_example_03.png:0.0 \
332 segment_control_example:segment_control_example.png:0.0 \
333 flipselector_example:flipselector_example.png:0.0 \
334 fileselector_example:fileselector_example.png:0.0 \
335 index_example_02:index_example_03.png:0.3 \
336 slider_example:slider_example.png:0.0 \
337 panes_example:panes_example.png:0.0 \
338 ctxpopup_example_01:ctxpopup_example_01.png:0.0 \
339 separator_example_01:separator_example_01.png:0.0 \
340 radio_example_01:radio_example_01.png:0.0 \
341 panel_example_01:panel_example_01.png:0.0 \
342 gengrid_example:gengrid_example.png:0.0 \
343 genlist_example_01:genlist_example_01.png:0.1 \
344 genlist_example_02:genlist_example_02.png:0.1 \
345 genlist_example_03:genlist_example_03.png:0.1 \
346 genlist_example_04:genlist_example_04.png:0.1 \
347 genlist_example_05:genlist_example_05.png:0.1 \
348 glview_example_01:glview_example_01.png:0.0 \
349 thumb_example_01:thumb_example_01.png:0.5 \
350 entry_example:entry_example.png:0.0 \
351 progressbar_example:progressbar_example.png:0.0 \
352 notify_example_01:notify_example_01.png:0.0 \
353 notify_example_01:notify_example_01_a.png:6.0 \
354 popup_example_01:popup_example_01.png:1.0 \
355 popup_example_01:popup_example_01_a.png:6.0 \
356 popup_example_02:popup_example_02.png:0.2 \
357 popup_example_03:popup_example_03.png:0.2 \
358 slideshow_example:slideshow_example.png:1.0 \
359 photocam_example_01:photocam_example_01.png:3 \
360 scroller_example_01:scroller_example_01.png:0.0 \
361 inwin_example:inwin_example.png:0.0 \
362 inwin_example:inwin_example_a.png:0.2 \
363 table_example_01:table_example_01.png:0.0 \
364 table_example_02:table_example_02.png:0.0 \
365 menu_example_01:menu_example_01.png:0.5
366
367 HTML_SS_DIR=$(top_builddir)/doc/html/screenshots
368 LATEX_SS_DIR=$(top_builddir)/doc/latex/screenshots
369 screenshots: all
370         @mkdir -p $(HTML_SS_DIR)
371         @mkdir -p $(LATEX_SS_DIR)
372         @for ss in $(SCREENSHOTS); do \
373                 SS_ENTRY=($${ss//:/ }) ; \
374                 EXAMPLE=$${SS_ENTRY[0]} ; \
375                 SS_FILE=$${SS_ENTRY[1]} ; \
376                 SS_DELAY=$${SS_ENTRY[2]} ; \
377                 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} ; \
378                 convert $(HTML_SS_DIR)/$${SS_FILE} $(LATEX_SS_DIR)/$${SS_FILE/.png/.eps} ; \
379         done
380
381 else
382
383 screenshots:
384         @echo "Examples are not built. Run \"./configure --enable-build-examples\" first."
385
386 endif
387
388 EXTRA_DIST = dict.txt layout_example.edc theme_example.edc codegen_example.edc