Commit 35aa0b9b authored by Jakub Adam's avatar Jakub Adam

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.
parent 91f99b22
......@@ -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')
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment