endif
endif
-if conf.get('ENABLE_SYSEXT') == 1
- public_programs += executable(
- 'systemd-sysext',
- systemd_sysext_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : [userspace],
- install_rpath : pkglibdir,
- install : true)
-endif
-
if conf.get('ENABLE_USERDB') == 1
executable(
'systemd-userwork',
# SPDX-License-Identifier: LGPL-2.1-or-later
-systemd_sysext_sources = files('sysext.c')
+executables += [
+ executable_template + {
+ 'name' : 'systemd-sysext',
+ 'public' : true,
+ 'conditions' : ['ENABLE_SYSEXT'],
+ 'sources' : files('sysext.c'),
+ },
+]
if conf.get('ENABLE_SYSEXT') == 1
meson.add_install_script(meson_make_symlink,