From 52931b205f096e91c1e52481447b9112fe3602de Mon Sep 17 00:00:00 2001 From: barbieri Date: Sun, 4 Sep 2011 00:17:06 +0000 Subject: [PATCH] generic module can now be built-in as static module. also removed sole left-overs of previous disable of vlc engine. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@63141 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- configure.ac | 2 +- m4/emotion_check.m4 | 2 +- src/lib/Makefile.am | 16 ++++------------ src/lib/emotion_smart.c | 7 ++++++- src/modules/generic/emotion_generic.c | 2 +- 5 files changed, 13 insertions(+), 16 deletions(-) diff --git a/configure.ac b/configure.ac index c67b483..d431700 100644 --- a/configure.ac +++ b/configure.ac @@ -296,7 +296,7 @@ echo " Xine...............: ${enable_xine}" echo " Gstreamer..........: ${enable_gstreamer}" echo " Generic............: ${enable_generic}" -if test "x${enable_generic}" = "xyes"; then +if test "x${enable_generic}" = "xyes" || test "x${enable_generic}" = "xstatic"; then echo echo " Generic Players:" echo " VLC................: ${enable_generic_vlc}" diff --git a/m4/emotion_check.m4 b/m4/emotion_check.m4 index 4509c25..8c0114c 100644 --- a/m4/emotion_check.m4 +++ b/m4/emotion_check.m4 @@ -172,7 +172,7 @@ AC_ARG_ENABLE(generic-[]DOWN, ], [enable_module="auto"]) -if test "x${enable_generic}" != "xyes"; then +if test "x${enable_generic}" != "xyes" && test "x${enable_generic}" != "xstatic"; then if test "x${enable_module}" = "xyes"; then AC_MSG_WARN([Generic module is disabled, force disable of Generic Player $1]) fi diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 0f48f11..a2d2198 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -21,10 +21,6 @@ if EMOTION_STATIC_BUILD_GSTREAMER AM_CPPFLAGS += @GSTREAMER_CFLAGS@ endif -#if EMOTION_STATIC_BUILD_VLC -#AM_CPPFLAGS += @VLC_CFLAGS@ -#endif - lib_LTLIBRARIES = libemotion.la includes_HEADERS = Emotion.h includesdir = $(includedir)/emotion-@VMAJ@ @@ -43,10 +39,10 @@ $(top_srcdir)/src/modules/gstreamer/emotion_gstreamer.c \ $(top_srcdir)/src/modules/gstreamer/emotion_sink.c endif -#if EMOTION_STATIC_BUILD_VLC -#libemotion_la_SOURCES += \ -#$(top_srcdir)/src/modules/vlc/emotion_vlc.c -#endif +if EMOTION_STATIC_BUILD_GENERIC +libemotion_la_SOURCES += \ +$(top_srcdir)/src/modules/generic/emotion_generic.c +endif libemotion_la_LIBADD = @EMOTION_LIBS@ @EIO_LIBS@ @EEZE_LIBS@ @@ -58,10 +54,6 @@ if EMOTION_STATIC_BUILD_GSTREAMER libemotion_la_LIBADD += @GSTREAMER_LIBS@ endif -#if EMOTION_STATIC_BUILD_VLC -#libemotion_la_LIBADD += @VLC_LIBS@ -#endif - libemotion_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ EXTRA_DIST = emotion_private.h diff --git a/src/lib/emotion_smart.c b/src/lib/emotion_smart.c index be68d0f..3fbcbea 100644 --- a/src/lib/emotion_smart.c +++ b/src/lib/emotion_smart.c @@ -121,7 +121,6 @@ static int _log_domain = -1; static const char *_backend_priority[] = { "gstreamer", "xine", - "vlc", "generic" }; @@ -1508,6 +1507,9 @@ Eina_Bool xine_module_init(void); #ifdef EMOTION_STATIC_BUILD_GSTREAMER Eina_Bool gstreamer_module_init(void); #endif +#ifdef EMOTION_STATIC_BUILD_GENERIC +Eina_Bool generic_module_init(void); +#endif static void _smart_init(void) @@ -1557,6 +1559,9 @@ _smart_init(void) #ifdef EMOTION_STATIC_BUILD_GSTREAMER gstreamer_module_init(); #endif +#ifdef EMOTION_STATIC_BUILD_GENERIC + generic_module_init(); +#endif static Evas_Smart_Class sc = EVAS_SMART_CLASS_INIT_NAME_VERSION(E_OBJ_NAME); diff --git a/src/modules/generic/emotion_generic.c b/src/modules/generic/emotion_generic.c index aac4696..747d88e 100644 --- a/src/modules/generic/emotion_generic.c +++ b/src/modules/generic/emotion_generic.c @@ -1148,7 +1148,7 @@ static void module_close(Emotion_Video_Module *module __UNUSED__, void *video) } -static Eina_Bool +Eina_Bool generic_module_init(void) { if (!pfx) -- 2.7.4