summaryrefslogtreecommitdiff
path: root/src/Makefile_Emotion.am
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-10 03:43:32 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-10 03:43:32 +0000
commitdfb84c1657bfb14a5236b881193b81f4c0b8a69b (patch)
treeb51b210fc88a21eec8e5907b8bbfe12ebc669f90 /src/Makefile_Emotion.am
parent532284dbbe4259a9f2291f44d3eff376849e8031 (diff)
efl: merge emotion.
this one was quite a huge work, but hopefully it's correct. NOTES: * removed vlc generic module, it should go into a separate package. * gstreamer is enabled by default (see --disable-gstreamer) * xine is disabled by default (see --enable-gstreamer) * generic is always built statically if supported * gstreamer and xine can't be configured as static (just lacks command line options, build system supports it) * v4l2 is enabled by default on linux if eeze is built (see --disable-v4l2) * emotion_test moved to src/tests/emotion and depends on EFL_ENABLE_TESTS (--with-tests), but is still installed if enabled. TODO (need your help!): * fix warnings with gstreamer and xine engine * call engine shutdown functions if building as static * remove direct usage of PACKAGE_*_DIR and use eina_prefix * add eina_prefix checkme file as evas and others * add support for $EFL_RUN_IN_TREE * create separate package for emotion_generic_modules * check docs hierarchy (doxygen is segv'in here) SVN revision: 82501
Diffstat (limited to 'src/Makefile_Emotion.am')
-rw-r--r--src/Makefile_Emotion.am235
1 files changed, 235 insertions, 0 deletions
diff --git a/src/Makefile_Emotion.am b/src/Makefile_Emotion.am
new file mode 100644
index 0000000000..94dadc22b8
--- /dev/null
+++ b/src/Makefile_Emotion.am
@@ -0,0 +1,235 @@
1### Library
2
3lib_LTLIBRARIES += \
4lib/emotion/libemotion.la
5
6EMOTION_COMMON_CPPFLAGS = \
7-I$(top_srcdir)/src/lib/eina \
8-I$(top_builddir)/src/lib/eina \
9-I$(top_srcdir)/src/lib/eo \
10-I$(top_builddir)/src/lib/eo \
11-I$(top_srcdir)/src/lib/ecore \
12-I$(top_builddir)/src/lib/ecore \
13-I$(top_srcdir)/src/lib/ecore_x \
14-I$(top_builddir)/src/lib/ecore_x \
15-I$(top_srcdir)/src/lib/ecore_input \
16-I$(top_builddir)/src/lib/ecore_input \
17-I$(top_srcdir)/src/lib/ecore_evas \
18-I$(top_builddir)/src/lib/ecore_evas \
19-I$(top_srcdir)/src/lib/eet \
20-I$(top_builddir)/src/lib/eet \
21-I$(top_srcdir)/src/lib/evas \
22-I$(top_builddir)/src/lib/evas \
23-I$(top_srcdir)/src/lib/eio \
24-I$(top_builddir)/src/lib/eio \
25-I$(top_srcdir)/src/lib/eeze \
26-I$(top_builddir)/src/lib/eeze \
27-I$(top_srcdir)/src/lib/emotion \
28-I$(top_builddir)/src/lib/emotion \
29@EFL_COV_CFLAGS@ \
30@EMOTION_CFLAGS@
31
32EMOTION_COMMON_LDADD = \
33lib/eina/libeina.la \
34lib/eo/libeo.la \
35lib/ecore/libecore.la \
36lib/eet/libeet.la \
37lib/evas/libevas.la \
38lib/eio/libeio.la \
39@EFL_COV_LIBS@
40
41if EMOTION_HAVE_V4L2
42EMOTION_COMMON_LDADD += lib/eeze/libeeze.la
43endif
44
45installed_emotionmainheadersdir = $(includedir)/emotion-@VMAJ@
46dist_installed_emotionmainheaders_DATA = lib/emotion/Emotion.h
47
48# libemotion.la
49lib_emotion_libemotion_la_SOURCES = \
50lib/emotion/emotion_private.h \
51lib/emotion/emotion_smart.c \
52lib/emotion/emotion_main.c
53
54EMOTION_COMMON_LIBADD = $(EMOTION_COMMON_LDADD) @EMOTION_LIBS@
55EMOTION_COMMON_LDADD += @EMOTION_LDFLAGS@
56EMOTION_COMMON_USER_LIBADD = $(EMOTION_COMMON_LIBADD) lib/emotion/libemotion.la
57EMOTION_COMMON_USER_LDADD = $(EMOTION_COMMON_LDADD) lib/emotion/libemotion.la
58
59lib_emotion_libemotion_la_CPPFLAGS = \
60$(EMOTION_COMMON_CPPFLAGS) \
61-DPACKAGE_BIN_DIR=\"$(bindir)\" \
62-DPACKAGE_LIB_DIR=\"$(libdir)\" \
63-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\" \
64-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \
65-DEFL_EMOTION_BUILD
66
67lib_emotion_libemotion_la_LIBADD = $(EMOTION_COMMON_LIBADD)
68lib_emotion_libemotion_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
69
70## Modules
71
72# Xine
73EMOTION_XINE_SOURCES = \
74modules/emotion/xine/emotion_xine.h \
75modules/emotion/xine/emotion_xine.c \
76modules/emotion/xine/emotion_xine_vo_out.c
77
78if EMOTION_STATIC_BUILD_XINE
79lib_emotion_libemotion_la_SOURCES += $(EMOTION_XINE_SOURCES)
80else
81if EMOTION_BUILD_XINE
82emotionmodulexinedir = $(libdir)/emotion/modules/xine/$(MODULE_ARCH)
83emotionmodulexine_LTLIBRARIES = modules/emotion/xine/module.la
84modules_emotion_xine_module_la_SOURCES = $(EMOTION_XINE_SOURCES)
85modules_emotion_xine_module_la_CPPFLAGS = \
86$(EMOTION_COMMON_CPPFLAGS) \
87@EMOTION_MODULE_XINE_CFLAGS@
88modules_emotion_xine_module_la_LIBADD = \
89$(EMOTION_COMMON_USER_LIBADD) \
90@EMOTION_MODULE_XINE_LIBS@
91modules_emotion_xine_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
92modules_emotion_xine_module_la_LIBTOOLFLAGS = --tag=disable-static
93endif
94endif
95
96# Gstreamer
97EMOTION_GSTREAMER_SOURCES = \
98modules/emotion/gstreamer/emotion_gstreamer.h \
99modules/emotion/gstreamer/emotion_gstreamer.c \
100modules/emotion/gstreamer/emotion_alloc.c \
101modules/emotion/gstreamer/emotion_convert.c \
102modules/emotion/gstreamer/emotion_fakeeos.c \
103modules/emotion/gstreamer/emotion_sink.c
104
105if EMOTION_STATIC_BUILD_GSTREAMER
106lib_emotion_libemotion_la_SOURCES += $(EMOTION_GSTREAMER_SOURCES)
107if HAVE_ECORE_X
108EMOTION_COMMON_LDADD += \
109lib/ecore_evas/libecore_evas.la \
110lib/ecore_x/libecore_x.la
111endif
112else
113if EMOTION_BUILD_GSTREAMER
114emotionmodulegstreamerdir = $(libdir)/emotion/modules/gstreamer/$(MODULE_ARCH)
115emotionmodulegstreamer_LTLIBRARIES = modules/emotion/gstreamer/module.la
116modules_emotion_gstreamer_module_la_SOURCES = $(EMOTION_GSTREAMER_SOURCES)
117modules_emotion_gstreamer_module_la_CPPFLAGS = \
118$(EMOTION_COMMON_CPPFLAGS) \
119@EMOTION_MODULE_GSTREAMER_CFLAGS@
120modules_emotion_gstreamer_module_la_LIBADD = \
121$(EMOTION_COMMON_USER_LIBADD) \
122@EMOTION_MODULE_GSTREAMER_LIBS@
123modules_emotion_gstreamer_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
124modules_emotion_gstreamer_module_la_LIBTOOLFLAGS = --tag=disable-static
125if HAVE_ECORE_X
126modules_emotion_gstreamer_module_la_LIBADD += \
127lib/ecore_evas/libecore_evas.la \
128lib/ecore_x/libecore_x.la
129endif
130endif
131endif
132
133# Generic
134EMOTION_GENERIC_SOURCES = \
135modules/emotion/generic/emotion_generic.h \
136modules/emotion/generic/emotion_generic.c
137
138if EMOTION_STATIC_BUILD_GENERIC
139lib_emotion_libemotion_la_SOURCES += $(EMOTION_GENERIC_SOURCES)
140else
141if EMOTION_BUILD_GENERIC
142emotionmodulegenericdir = $(libdir)/emotion/modules/generic/$(MODULE_ARCH)
143emotionmodulegeneric_LTLIBRARIES = modules/emotion/generic/module.la
144modules_emotion_generic_module_la_SOURCES = $(EMOTION_GENERIC_SOURCES)
145modules_emotion_generic_module_la_CPPFLAGS = \
146$(EMOTION_COMMON_CPPFLAGS)
147modules_emotion_generic_module_la_LIBADD = \
148$(EMOTION_COMMON_USER_LIBADD)
149modules_emotion_generic_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
150modules_emotion_generic_module_la_LIBTOOLFLAGS = --tag=disable-static
151endif
152endif
153
154if EMOTION_BUILD_GENERIC
155dist_installed_emotionmainheaders_DATA += \
156modules/emotion/generic/Emotion_Generic_Plugin.h
157endif
158
159
160# Edje_External
161emotionedjeexternaldir = $(libdir)/edje/modules/emotion/$(MODULE_ARCH)
162emotionedjeexternal_LTLIBRARIES = edje_external/emotion/module.la
163
164edje_external_emotion_module_la_SOURCES = \
165edje_external/emotion/emotion.c
166edje_external_emotion_module_la_CPPFLAGS = \
167$(EMOTION_COMMON_CPPFLAGS) \
168$(EDJE_COMMON_CPPFLAGS)
169edje_external_emotion_module_la_LIBADD = \
170$(EMOTION_COMMON_USER_LIBADD) \
171$(EDJE_COMMON_USER_LIBADD)
172edje_external_emotion_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
173edje_external_emotion_module_la_LIBTOOLFLAGS = --tag=disable-static
174
175### Binary
176
177### Unit tests
178
179if EFL_ENABLE_TESTS
180
181bin_PROGRAMS += tests/emotion/emotion_test
182
183tests_emotion_emotion_test_SOURCES = \
184tests/emotion/emotion_test_main.c
185
186tests_emotion_emotion_test_CPPFLAGS = \
187$(EMOTION_COMMON_CPPFLAGS) \
188-I$(top_srcdir)/src/lib/edje \
189-I$(top_builddir)/src/lib/edje \
190-DPACKAGE_BIN_DIR=\"$(bindir)\" \
191-DPACKAGE_LIB_DIR=\"$(libdir)\" \
192-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\" \
193-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\"
194
195tests_emotion_emotion_test_LDADD = \
196$(EMOTION_COMMON_USER_LDADD) \
197lib/edje/libedje.la
198
199tests/emotion/data/theme.edj: tests/emotion/data/theme.edc
200 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_CC_FLAGS) -id $(srcdir)/tests/emotion/data $< $@
201
202EMOTION_DATA_FILES = \
203tests/emotion/data/bpause.png \
204tests/emotion/data/bplay.png \
205tests/emotion/data/bstop.png \
206tests/emotion/data/e_logo.png \
207tests/emotion/data/fr1.png \
208tests/emotion/data/fr2.png \
209tests/emotion/data/fr3.png \
210tests/emotion/data/fr4.png \
211tests/emotion/data/fr5.png \
212tests/emotion/data/fr6.png \
213tests/emotion/data/fr7.png \
214tests/emotion/data/h_slider.png \
215tests/emotion/data/icon.edc \
216tests/emotion/data/knob.png \
217tests/emotion/data/orb.png \
218tests/emotion/data/pnl.png \
219tests/emotion/data/sl.png \
220tests/emotion/data/theme.edc \
221tests/emotion/data/tiles.png \
222tests/emotion/data/video_frame_bottom.png \
223tests/emotion/data/video_frame_left.png \
224tests/emotion/data/video_frame_right.png \
225tests/emotion/data/video_frame_top.png \
226tests/emotion/data/whb.png \
227tests/emotion/data/window_inner_shadow.png
228
229emotiondatafilesdir = $(datadir)/emotion/data
230emotiondatafiles_DATA = tests/emotion/data/theme.edj
231endif
232
233EXTRA_DIST += \
234$(EMOTION_DATA_FILES) \
235modules/emotion/generic/README