From 8c75dfdd406712ce0c8773a72ae9edcceb04108c Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 25 Jun 2023 15:49:43 +0900 Subject: [PATCH] meson: move declaration of sysext --- meson.build | 11 ----------- src/sysext/meson.build | 9 ++++++++- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/meson.build b/meson.build index b22a24821e0..42e1c2f908f 100644 --- a/meson.build +++ b/meson.build @@ -2570,17 +2570,6 @@ if conf.get('HAVE_BLKID') == 1 and conf.get('ENABLE_BOOTLOADER') == 1 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', diff --git a/src/sysext/meson.build b/src/sysext/meson.build index 7fc699ec1e4..e58888ade34 100644 --- a/src/sysext/meson.build +++ b/src/sysext/meson.build @@ -1,6 +1,13 @@ # 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, -- 2.47.3