summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-09 20:51:56 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-09 20:51:56 +0000
commitbe30200a503d819e18fdc83663df12a319098f98 (patch)
tree83660c46a80e85fb251dd5c626f431fbb0909d2d /src/lib/eeze
parentbc201019940365b1f9266a569729ed334d857df6 (diff)
eeze: install module under MODULE_ARCH like the rest of EFL
SVN revision: 82479
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/eeze_sensor.c23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/lib/eeze/eeze_sensor.c b/src/lib/eeze/eeze_sensor.c
index 157b8a9c6a..608c9f0d97 100644
--- a/src/lib/eeze/eeze_sensor.c
+++ b/src/lib/eeze/eeze_sensor.c
@@ -73,18 +73,33 @@ eeze_sensor_obj_get(Eeze_Sensor_Type sensor_type)
73static void 73static void
74eeze_sensor_modules_load(void) 74eeze_sensor_modules_load(void)
75{ 75{
76 char buf[PATH_MAX];
77
76 /* Check for available runtime modules and load them. In some cases the 78 /* Check for available runtime modules and load them. In some cases the
77 * un-installed modules to be used from the local build dir. Coverage check 79 * un-installed modules to be used from the local build dir. Coverage check
78 * is one of these items. We do load the modules from the builddir if the 80 * is one of these items. We do load the modules from the builddir if the
79 * environment is set. Normal case is to use installed modules from system 81 * environment is set. Normal case is to use installed modules from system
80 */ 82 */
81 if (getenv("EFL_RUN_IN_TREE")) 83 if (getenv("EFL_RUN_IN_TREE"))
82 g_handle->modules_array = eina_module_list_get(NULL, PACKAGE_BUILD_DIR "/src/modules/eeze/.libs/", 0, NULL, NULL); 84 {
85 const char *modules[] = { "tizen", "fake", NULL };
86 const char **itr;
87
88 for (itr = modules; *itr != NULL; itr++)
89 {
90 snprintf(buf, sizeof(buf),
91 PACKAGE_BUILD_DIR "/src/modules/eeze/sensor/%s/.libs",
92 *itr);
93 g_handle->modules_array = eina_module_list_get(
94 g_handle->modules_array, buf, EINA_FALSE, NULL, NULL);
95 }
96 }
83 else 97 else
84 { 98 {
85 char buf[PATH_MAX]; 99 snprintf(buf, sizeof(buf), "%s/eeze/modules/sensor",
86 snprintf(buf, sizeof(buf), "%s/eeze/sensor/", eina_prefix_lib_get(pfx)); 100 eina_prefix_lib_get(pfx));
87 g_handle->modules_array = eina_module_list_get(NULL, buf, 0, NULL, NULL); 101 g_handle->modules_array = eina_module_arch_list_get(NULL, buf,
102 MODULE_ARCH);
88 } 103 }
89 104
90 if (!g_handle->modules_array) 105 if (!g_handle->modules_array)