emotion: use new bs static lib
authorMarcel Hollerbach <marcel@osg.samsung.com>
Mon, 12 Feb 2018 17:38:34 +0000 (18:38 +0100)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 9 Apr 2018 02:25:36 +0000 (11:25 +0900)
src/Makefile_Emotion.am
src/lib/emotion/emotion_modules.c

index 8c31f41..c1dcd7b 100644 (file)
@@ -36,13 +36,16 @@ 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/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@
index 3aa0f06..a746f1d 100644 (file)
@@ -3,6 +3,7 @@
 #endif
 
 #include "emotion_private.h"
+#include "../../static_libs/buildsystem/buildsystem.h"
 #include <unistd.h>
 
 #ifdef EMOTION_STATIC_BUILD_XINE
@@ -92,9 +93,7 @@ _emotion_modules_load(void)
                   const char **itr;
                   for (itr = built_modules; *itr != NULL; itr++)
                     {
-                       snprintf(buf, sizeof(buf),
-                                "%s/src/modules/emotion/%s/.libs",
-                                PACKAGE_BUILD_DIR, *itr);
+                       bs_mod_get(buf, sizeof(buf), "emotion", *itr);
                        _emotion_modules = eina_module_list_get(_emotion_modules, buf,
                                                                EINA_FALSE, NULL, NULL);
                     }