From: Jakub Adam Date: Wed, 2 Jan 2019 11:55:02 +0000 (+0100) Subject: meson: Fix DLL search path during test execution on Windows X-Git-Tag: 0.1.16~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35aa0b9b81d2dfd8c53d88081f58f7d8435afdf8;p=platform%2Fupstream%2Flibnice.git meson: Fix DLL search path during test execution on Windows Meson needs to see all libraries a target depends on so that it can add each to PATH when running "meson test". Avoids "*.dll was not found" errors. --- diff --git a/nice/meson.build b/nice/meson.build index 12b99b2..9c0cdd4 100644 --- a/nice/meson.build +++ b/nice/meson.build @@ -52,7 +52,8 @@ endif libnice_dep = declare_dependency(link_with : libnice, include_directories : [agent_include, nice_include], # Everything that uses libnice needs this built to compile - sources : nice_gen_sources) + sources : nice_gen_sources, + dependencies: nice_deps) # pkg-config file pkg = import('pkgconfig') diff --git a/stun/tests/meson.build b/stun/tests/meson.build index 591cb4e..6018073 100644 --- a/stun/tests/meson.build +++ b/stun/tests/meson.build @@ -2,7 +2,7 @@ foreach t : ['parse', 'format', 'bind', 'conncheck', 'hmac'] test_name = 'test-@0@'.format(t) exe = executable(test_name, test_name + '.c', include_directories: nice_incs, - dependencies: syslibs, + dependencies: [syslibs, crypto_dep], link_with: libstun) test(test_name, exe) endforeach