summaryrefslogtreecommitdiff
path: root/src/Makefile_Edje.am
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-04 02:08:14 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-04 02:08:14 +0000
commit9ea2ce1041549c90f94062ce5ec145056e7fbdfa (patch)
tree3bcd3fb016bc498a72ff99c8d67c8b7ef2d91718 /src/Makefile_Edje.am
parente2ce20e9a4dfd12bb383a1b60032f2ef7b507850 (diff)
efl: merge edje.
this is still in progress, mostly the multisense stuff is pending. it seems that when we merge ecore_audio in edje the libremix and similar are gone, at least from Edje, and will be in ecore_audio itself (or pulseaudio). Changes: * __UNUSED__ to EINA_UNUSED * binaries (epp, embryo_cc, edje_cc) now consider EFL_RUN_IN_TREE and will assume the binaries are still not installed, running from build tree location (needs more testing, maybe doesn't work with srcdir != builddir, still doesn't solve cross compile builds) SVN revision: 82139
Diffstat (limited to 'src/Makefile_Edje.am')
-rw-r--r--src/Makefile_Edje.am255
1 files changed, 255 insertions, 0 deletions
diff --git a/src/Makefile_Edje.am b/src/Makefile_Edje.am
new file mode 100644
index 0000000..952554d
--- /dev/null
+++ b/src/Makefile_Edje.am
@@ -0,0 +1,255 @@
1
2### Library
3
4lib_LTLIBRARIES += lib/edje/libedje.la
5
6EDJE_COMMON_CPPFLAGS = \
7-I$(top_srcdir) \
8-I$(top_srcdir)/src/lib/eina \
9-I$(top_builddir)/src/lib/eina \
10-I$(top_srcdir)/src/lib/eo \
11-I$(top_builddir)/src/lib/eo \
12-I$(top_srcdir)/src/lib/eet \
13-I$(top_builddir)/src/lib/eet \
14-I$(top_srcdir)/src/lib/evas \
15-I$(top_builddir)/src/lib/evas \
16-I$(top_srcdir)/src/lib/ecore \
17-I$(top_builddir)/src/lib/ecore \
18-I$(top_srcdir)/src/lib/ecore_evas \
19-I$(top_builddir)/src/lib/ecore_evas \
20-I$(top_srcdir)/src/lib/ecore_file \
21-I$(top_builddir)/src/lib/ecore_file \
22-I$(top_srcdir)/src/lib/ecore_input \
23-I$(top_builddir)/src/lib/ecore_input \
24-I$(top_srcdir)/src/lib/ecore_imf \
25-I$(top_builddir)/src/lib/ecore_imf \
26-I$(top_srcdir)/src/lib/embryo \
27-I$(top_builddir)/src/lib/embryo \
28-I$(top_srcdir)/src/lib/eio \
29-I$(top_builddir)/src/lib/eio \
30-I$(top_srcdir)/src/lib/ephysics \
31-I$(top_builddir)/src/lib/ephysics \
32-I$(top_srcdir)/src/lib/edje \
33-I$(top_builddir)/src/lib/edje \
34-DPACKAGE_BIN_DIR=\"$(bindir)\" \
35-DPACKAGE_LIB_DIR=\"$(libdir)\" \
36-DPACKAGE_DATA_DIR=\"$(datadir)/edje\" \
37-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \
38-DEFL_EDJE_BUILD \
39@EFL_COV_CFLAGS@ \
40@EDJE_CFLAGS@ \
41@USE_EVIL_CFLAGS@
42
43EDJE_COMMON_LIBS = \
44lib/eina/libeina.la \
45lib/eo/libeo.la \
46lib/eet/libeet.la \
47lib/evas/libevas.la \
48lib/ecore/libecore.la \
49lib/ecore_evas/libecore_evas.la \
50lib/ecore_file/libecore_file.la \
51lib/ecore_input/libecore_input.la \
52lib/ecore_imf/libecore_imf.la \
53lib/ecore_imf/libecore_imf_evas.la \
54lib/embryo/libembryo.la \
55lib/eio/libeio.la \
56@USE_EVIL_LIBS@ \
57@EFL_COV_LIBS@
58
59if HAVE_EPHYSICS
60EDJE_COMMON_LIBS += lib/ephysics/libephysics.la
61endif
62
63installed_edjemainheadersdir = $(includedir)/edje-@VMAJ@
64dist_installed_edjemainheaders_DATA = \
65lib/edje/Edje.h \
66lib/edje/Edje_Edit.h
67
68lib_edje_libedje_la_SOURCES = \
69lib/edje/edje_private.h \
70lib/edje/edje_container.h \
71lib/edje/edje_convert.h \
72lib/edje/edje_box_layout.c \
73lib/edje/edje_cache.c \
74lib/edje/edje_calc.c \
75lib/edje/edje_callbacks.c \
76lib/edje/edje_container.c \
77lib/edje/edje_data.c \
78lib/edje/edje_edit.c \
79lib/edje/edje_embryo.c \
80lib/edje/edje_entry.c \
81lib/edje/edje_external.c \
82lib/edje/edje_load.c \
83lib/edje/edje_lua.c \
84lib/edje/edje_lua2.c \
85lib/edje/edje_lua_script_only.c \
86lib/edje/edje_main.c \
87lib/edje/edje_match.c \
88lib/edje/edje_message_queue.c \
89lib/edje/edje_misc.c \
90lib/edje/edje_module.c \
91lib/edje/edje_multisense.c \
92lib/edje/edje_program.c \
93lib/edje/edje_script_only.c \
94lib/edje/edje_smart.c \
95lib/edje/edje_text.c \
96lib/edje/edje_textblock_styles.c \
97lib/edje/edje_util.c \
98lib/edje/edje_var.c
99
100lib_edje_libedje_la_CPPFLAGS = $(EDJE_COMMON_CPPFLAGS)
101lib_edje_libedje_la_LIBADD = $(EDJE_COMMON_LIBS) @EDJE_LIBS@
102lib_edje_libedje_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
103
104if ENABLE_MULTISENSE
105# edjemoduleXXXdir = $(libdir)/edje/modules/
106# edjemoduleXXX_LTLIBRARIES = modules/edje/XXX/module.la
107#
108# modules_edje_XXX_module_la_SOURCES = modules/edje/XXX/XXX.c
109# modules_edje_XXX_module_la_CPPFLAGS = $(EDJE_COMMON_CPPFLAGS) @XXX_LIBS@
110# modules_edje_XXX_module_la_LIBADD = $(EDJE_COMMON_USER_LIBADD)
111# modules_edje_XXX_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
112# modules_edje_XXX_module_la_LIBTOOLFLAGS = --tag=disable-static
113
114# edjemodulemultisensefactorydir = $(libdir)/edje/modules/multisense_factory/$(MODULE_ARCH)
115# edjemodulemultisensefactory_LTLIBRARIES = modules/edje/multisense_factory/module.la
116#
117# modules_edje_multisense_factory_module_la_SOURCES = \
118# modules/edje/multisense_factory/multisense_factory.c
119# modules_edje_multisense_factory_module_la_CPPFLAGS = \
120# $(EDJE_COMMON_CPPFLAGS) \
121# @REMIX_CFLAGS@
122# modules_edje_multisense_factory_module_la_LIBADD = \
123# $(EDJE_COMMON_USER_LIBADD) \
124# @REMIX_LIBS@
125# modules_edje_multisense_factory_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
126# modules_edje_multisense_factory_module_la_LIBTOOLFLAGS = --tag=disable-static
127
128endif
129
130### Binary
131
132EDJE_COMMON_USER_LDADD = \
133$(EDJE_COMMON_LIBS) \
134lib/edje/libedje.la \
135@EDJE_LDFLAGS@
136
137bin_PROGRAMS += \
138bin/edje/edje_cc \
139bin/edje/edje_decc \
140bin/edje/edje_player \
141bin/edje/edje_inspector \
142bin/edje/edje_external_inspector \
143bin/edje/edje_codegen \
144bin/edje/edje_pick \
145bin/edje/edje_watch
146
147bin_edje_edje_cc_SOURCES = \
148bin/edje/edje_multisense_convert.h \
149bin/edje/edje_cc.h \
150bin/edje/edje_cc.c \
151bin/edje/edje_cc_out.c \
152bin/edje/edje_cc_parse.c \
153bin/edje/edje_cc_mem.c \
154bin/edje/edje_cc_handlers.c \
155bin/edje/edje_cc_sources.c \
156bin/edje/edje_multisense_convert.c
157bin_edje_edje_cc_CPPFLAGS = $(EDJE_COMMON_CPPFLAGS)
158bin_edje_edje_cc_LDADD = $(EDJE_COMMON_USER_LDADD)
159
160bin_edje_edje_decc_SOURCES = \
161bin/edje/edje_decc.c \
162bin/edje/edje_decc.h \
163bin/edje/edje_cc_mem.c \
164bin/edje/edje_cc_sources.c
165bin_edje_edje_decc_CPPFLAGS = $(EDJE_COMMON_CPPFLAGS)
166bin_edje_edje_decc_LDADD = $(EDJE_COMMON_USER_LDADD)
167
168bin_edje_edje_player_SOURCES = bin/edje/edje_player.c
169bin_edje_edje_player_CPPFLAGS = $(EDJE_COMMON_CPPFLAGS)
170bin_edje_edje_player_LDADD = $(EDJE_COMMON_USER_LDADD)
171
172bin_edje_edje_inspector_SOURCES = bin/edje/edje_inspector.c
173bin_edje_edje_inspector_CPPFLAGS = $(EDJE_COMMON_CPPFLAGS)
174bin_edje_edje_inspector_LDADD = $(EDJE_COMMON_USER_LDADD)
175
176bin_edje_edje_external_inspector_SOURCES = bin/edje/edje_external_inspector.c
177bin_edje_edje_external_inspector_CPPFLAGS = $(EDJE_COMMON_CPPFLAGS)
178bin_edje_edje_external_inspector_LDADD = $(EDJE_COMMON_USER_LDADD)
179
180bin_edje_edje_codegen_SOURCES = bin/edje/edje_codegen.c
181bin_edje_edje_codegen_CPPFLAGS = $(EDJE_COMMON_CPPFLAGS)
182bin_edje_edje_codegen_LDADD = $(EDJE_COMMON_USER_LDADD)
183
184bin_edje_edje_pick_SOURCES = bin/edje/edje_pick.c
185bin_edje_edje_pick_CPPFLAGS = $(EDJE_COMMON_CPPFLAGS)
186bin_edje_edje_pick_LDADD = $(EDJE_COMMON_USER_LDADD)
187
188bin_edje_edje_watch_SOURCES = bin/edje/edje_watch.c
189bin_edje_edje_watch_CPPFLAGS = $(EDJE_COMMON_CPPFLAGS)
190bin_edje_edje_watch_LDADD = $(EDJE_COMMON_USER_LDADD)
191
192# EPP (Edje's CPP)
193eppdir = $(libdir)/edje/utils
194epp_PROGRAMS = bin/edje/epp/epp
195bin_edje_epp_epp_SOURCES = \
196bin/edje/epp/cpplib.h \
197bin/edje/epp/cpphash.h \
198bin/edje/epp/cppalloc.c \
199bin/edje/epp/cpperror.c \
200bin/edje/epp/cppexp.c \
201bin/edje/epp/cpphash.c \
202bin/edje/epp/cpplib.c \
203bin/edje/epp/cppmain.c
204
205# Note: eina is included only because of EINA_UNUSED
206bin_edje_epp_epp_CPPFLAGS = \
207-I$(top_builddir) \
208-I$(top_srcdir)/src/lib/eina \
209-I$(top_builddir)/src/lib/eina \
210$(CWARNFLAGS) \
211-DHAVE_CONFIG_H \
212-DHAVE_STRERROR \
213-DFATAL_EXIT_CODE=1 \
214-DSUCCESS_EXIT_CODE=0 \
215-DGCC_INCLUDE_DIR=\"/usr/include\" \
216-DGPLUSPLUS_INCLUDE_DIR=\"/usr/include\" \
217-DTOOL_INCLUDE_DIR=\"/usr/bin\" \
218-DHOST_BITS_PER_LONG=32 \
219-DBITS_PER_UNIT=8 \
220-DHOST_BITS_PER_INT=32 \
221-DBITS_PER_WORD=16 \
222-DTARGET_BELL=7 \
223-DTARGET_BS=8 \
224-DTARGET_FF=12 \
225-DTARGET_NEWLINE=10 \
226-DTARGET_CR=13 \
227-DTARGET_TAB=9 \
228-DTARGET_VT=11
229
230# TODO: why keep these?
231EXTRA_DIST += \
232bin/edje/edje_convert.h \
233bin/edje/edje_convert.c \
234bin/edje/edje_data_convert.c
235
236### Unit tests
237
238if EFL_ENABLE_TESTS
239
240check_PROGRAMS += tests/edje/edje_suite
241
242tests_edje_edje_suite_SOURCES = \
243tests/edje/edje_suite.c \
244tests/edje/edje_test_edje.c \
245tests/edje/edje_suite.h
246
247tests_edje_edje_suite_CPPFLAGS = \
248$(EDJE_COMMON_CPPFLAGS) \
249@CHECK_CFLAGS@
250
251tests_edje_edje_suite_LDADD = \
252$(EDJE_COMMON_USER_LDADD) \
253@CHECK_LIBS@
254
255endif