summaryrefslogtreecommitdiff
path: root/src/Makefile_Emotion.am
blob: c1dcd7bebaaa90f7d0a8ab8366c089e155cce3f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
### Library

emotion_eolian_files = \
	lib/emotion/efl_canvas_video.eo

emotion_eolian_c = $(emotion_eolian_files:%.eo=%.eo.c)
emotion_eolian_h = $(emotion_eolian_files:%.eo=%.eo.h) \
                   $(emotion_eolian_files:%.eo=%.eo.legacy.h)

BUILT_SOURCES += \
                 $(emotion_eolian_c) \
                 $(emotion_eolian_h)

emotioneolianfilesdir = $(datadir)/eolian/include/emotion-@VMAJ@
emotioneolianfiles_DATA = \
                          $(emotion_eolian_files)

EXTRA_DIST2 += \
              ${emotioneolianfiles_DATA}

lib_LTLIBRARIES += \
lib/emotion/libemotion.la

installed_emotionmainheadersdir = $(includedir)/emotion-@VMAJ@
dist_installed_emotionmainheaders_DATA = lib/emotion/Emotion.h \
                                         lib/emotion/Emotion_Legacy.h \
                                         lib/emotion/Emotion_Eo.h

nodist_installed_emotionmainheaders_DATA = \
                                           $(emotion_eolian_h)

# libemotion.la
lib_emotion_libemotion_la_SOURCES = \
lib/emotion/emotion_modules.h \
lib/emotion/emotion_private.h \
lib/emotion/emotion_smart.c \
lib/emotion/emotion_webcam.c \
lib/emotion/emotion_modules.c \
lib/emotion/emotion_main.c \
static_libs/buildsystem/buildsystem.h \
static_libs/buildsystem/buildsystem_autotools.c

lib_emotion_libemotion_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\" \
-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)\" \
-DPACKAGE_SRC_DIR=\"$(abs_top_srcdir)\" \
@EMOTION_CFLAGS@
lib_emotion_libemotion_la_LIBADD = @EMOTION_LIBS@
lib_emotion_libemotion_la_DEPENDENCIES = @EMOTION_INTERNAL_LIBS@
lib_emotion_libemotion_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@

## Modules

# Xine
EMOTION_XINE_SOURCES = \
modules/emotion/xine/emotion_xine.h \
modules/emotion/xine/emotion_xine.c \
modules/emotion/xine/emotion_xine_vo_out.c

if EMOTION_STATIC_BUILD_XINE
lib_emotion_libemotion_la_SOURCES += $(EMOTION_XINE_SOURCES)
else
if EMOTION_BUILD_XINE
emotionmodulexinedir = $(libdir)/emotion/modules/xine/$(MODULE_ARCH)
emotionmodulexine_LTLIBRARIES = modules/emotion/xine/module.la

# Workaround for broken parallel install support in automake (relink issue)
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
install_emotionmodulexineLTLIBRARIES = install-emotionmodulexineLTLIBRARIES
$(install_emotionmodulexineLTLIBRARIES): install-libLTLIBRARIES

modules_emotion_xine_module_la_SOURCES = $(EMOTION_XINE_SOURCES)
modules_emotion_xine_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
@EMOTION_CFLAGS@ \
@EMOTION_MODULE_XINE_CFLAGS@
modules_emotion_xine_module_la_LIBADD = \
@USE_EMOTION_LIBS@ \
@EMOTION_MODULE_XINE_LIBS@
modules_emotion_xine_module_la_DEPENDENCIES = @USE_EMOTION_INTERNAL_LIBS@
modules_emotion_xine_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
modules_emotion_xine_module_la_LIBTOOLFLAGS = --tag=disable-static
endif
endif

# Gstreamer 0.10
EMOTION_GSTREAMER_SOURCES = \
modules/emotion/gstreamer/emotion_gstreamer.h \
modules/emotion/gstreamer/emotion_gstreamer.c \
modules/emotion/gstreamer/emotion_alloc.c \
modules/emotion/gstreamer/emotion_convert.c \
modules/emotion/gstreamer/emotion_fakeeos.c \
modules/emotion/gstreamer/emotion_sink.c

if EMOTION_STATIC_BUILD_GSTREAMER
lib_emotion_libemotion_la_SOURCES += $(EMOTION_GSTREAMER_SOURCES)
else
if EMOTION_BUILD_GSTREAMER
emotionmodulegstreamerdir = $(libdir)/emotion/modules/gstreamer/$(MODULE_ARCH)
emotionmodulegstreamer_LTLIBRARIES = modules/emotion/gstreamer/module.la

# Workaround for broken parallel install support in automake (relink issue)
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
install_emotionmodulegstreamerLTLIBRARIES = install-emotionmodulegstreamerLTLIBRARIES
$(install_emotionmodulegstreamerLTLIBRARIES): install-libLTLIBRARIES

modules_emotion_gstreamer_module_la_SOURCES = $(EMOTION_GSTREAMER_SOURCES)
modules_emotion_gstreamer_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
@EMOTION_CFLAGS@ \
@EMOTION_MODULE_GSTREAMER_CFLAGS@
modules_emotion_gstreamer_module_la_LIBADD = \
@USE_EMOTION_LIBS@ \
@EMOTION_MODULE_GSTREAMER_LIBS@
modules_emotion_gstreamer_module_la_DEPENDENCIES = @USE_EMOTION_INTERNAL_LIBS@
modules_emotion_gstreamer_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
modules_emotion_gstreamer_module_la_LIBTOOLFLAGS = --tag=disable-static
if HAVE_ECORE_X
modules_emotion_gstreamer_module_la_CPPFLAGS += @ECORE_X_CFLAGS@ @ECORE_EVAS_CFLAGS@
modules_emotion_gstreamer_module_la_LIBADD += @USE_ECORE_X_LIBS@ @USE_ECORE_EVAS_LIBS@
modules_emotion_gstreamer_module_la_DEPENDENCIES += @USE_ECORE_X_INTERNAL_LIBS@ @USE_ECORE_EVAS_INTERNAL_LIBS@
endif
endif
endif

# Gstreamer 1.0
EMOTION_GSTREAMER1_SOURCES = \
modules/emotion/gstreamer1/emotion_gstreamer.h \
modules/emotion/gstreamer1/emotion_gstreamer.c \
modules/emotion/gstreamer1/emotion_alloc.c \
modules/emotion/gstreamer1/emotion_convert.c \
modules/emotion/gstreamer1/emotion_sink.c

if EMOTION_STATIC_BUILD_GSTREAMER1
lib_emotion_libemotion_la_SOURCES += $(EMOTION_GSTREAMER1_SOURCES)
else
if EMOTION_BUILD_GSTREAMER1
emotionmodulegstreamer1dir = $(libdir)/emotion/modules/gstreamer1/$(MODULE_ARCH)
emotionmodulegstreamer1_LTLIBRARIES = modules/emotion/gstreamer1/module.la

# Workaround for broken parallel install support in automake (relink issue)
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
install_emotionmodulegstreamer1LTLIBRARIES = install-emotionmodulegstreamer1LTLIBRARIES
$(install_emotionmodulegstreamer1LTLIBRARIES): install-libLTLIBRARIES

modules_emotion_gstreamer1_module_la_SOURCES = $(EMOTION_GSTREAMER1_SOURCES)
modules_emotion_gstreamer1_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
@EMOTION_CFLAGS@ \
@EMOTION_MODULE_GSTREAMER1_CFLAGS@
modules_emotion_gstreamer1_module_la_LIBADD = \
@USE_EMOTION_LIBS@ \
@EMOTION_MODULE_GSTREAMER1_LIBS@
modules_emotion_gstreamer1_module_la_DEPENDENCIES = @USE_EMOTION_INTERNAL_LIBS@
modules_emotion_gstreamer1_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
modules_emotion_gstreamer1_module_la_LIBTOOLFLAGS = --tag=disable-static
endif
endif

# LibVLC
EMOTION_LIBVLC_SOURCES =\
modules/emotion/libvlc/emotion_libvlc.c

if EMOTION_STATIC_BUILD_LIBVLC
lib_emotion_libemotion_la_SOURCES += $(EMOTION_LIBVLC_SOURCES)
else
if EMOTION_BUILD_LIBVLC
emotionmodulelibvlcdir = $(libdir)/emotion/modules/libvlc/$(MODULE_ARCH)
emotionmodulelibvlc_LTLIBRARIES = modules/emotion/libvlc/module.la

# Workaround for broken parallel install support in automake (relink issue)
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
install_emotionmodulelibvlcLTLIBRARIES = install-emotionmodulelibvlcLTLIBRARIES
$(install_emotionmodulelibvlcLTLIBRARIES): install-libLTLIBRARIES

modules_emotion_libvlc_module_la_SOURCES = $(EMOTION_LIBVLC_SOURCES)
modules_emotion_libvlc_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
@EMOTION_CFLAGS@ \
@EMOTION_MODULE_LIBVLC_CFLAGS@
modules_emotion_libvlc_module_la_LIBADD = \
@USE_EMOTION_LIBS@ \
@EMOTION_MODULE_LIBVLC_LIBS@
modules_emotion_libvlc_module_la_DEPENDENCIES = @USE_EMOTION_INTERNAL_LIBS@
modules_emotion_libvlc_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
modules_emotion_libvlc_module_la_LIBTOOLFLAGS = --tag=disable-static
endif
endif

# Generic
EMOTION_GENERIC_SOURCES = \
modules/emotion/generic/emotion_generic.h \
modules/emotion/generic/emotion_generic.c

if EMOTION_STATIC_BUILD_GENERIC
lib_emotion_libemotion_la_SOURCES += $(EMOTION_GENERIC_SOURCES)
else
if EMOTION_BUILD_GENERIC
emotionmodulegenericdir = $(libdir)/emotion/modules/generic/$(MODULE_ARCH)
emotionmodulegeneric_LTLIBRARIES = modules/emotion/generic/module.la

# Workaround for broken parallel install support in automake (relink issue)
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
install_emotionmodulegenericLTLIBRARIES = install-emotionmodulegenericLTLIBRARIES
$(install_emotionmodulegenericLTLIBRARIES): install-libLTLIBRARIES

modules_emotion_generic_module_la_SOURCES = $(EMOTION_GENERIC_SOURCES)
modules_emotion_generic_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
@EMOTION_CFLAGS@ \
@EMOTION_MODULE_GENERIC_CFLAGS@ \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\"
modules_emotion_generic_module_la_LIBADD = \
@USE_EMOTION_LIBS@ \
@EMOTION_MODULE_GENERIC_LIBS@
modules_emotion_generic_module_la_DEPENDENCIES = @USE_EMOTION_INTERNAL_LIBS@
modules_emotion_generic_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
modules_emotion_generic_module_la_LIBTOOLFLAGS = --tag=disable-static
endif
endif

if EMOTION_BUILD_GENERIC
dist_installed_emotionmainheaders_DATA += \
modules/emotion/generic/Emotion_Generic_Plugin.h
endif


# Edje_External
emotionedjeexternaldir = $(libdir)/edje/modules/emotion/$(MODULE_ARCH)
emotionedjeexternal_LTLIBRARIES = edje_external/emotion/module.la

# Workaround for broken parallel install support in automake (relink issue)
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
install_emotionedjeexternalLTLIBRARIES = install-emotionedjeexternalLTLIBRARIES
$(install_emotionedjeexternalLTLIBRARIES): install-libLTLIBRARIES

edje_external_emotion_module_la_SOURCES = \
edje_external/emotion/emotion.c
edje_external_emotion_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
@EDJE_CFLAGS@ \
@EMOTION_CFLAGS@ \
-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\"
edje_external_emotion_module_la_LIBADD = \
@USE_EDJE_LIBS@ \
@USE_EMOTION_LIBS@
edje_external_emotion_module_la_DEPENDENCIES = \
@USE_EDJE_INTERNAL_LIBS@ \
@USE_EMOTION_INTERNAL_LIBS@
edje_external_emotion_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
edje_external_emotion_module_la_LIBTOOLFLAGS = --tag=disable-static

### Binary

### Unit tests

if EFL_ENABLE_TESTS
if BUILD_LOADER_PNG

bin_PROGRAMS += tests/emotion/emotion_test

tests_emotion_emotion_test_SOURCES = \
tests/emotion/emotion_test_main.c

tests_emotion_emotion_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\" \
-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)\" \
@EDJE_CFLAGS@ \
@EMOTION_CFLAGS@

tests_emotion_emotion_test_LDADD = @USE_EDJE_LIBS@ @USE_EMOTION_LIBS@
tests_emotion_emotion_test_DEPENDENCIES = @USE_EDJE_INTERNAL_LIBS@ @USE_EMOTION_INTERNAL_LIBS@

bin_PROGRAMS += tests/emotion/emotion_test-eo

tests_emotion_emotion_test_eo_SOURCES = \
tests/emotion/emotion_test_main-eo.c

tests_emotion_emotion_test_eo_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\" \
-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)\" \
@EDJE_CFLAGS@ \
@EMOTION_CFLAGS@ \
@EO_CFLAGS@

tests_emotion_emotion_test_eo_LDADD = @USE_EDJE_LIBS@ @USE_EMOTION_LIBS@ @USE_EO_LIBS@
tests_emotion_emotion_test_eo_DEPENDENCIES = @USE_EDJE_INTERNAL_LIBS@ @USE_EMOTION_INTERNAL_LIBS@ \
@USE_EO_INTERNAL_LIBS@

tests/emotion/data/theme.edj: tests/emotion/data/theme.edc bin/edje/edje_cc${EXEEXT}
	$(AM_V_EDJ) \
	$(MKDIR_P) tests/emotion/data; \
	$(EDJE_CC) $(EDJE_CC_FLAGS) -id $(srcdir)/tests/emotion/data $< $@

emotiondatafilesdir = $(datadir)/emotion/data
emotiondatafiles_DATA = tests/emotion/data/theme.edj
CLEANFILES += tests/emotion/data/theme.edj

endif
endif

# Those probably should be in the if block, but then
# "make distcheck" would not work
EXTRA_DIST2 += \
tests/emotion/data/bpause.png \
tests/emotion/data/bplay.png \
tests/emotion/data/bstop.png \
tests/emotion/data/icon_pause.png \
tests/emotion/data/icon_play.png \
tests/emotion/data/icon_stop.png \
tests/emotion/data/e_logo.png \
tests/emotion/data/fr1.png \
tests/emotion/data/fr2.png \
tests/emotion/data/fr3.png \
tests/emotion/data/fr4.png \
tests/emotion/data/fr5.png \
tests/emotion/data/fr6.png \
tests/emotion/data/fr7.png \
tests/emotion/data/h_slider.png \
tests/emotion/data/icon.edc \
tests/emotion/data/knob.png \
tests/emotion/data/orb.png \
tests/emotion/data/pnl.png \
tests/emotion/data/sl.png \
tests/emotion/data/theme.edc \
tests/emotion/data/tiles.png \
tests/emotion/data/video_frame_bottom.png \
tests/emotion/data/video_frame_left.png \
tests/emotion/data/video_frame_right.png \
tests/emotion/data/video_frame_top.png \
tests/emotion/data/whb.png \
tests/emotion/data/window_inner_shadow.png \
modules/emotion/generic/README

if HAVE_ELUA

emotion_eolian_lua = $(emotion_eolian_files:%.eo=%.eo.lua)

generated_emotion_lua_all = $(emotion_eolian_lua)

GENERATED_LUA_BINDINGS += $(generated_emotion_lua_all)

installed_emotionluadir = $(datadir)/elua/modules/emotion
nodist_installed_emotionlua_DATA = $(generated_emotion_lua_all)

endif

# TODO: gives undefined reference to emotion_object_class_get()
if HAVE_JS

generated_emotion_js_bindings = $(emotion_eolian_files:%.eo=%.eo.js.cc)

GENERATED_JS_BINDINGS += $(generated_emotion_js_bindings)

endif

emotiongenericplayersdir = \
$(libdir)/emotion/generic_players/$(MODULE_ARCH)

emotiongenericplayers_PROGRAMS =

if HAVE_GENERIC_VLC

emotiongenericplayers_PROGRAMS += generic/emotion/vlc/vlc
generic_emotion_vlc_vlc_SOURCES = generic/emotion/vlc/emotion_generic_vlc.c
generic_emotion_vlc_vlc_CPPFLAGS = \
-I$(top_srcdir)/src/lib/efl \
-I$(top_builddir)/src/lib/efl \
-I$(top_srcdir)/src/lib/eina \
-I$(top_builddir)/src/lib/eina \
-I$(top_srcdir)/src/lib/eo \
-I$(top_srcdir)/src/lib/ecore \
-I$(top_srcdir)/src/modules/emotion/generic \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\" \
-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)\" \
-DEMOTION_GENERIC_PLAYERS_DIR=\"$(libdir)/emotion/generic_players/$(MODULE_ARCH)\" \
@GENERIC_VLC_CFLAGS@
generic_emotion_vlc_vlc_LDADD = @GENERIC_VLC_LIBS@ @USE_EINA_LIBS@ @USE_ECORE_LIBS@
generic_emotion_vlc_vlc_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@ @USE_ECORE_INTERNAL_LIBS@
endif