summaryrefslogtreecommitdiff
path: root/src/examples/edje/Makefile.am
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-07-18 17:55:09 -0400
committerStefan Schmidt <s.schmidt@samsung.com>2018-08-03 13:09:22 +0200
commit310d6d972dbe9f323dd3783158608687b52b6bca (patch)
treeac5b27d299e562071697bae3f77b6363c6fd66db /src/examples/edje/Makefile.am
parentab1fd96363b630df1f5b3cb145eade3466b74b75 (diff)
build: move src/examples/ to a single makefile
this greatly improves build times by improving parallelizing, though it does introduce more BUILT_SOURCES usage which causes builds with cxx bindings to take significantly longer fix T7157 ref T7154 Differential Revision: https://phab.enlightenment.org/D6633
Diffstat (limited to 'src/examples/edje/Makefile.am')
-rw-r--r--src/examples/edje/Makefile.am296
1 files changed, 0 insertions, 296 deletions
diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am
deleted file mode 100644
index 961009d347..0000000000
--- a/src/examples/edje/Makefile.am
+++ /dev/null
@@ -1,296 +0,0 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3include ../../Makefile_Edje_Helper.am
4
5EDJE_CODEGEN = EFL_RUN_IN_TREE=1 $(top_builddir)/src/bin/edje/edje_codegen
6EDJE_CODEGEN_FLAGS = --prefix=codegen_example
7
8if ENABLE_MULTISENSE
9SND_DIR = -sd $(top_srcdir)/src/examples/edje/
10endif
11
12MO_DIR = -md $(top_builddir)/src/examples/edje/
13
14#put here all EDCs one needs to the examples
15EDCS = \
16animations.edc \
17animations2.edc \
18basic.edc \
19basic2.edc \
20bezier-transition-example.edc \
21box.edc \
22box_example.edc \
23codegen.edc \
24color-class.edc \
25drag.edc \
26dynamic_multiseat.edc \
27edje-group.edc \
28edje-nested.edc \
29edje-threshold.edc \
30edje_example.edc \
31embryo_custom_state.edc \
32embryo_pong.edc \
33embryo_run_program.edc \
34embryo_set_state.edc \
35embryo_set_state_anim.edc \
36embryo_set_text.edc \
37embryo_timer.edc \
38embryo_tween_anim.edc \
39entry.edc \
40external_elm_anchorblock.edc \
41external_elm_button.edc \
42external_elm_check.edc \
43external_elm_panes.edc \
44external_emotion_elm.edc \
45focus.edc \
46lua_script.edc \
47messages_echo.edc \
48multiseat.edc \
49multiseat_custom_names.edc \
50multiseat_filter.edc \
51perspective.edc \
52signals-messages.edc \
53signalsBubble.edc \
54sigtest.edc \
55svg.edc \
56swallow.edc \
57table.edc \
58text.edc \
59textblock-hyphen.edc \
60toggle_using_filter.edc
61
62DIST_EDCS = $(EDCS)
63
64MULTISENSE_EDCS = multisense.edc
65if ENABLE_MULTISENSE
66EDCS += $(MULTISENSE_EDCS)
67endif
68DIST_EDCS += $(MULTISENSE_EDCS)
69
70PHYSICS_EDCS = \
71physics_3d.edc \
72physics_actions.edc \
73physics_backcull.edc \
74physics_basic.edc \
75physics_complex.edc \
76physics_soft_bodies.edc
77if HAVE_EPHYSICS
78EDCS += $(PHYSICS_EDCS)
79endif
80DIST_EDCS += $(PHYSICS_EDCS)
81
82# Support for SVG
83EDJE_CC_FLAGS += -beta
84
85.edc.edj:
86 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_CC_FLAGS) $(SND_DIR) $(MO_DIR) $< $(builddir)/$(@F)
87
88text.edj: text.edc
89 @if [ "x$(top_builddir)" != "x$(top_srcdir)" ]; then \
90 rm -rf $(top_builddir)/src/examples/edje/en_IN/; \
91 rm -rf $(top_builddir)/src/examples/edje/hi_IN/; \
92 rm -rf $(top_builddir)/src/examples/edje/ta_IN/; \
93 cp -a $(top_srcdir)/src/examples/edje/en_IN/ $(top_builddir)/src/examples/edje/en_IN/; \
94 cp -a $(top_srcdir)/src/examples/edje/hi_IN/ $(top_builddir)/src/examples/edje/hi_IN/; \
95 cp -a $(top_srcdir)/src/examples/edje/ta_IN/ $(top_builddir)/src/examples/edje/ta_IN/; \
96 chmod -R +w $(top_builddir)/src/examples/edje/en_IN/; \
97 chmod -R +w $(top_builddir)/src/examples/edje/hi_IN/; \
98 chmod -R +w $(top_builddir)/src/examples/edje/ta_IN/; \
99 fi
100 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_CC_FLAGS) $(SND_DIR) $(MO_DIR) $(top_srcdir)/src/examples/edje/text.edc $(top_builddir)/src/examples/edje/text.edj
101
102EDJS = $(EDCS:%.edc=%.edj)
103
104DATA_FILES = \
105bubble.png \
106bubble-blue.png \
107red.png \
108test.png \
109Vera.ttf \
110duck.wav \
111dst.svg \
112atom.svg \
113bojo.svg \
114bzrfeed.svg \
115yinyang.svg \
116ubuntu.svg \
117duke.svg \
118cartman.svg \
119ibm.svg \
120hg0.svg \
121fsm.svg \
122osa.svg \
123wikimedia.svg \
124scion.svg \
125eee.svg \
126google.svg \
127tiger.svg \
128venus.svg \
129lineargrad1.svg \
130radialgrad1.svg \
131yadis.svg \
132favorite_on.svg \
133favorite_off.svg \
134batman1.svg \
135batman2.svg \
136en_IN/domain_name.po \
137hi_IN/domain_name.po \
138ta_IN/domain_name.mo \
139Makefile.examples
140
141SRCS = \
142animations2.c \
143edje-animations.c \
144edje-basic.c \
145edje-basic2.c \
146edje-box.c \
147edje-box2.c \
148edje-codegen-example.c \
149edje-color-class.c \
150edje-drag.c \
151edje-dynamic-multiseat.c \
152edje-edit-part-box.c \
153edje-entry.c \
154edje-focus.c \
155edje-multiseat.c \
156edje-multiseat-custom-names.c \
157edje-multiseat-filter.c \
158edje-multisense.c \
159edje-perspective.c \
160edje-signals-messages.c \
161edje-swallow.c \
162edje-swallow2.c \
163edje-table.c \
164edje-text.c \
165edje-textblock-hyphenation.c \
166edje_example.c \
167signals2.c \
168sigtest.c \
169svg-test.c
170
171EXTRA_DIST = $(DIST_EDCS) $(DATA_FILES)
172
173AM_CPPFLAGS = \
174-I$(top_builddir)/src/lib/efl \
175-I. \
176-I$(builddir) \
177-I$(top_srcdir)/src/lib/eina \
178-I$(top_builddir)/src/lib/eina \
179-I$(top_srcdir)/src/lib/eo \
180-I$(top_builddir)/src/lib/eo \
181-I$(top_srcdir)/src/lib/eet \
182-I$(top_builddir)/src/lib/eet \
183-I$(top_srcdir)/src/lib/evas \
184-I$(top_builddir)/src/lib/evas \
185-I$(top_srcdir)/src/lib/ecore \
186-I$(top_builddir)/src/lib/ecore \
187-I$(top_srcdir)/src/lib/ecore_evas \
188-I$(top_builddir)/src/lib/ecore_evas \
189-I$(top_srcdir)/src/lib/ecore_file \
190-I$(top_builddir)/src/lib/ecore_file \
191-I$(top_srcdir)/src/lib/ecore_input \
192-I$(top_builddir)/src/lib/ecore_input \
193-I$(top_srcdir)/src/lib/ecore_imf \
194-I$(top_builddir)/src/lib/ecore_imf \
195-I$(top_srcdir)/src/lib/embryo \
196-I$(top_builddir)/src/lib/embryo \
197-I$(top_srcdir)/src/lib/edje \
198-I$(top_srcdir)/src/lib/edje/include \
199-DPACKAGE_BIN_DIR=\"$(bindir)\" \
200-DPACKAGE_LIB_DIR=\"$(libdir)\" \
201-DPACKAGE_DATA_DIR=\"$(datadir)/edje/examples\" \
202@EDJE_CFLAGS@
203
204CODEGEN_GENERATED = \
205codegen_example_generated.c \
206codegen_example_generated.h
207
208codegen_example_generated.c codegen_example_generated.h: codegen.edj
209 $(AM_V_GEN)$(EDJE_CODEGEN) $(EDJE_CODEGEN_FLAGS) codegen.edj example_group $(builddir)/codegen_example_generated.c $(builddir)/codegen_example_generated.h
210
211edje-codegen-example.$(OBJEXT): $(CODEGEN_GENERATED)
212
213edje_codegen_example_SOURCES = \
214edje-codegen-example.c
215nodist_edje_codegen_example_SOURCES = \
216codegen_example_generated.c \
217codegen_example_generated.h
218
219EXTRA_PROGRAMS = \
220animations2 \
221edje-animations \
222edje-basic \
223edje-basic2 \
224edje-box \
225edje-box2 \
226edje-codegen-example \
227edje-color-class \
228edje-drag \
229edje-dynamic-multiseat \
230edje-edit-part-box \
231edje-entry \
232edje-focus \
233edje-multiseat \
234edje-multiseat-custom-names \
235edje-multiseat-filter \
236edje-perspective \
237edje-signals-messages \
238edje-swallow \
239edje-swallow2 \
240edje-table \
241edje-text \
242edje-textblock-hyphenation \
243edje_example \
244signals2 \
245sigtest \
246svg-test
247
248if ENABLE_MULTISENSE
249EXTRA_PROGRAMS += edje-multisense
250endif
251
252LDADD = \
253$(top_builddir)/src/lib/eina/libeina.la \
254$(top_builddir)/src/lib/eo/libeo.la \
255$(top_builddir)/src/lib/eet/libeet.la \
256$(top_builddir)/src/lib/evas/libevas.la \
257$(top_builddir)/src/lib/ecore/libecore.la \
258$(top_builddir)/src/lib/ecore_evas/libecore_evas.la \
259$(top_builddir)/src/lib/ecore_file/libecore_file.la \
260$(top_builddir)/src/lib/ecore_input/libecore_input.la \
261$(top_builddir)/src/lib/ecore_imf/libecore_imf.la \
262$(top_builddir)/src/lib/ecore_imf_evas/libecore_imf_evas.la \
263$(top_builddir)/src/lib/embryo/libembryo.la \
264$(top_builddir)/src/lib/edje/libedje.la \
265@EDJE_LDFLAGS@
266
267if HAVE_EPHYSICS
268LDADD += $(top_builddir)/src/lib/ephysics/libephysics.la
269endif
270
271examples: $(EXTRA_PROGRAMS) $(EDJS)
272
273clean-local:
274 rm -f $(EXTRA_PROGRAMS) $(EDJS) $(CODEGEN_GENERATED)
275 if [ $(top_builddir)/ != $(top_srcdir)/ ]; then \
276 rm -f $(top_builddir)/src/examples/edje/hi_IN/domain_name.po; \
277 rm -f $(top_builddir)/src/examples/edje/ta_IN/domain_name.mo; \
278 rm -f $(top_builddir)/src/examples/edje/en_IN/domain_name.po; \
279 fi
280
281install-examples: $(EDJS)
282 $(MKDIR_P) $(DESTDIR)$(datadir)/edje/examples
283 cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DIST_EDCS) $(DATA_FILES) $(DESTDIR)$(datadir)/edje/examples
284 cd $(builddir) && $(install_sh_DATA) -c $(EDJS) $(DESTDIR)$(datadir)/edje/examples
285
286uninstall-local:
287 for f in $(SRCS) $(DIST_EDCS) $(DATA_FILES); do \
288 rm -f $(DESTDIR)$(datadir)/edje/examples/$$f ; \
289 done
290
291if ALWAYS_BUILD_EXAMPLES
292if BUILD_LOADER_PNG
293noinst_PROGRAMS = $(EXTRA_PROGRAMS)
294nodist_pkgdata_DATA = $(EDJS)
295endif
296endif