projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aacd352
)
meson: only build src/shared/tests.c if tests are enabled
author
Michael Olbrich
<m.olbrich@pengutronix.de>
Sun, 30 Sep 2018 14:08:14 +0000
(16:08 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 8 Oct 2018 16:29:36 +0000
(18:29 +0200)
It's only needed for tests and leaks build directories into
libsystemd-shared.
src/shared/meson.build
patch
|
blob
|
history
diff --git
a/src/shared/meson.build
b/src/shared/meson.build
index 498b73c7504caecee9a3837da548752c290f7409..ff9453f48032be41a43f350aa05aceb58e67a77a 100644
(file)
--- a/
src/shared/meson.build
+++ b/
src/shared/meson.build
@@
-89,8
+89,6
@@
shared_sources = files('''
switch-root.h
sysctl-util.c
sysctl-util.h
- tests.c
- tests.h
tomoyo-util.c
tomoyo-util.h
udev-util.h
@@
-107,6
+105,10
@@
shared_sources = files('''
wireguard-netlink.h
'''.split())
+if get_option('tests') != 'false'
+ shared_sources += files('tests.c', 'tests.h')
+endif
+
test_tables_h = files('test-tables.h')
shared_sources += test_tables_h