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