summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-06-25 08:59:49 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-07-31 22:52:50 +0200
commit6c713961ab0831fe744a2df9c4e9e258b6ba3105 (patch)
treeb355d9479f7e88576b1b864c6cd9f199514c26b4
parentmeson: move declarations of cryptsetup and friends (diff)
downloadsystemd-6c713961ab0831fe744a2df9c4e9e258b6ba3105.tar.xz
systemd-6c713961ab0831fe744a2df9c4e9e258b6ba3105.zip
meson: move declarations of several generators
-rw-r--r--meson.build53
-rw-r--r--src/rc-local-generator/meson.build9
-rw-r--r--src/sysv-generator/meson.build9
-rw-r--r--src/xdg-autostart-generator/meson.build14
4 files changed, 34 insertions, 51 deletions
diff --git a/meson.build b/meson.build
index eca9b4325c..8ae87f7c90 100644
--- a/meson.build
+++ b/meson.build
@@ -2404,6 +2404,7 @@ subdir('src/oom')
subdir('src/partition')
subdir('src/portable')
subdir('src/pstore')
+subdir('src/rc-local-generator')
subdir('src/resolve')
subdir('src/rfkill')
subdir('src/rpm')
@@ -2414,6 +2415,7 @@ subdir('src/sysext')
subdir('src/system-update-generator')
subdir('src/systemctl')
subdir('src/sysupdate')
+subdir('src/sysv-generator')
subdir('src/timedate')
subdir('src/timesync')
subdir('src/tmpfiles')
@@ -2579,57 +2581,6 @@ meson.add_install_script(meson_make_symlink,
bindir / 'udevadm',
libexecdir / 'systemd-udevd')
-if conf.get('HAVE_SYSV_COMPAT') == 1
- exe = executable(
- 'systemd-sysv-generator',
- 'src/sysv-generator/sysv-generator.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : userspace,
- install_rpath : pkglibdir,
- install : true,
- install_dir : systemgeneratordir)
-
- sysv_generator_test_py = find_program('test/sysv-generator-test.py')
- if want_tests != 'false'
- test('sysv-generator-test',
- sysv_generator_test_py,
- depends : exe)
- endif
-
- executable(
- 'systemd-rc-local-generator',
- 'src/rc-local-generator/rc-local-generator.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : userspace,
- install_rpath : pkglibdir,
- install : true,
- install_dir : systemgeneratordir)
-endif
-
-if conf.get('ENABLE_XDG_AUTOSTART') == 1
- executable(
- 'systemd-xdg-autostart-generator',
- systemd_xdg_autostart_generator_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : userspace,
- install_rpath : pkglibdir,
- install : true,
- install_dir : usergeneratordir)
-
- executable(
- 'systemd-xdg-autostart-condition',
- 'src/xdg-autostart-generator/xdg-autostart-condition.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : userspace,
- install_rpath : pkglibdir,
- install : true,
- install_dir : libexecdir)
-endif
-
if conf.get('ENABLE_HOSTNAMED') == 1
dbus_programs += executable(
'systemd-hostnamed',
diff --git a/src/rc-local-generator/meson.build b/src/rc-local-generator/meson.build
new file mode 100644
index 0000000000..e74225cd48
--- /dev/null
+++ b/src/rc-local-generator/meson.build
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+executables += [
+ generator_template + {
+ 'name' : 'systemd-rc-local-generator',
+ 'conditions' : ['HAVE_SYSV_COMPAT'],
+ 'sources' : files('rc-local-generator.c'),
+ },
+]
diff --git a/src/sysv-generator/meson.build b/src/sysv-generator/meson.build
new file mode 100644
index 0000000000..4e89439df6
--- /dev/null
+++ b/src/sysv-generator/meson.build
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+executables += [
+ generator_template + {
+ 'name' : 'systemd-sysv-generator',
+ 'conditions' : ['HAVE_SYSV_COMPAT'],
+ 'sources' : files('sysv-generator.c'),
+ },
+]
diff --git a/src/xdg-autostart-generator/meson.build b/src/xdg-autostart-generator/meson.build
index c7e5660881..8eea9322ae 100644
--- a/src/xdg-autostart-generator/meson.build
+++ b/src/xdg-autostart-generator/meson.build
@@ -5,6 +5,20 @@ systemd_xdg_autostart_generator_sources = files(
'xdg-autostart-service.c',
)
+executables += [
+ executable_template + {
+ 'name' : 'systemd-xdg-autostart-generator',
+ 'conditions' : ['ENABLE_XDG_AUTOSTART'],
+ 'sources' : systemd_xdg_autostart_generator_sources,
+ 'install_dir' : usergeneratordir,
+ },
+ libexec_template + {
+ 'name' : 'systemd-xdg-autostart-condition',
+ 'conditions' : ['ENABLE_XDG_AUTOSTART'],
+ 'sources' : files('xdg-autostart-condition.c'),
+ },
+]
+
tests += [
{
'sources' : files(