mirror of https://github.com/kiwix/libkiwix.git
[Windows] Add extra link arguments to build test on windows.
This commit is contained in:
parent
fd9b6569af
commit
bf2188af14
|
@ -90,6 +90,12 @@ conf.set('VERSION', '"@0@"'.format(meson.project_version()))
|
||||||
conf.set('ENABLE_CTPP2', has_ctpp2_dep)
|
conf.set('ENABLE_CTPP2', has_ctpp2_dep)
|
||||||
conf.set('ENABLE_LIBARIA2', libaria2_dep.found())
|
conf.set('ENABLE_LIBARIA2', libaria2_dep.found())
|
||||||
|
|
||||||
|
if build_machine.system() == 'windows'
|
||||||
|
extra_link_args = ['-lshlwapi', '-lwinmm']
|
||||||
|
else
|
||||||
|
extra_link_args = []
|
||||||
|
endif
|
||||||
|
|
||||||
subdir('include')
|
subdir('include')
|
||||||
subdir('scripts')
|
subdir('scripts')
|
||||||
subdir('static')
|
subdir('static')
|
||||||
|
|
|
@ -10,6 +10,7 @@ gtest_dep = dependency('gtest', fallback: ['gtest', 'gtest_dep'])
|
||||||
foreach test_name : tests
|
foreach test_name : tests
|
||||||
test_exe = executable(test_name, [test_name+'.cpp'],
|
test_exe = executable(test_name, [test_name+'.cpp'],
|
||||||
link_with : kiwixlib,
|
link_with : kiwixlib,
|
||||||
|
link_args: extra_link_args,
|
||||||
dependencies : all_deps + [gtest_dep],
|
dependencies : all_deps + [gtest_dep],
|
||||||
build_rpath : '$ORIGIN')
|
build_rpath : '$ORIGIN')
|
||||||
test(test_name, test_exe)
|
test(test_name, test_exe)
|
||||||
|
|
Loading…
Reference in New Issue