elementary: use new bs static lib
authorMarcel Hollerbach <marcel@osg.samsung.com>
Mon, 12 Feb 2018 17:37:26 +0000 (18:37 +0100)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 9 Apr 2018 02:25:35 +0000 (11:25 +0900)
src/Makefile_Elementary.am
src/lib/elementary/elm_module.c
src/lib/elementary/elm_web2.c

index 46327f4..f4fe326 100644 (file)
@@ -801,6 +801,8 @@ lib_elementary_libelementary_la_SOURCES = \
        lib/elementary/efl_selection_manager_private.h \
        lib/elementary/efl_selection.c \
        lib/elementary/efl_ui_dnd.c \
+  static_libs/buildsystem/buildsystem.h \
+  static_libs/buildsystem/buildsystem_autotools.c \
        $(NULL)
 
 
@@ -824,6 +826,8 @@ lib_elementary_libelementary_la_CPPFLAGS = \
 -DPACKAGE_DATA_DIR=\"$(datadir)/elementary\" \
 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
+-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)\" \
+-DPACKAGE_SRC_DIR=\"$(abs_top_srcdir)\" \
 -DLOCALE_DIR=\"$(localedir)\" \
 -DICON_DIR=\"$(datadir)/icons\" \
 -DELM_TOP_BUILD_DIR=\"$(top_builddir)\" \
index 447c207..2d38327 100644 (file)
@@ -3,7 +3,7 @@
 #endif
 
 #include <Elementary.h>
-
+#include "../../static_libs/buildsystem/buildsystem.h"
 #include "elm_priv.h"
 
 /* what are moodules in elementary for? for modularising behavior and features
@@ -135,8 +135,7 @@ _elm_module_load(Elm_Module *m)
 #ifdef NEED_RUN_IN_TREE
    if (getenv("EFL_RUN_IN_TREE"))
      {
-        snprintf(buf, sizeof(buf),
-             ELM_TOP_BUILD_DIR "/src/modules/elementary/%s/.libs/module"EFL_SHARED_EXTENSION, m->name);
+        bs_mod_get(buf, sizeof(buf), "elementary", m->name);
      }
    else
 #endif
index eabe310..58266fd 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <Elementary.h>
 
+#include "../../static_libs/buildsystem/buildsystem.h"
 #include "elm_priv.h"
 #include "elm_widget_web.h"
 
@@ -197,16 +198,10 @@ _elm_web_init(const char *engine)
 {
    char buf[PATH_MAX];
 
-#ifdef NEED_RUN_IN_TREE
-   if (getenv("EFL_RUN_IN_TREE"))
-     snprintf(buf, sizeof(buf),
-              ELM_TOP_BUILD_DIR"/src/modules/web/%s/.libs/module"EFL_SHARED_EXTENSION,
-              engine);
-   else
-#endif
-     snprintf(buf, sizeof(buf),
-              "%s/elementary/modules/web/%s/%s/module"EFL_SHARED_EXTENSION,
-              _elm_lib_dir, engine, MODULE_ARCH);
+     if (!bs_mod_get(buf, sizeof(buf), "elementary/web", engine))
+       snprintf(buf, sizeof(buf),
+                "%s/elementary/modules/web/%s/%s/module"EFL_SHARED_EXTENSION,
+                _elm_lib_dir, engine, MODULE_ARCH);
 
    if (ewm.m)
      {