meson: do not build tests by default when '-Dtests=false'
[zj: it is still possible to build tests explicitly by calling
ninja -C build test-name. This way we have full flexibility.]
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
964bc0ad60
commit
fd1939fbe7
@@ -6,7 +6,8 @@ test_hashmap_ordered_c = custom_target(
|
||||
input : [awkscript, 'test-hashmap-plain.c'],
|
||||
output : 'test-hashmap-ordered.c',
|
||||
command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
|
||||
capture : true)
|
||||
capture : true,
|
||||
build_by_default : want_tests != 'false')
|
||||
|
||||
test_include_dir = include_directories('.')
|
||||
|
||||
@@ -26,14 +27,16 @@ test_libsystemd_sym_c = custom_target(
|
||||
input : [libsystemd_sym_path] + systemd_headers,
|
||||
output : 'test-libsystemd-sym.c',
|
||||
command : [generate_sym_test_py, libsystemd_sym_path] + systemd_headers,
|
||||
capture : true)
|
||||
capture : true,
|
||||
build_by_default : want_tests != 'false')
|
||||
|
||||
test_libudev_sym_c = custom_target(
|
||||
'test-libudev-sym.c',
|
||||
input : [libudev_sym_path, libudev_h_path],
|
||||
output : 'test-libudev-sym.c',
|
||||
command : [generate_sym_test_py, '@INPUT0@', '@INPUT1@'],
|
||||
capture : true)
|
||||
capture : true,
|
||||
build_by_default : want_tests != 'false')
|
||||
|
||||
test_dlopen_c = files('test-dlopen.c')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user