aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_evas/ecore_evas_module.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-05-16 16:32:59 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-05-20 15:13:43 +0900
commit83320ae105a9ff0aad02e67cfb755e45b80e777b (patch)
tree5e77cb8b9fbe2a542e3382bc6e3bec15dbc8b2ce /src/lib/ecore_evas/ecore_evas_module.c
parentupdate po's (diff)
downloadefl-83320ae105a9ff0aad02e67cfb755e45b80e777b.tar.gz
Win32: Fix ecore_evas engine search path
Engines are stored in a lib/ folder, while the main DLL files are in the bin/ folder, so the engine would never be found. A solution was to add the proper checkme file in the share folder, but since this is necessary only for Windows, we can simply use ../lib instead of using the full eina_prefix detector. Thanks vtorri for the review.
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas_module.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas_module.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_module.c b/src/lib/ecore_evas/ecore_evas_module.c
index 60ceb36a15..9539bc20ca 100644
--- a/src/lib/ecore_evas/ecore_evas_module.c
+++ b/src/lib/ecore_evas/ecore_evas_module.c
@@ -101,9 +101,11 @@ _ecore_evas_engine_init(void)
/* 1. libecore_evas.so/../ecore_evas/engines/ */
paths[0] = eina_module_symbol_path_get(_ecore_evas_engine_init, "/ecore_evas/engines");
- /* 2. PREFIX/ecore_evas/engines/ */
-#ifndef _MSC_VER
+#ifndef _WIN32
+ /* 3. PREFIX/ecore_evas/engines/ */
paths[1] = strdup(PACKAGE_LIB_DIR "/ecore_evas/engines");
+#else
+ paths[1] = eina_module_symbol_path_get(_ecore_evas_engine_init, "/../lib/ecore_evas/engines");
#endif
for (j = 0; j < ((sizeof (paths) / sizeof (char*)) - 1); ++j)