mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
These are built from the same sources as the regular binaries, so we end up with the same sources multiple times in the compilation database but with different command line arguments, which trips up tooling that uses the compilation database. Let's not define the standalone targets if the option is not enabled to avoid this problem.
27 lines
787 B
Meson
27 lines
787 B
Meson
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
if conf.get('ENABLE_SYSUSERS') != 1
|
|
subdir_done()
|
|
endif
|
|
|
|
executables += [
|
|
executable_template + {
|
|
'name' : 'systemd-sysusers',
|
|
'public' : true,
|
|
'sources' : files('sysusers.c'),
|
|
'dependencies' : libaudit,
|
|
},
|
|
executable_template + {
|
|
'name' : 'systemd-sysusers.standalone',
|
|
'public' : true,
|
|
'sources' : files('sysusers.c'),
|
|
'c_args' : '-DSTANDALONE',
|
|
'link_with' : [
|
|
libbasic_static,
|
|
libshared_static,
|
|
libsystemd_static,
|
|
],
|
|
'dependencies' : libaudit,
|
|
},
|
|
]
|