Files
systemd/src/sysusers/meson.build
Daan De Meyer 1971631294 meson: Don't define targets for standalone binaries if option is not enabled
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.
2025-05-21 14:05:58 +02:00

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,
},
]