mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 11:55:44 +03:00
meson: only build src/shared/tests.c if tests are enabled
It's only needed for tests and leaks build directories into libsystemd-shared.
This commit is contained in:
parent
aacd352d8c
commit
b9fa9b71c6
@ -89,8 +89,6 @@ shared_sources = files('''
|
|||||||
switch-root.h
|
switch-root.h
|
||||||
sysctl-util.c
|
sysctl-util.c
|
||||||
sysctl-util.h
|
sysctl-util.h
|
||||||
tests.c
|
|
||||||
tests.h
|
|
||||||
tomoyo-util.c
|
tomoyo-util.c
|
||||||
tomoyo-util.h
|
tomoyo-util.h
|
||||||
udev-util.h
|
udev-util.h
|
||||||
@ -107,6 +105,10 @@ shared_sources = files('''
|
|||||||
wireguard-netlink.h
|
wireguard-netlink.h
|
||||||
'''.split())
|
'''.split())
|
||||||
|
|
||||||
|
if get_option('tests') != 'false'
|
||||||
|
shared_sources += files('tests.c', 'tests.h')
|
||||||
|
endif
|
||||||
|
|
||||||
test_tables_h = files('test-tables.h')
|
test_tables_h = files('test-tables.h')
|
||||||
shared_sources += test_tables_h
|
shared_sources += test_tables_h
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user