]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: move declaration of sysext
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 25 Jun 2023 06:49:43 +0000 (15:49 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 31 Jul 2023 20:52:50 +0000 (05:52 +0900)
meson.build
src/sysext/meson.build

index b22a24821e00b52463a106655f795b92c2c6134f..42e1c2f908f72f56cef819eebd20721445611b32 100644 (file)
@@ -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',
index 7fc699ec1e4da8adc70874310b452a41d54ba85a..e58888ade341135b66e53b403b1efa7e243fb6d0 100644 (file)
@@ -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,