bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fae1baed8e7ff7296a8d152b1c214b6c49d32c5a

commit fae1baed8e7ff7296a8d152b1c214b6c49d32c5a
Author: Marcel Hollerbach <[email protected]>
Date:   Wed Oct 24 15:08:15 2018 +0200

    meson: make bindings test work without efl installed
    
    there is the need to assemble the search path where the .so files can be
    found. This is now added to the test suite.
    
    In future this could ne added to meson directory. Since this is a
    general csharp problem.
---
 src/tests/efl_mono/meson.build | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/src/tests/efl_mono/meson.build b/src/tests/efl_mono/meson.build
index 9567bd05ca..9d0b7187cc 100644
--- a/src/tests/efl_mono/meson.build
+++ b/src/tests/efl_mono/meson.build
@@ -63,7 +63,29 @@ efl_mono_suite = executable('efl-mono-suite',
   link_with : [efl_mono, efl_mono_test],
 )
 
+env = environment()
+env.set('MONO_PATH', efl_mono_test_suite_path )
+
+config_libs = ['eina', 'ecore', 'eo', 'efl', 'evas', 'eldbus', 'elementary']
+load_lib = ''
+
+foreach config : config_libs
+  lib = get_variable(config+'_lib')
+  path = lib.full_path().split('/')
+  repaired_path = ''
+  prev = ''
+
+  foreach p : path
+    repaired_path += prev
+    prev = p+'/'
+  endforeach
+
+  load_lib += repaired_path+':'
+endforeach
+
+env.set('LD_LIBRARY_PATH', load_lib)
+
 test('efl-mono-suite',
   efl_mono_suite,
-  env : ['MONO_PATH='+efl_mono_test_suite_path]
+  env : env
 )

-- 


Reply via email to