[meson] Don't compile test-{algs,iter,meta} on msvc

This commit is contained in:
Ebrahim Byagowi 2020-03-24 18:55:56 +04:30
parent 3385afacd3
commit 2db8279162
1 changed files with 8 additions and 3 deletions

View File

@ -401,15 +401,20 @@ foreach name, source : check_programs
endforeach
compiled_tests = {
'test-algs': ['test-algs.cc', 'hb-static.cc'],
'test-array': 'test-array.cc',
'test-iter': ['test-iter.cc', 'hb-static.cc'],
'test-meta': ['test-meta.cc', 'hb-static.cc'],
'test-number': ['test-number.cc', 'hb-number.cc'],
'test-ot-tag': 'hb-ot-tag.cc',
'test-unicode-ranges': 'test-unicode-ranges.cc',
'test-bimap': ['test-bimap.cc', 'hb-static.cc'],
}
if cpp.get_id() != 'msvc'
# TODO: MSVC doesn't like these, fix them
compiled_tests += {
'test-algs': ['test-algs.cc', 'hb-static.cc'],
'test-iter': ['test-iter.cc', 'hb-static.cc'],
'test-meta': ['test-meta.cc', 'hb-static.cc'],
}
endif
foreach name, source : compiled_tests
test(name, executable(name, source,
include_directories: incconfig,