summaryrefslogblamecommitdiff
path: root/src/Makefile_Emotion.am
blob: 4689f7d13500d6f5520c4378fe51d1181c5b5489 (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                         




                                                              
                               

                               
                              
                               

                          
                                                                    



                                               


                                                                
















                                                                    
                                                                         
                  

                                         
                    
                          
                                                                         















                                                                     




                                                                              
                                                                              
                  

                                              
                    
                               
                                                                              


                                                                          


                                                                                                              















                                                                          
                                                                            
                  
                                 


                                         


                                            
                                                                            
















                                                                        
                                                                          


                                         
                                          




                                                







                                                                      
                   





                                          
                                                                     


                                           


                                               
 

                                                                                              
 
                                                                                    
                                      






























                                                                                     
                                          
     
     



                              
### Library

lib_LTLIBRARIES += \
lib/emotion/libemotion.la

installed_emotionmainheadersdir = $(includedir)/emotion-@VMAJ@
dist_installed_emotionmainheaders_DATA = lib/emotion/Emotion.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

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=\"`pwd`/$(top_builddir)\" \
@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
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
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
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

# 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
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

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=\"`pwd`/$(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@

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

EMOTION_DATA_FILES = \
tests/emotion/data/bpause.png \
tests/emotion/data/bplay.png \
tests/emotion/data/bstop.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

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

EXTRA_DIST += \
$(EMOTION_DATA_FILES) \
modules/emotion/generic/README