meson: move declarations of ac-power, detect-virt, sysctl, and sleep

This commit is contained in:
Yu Watanabe 2023-06-25 16:28:21 +09:00
parent 0d6b90b95e
commit 16b081d6ac
5 changed files with 44 additions and 43 deletions

View File

@ -2370,6 +2370,7 @@ subdir('src/journal')
# systemd-networkd requires 'libsystemd_network'
subdir('src/libsystemd-network')
subdir('src/ac-power')
subdir('src/analyze')
subdir('src/backlight')
subdir('src/binfmt')
@ -2380,6 +2381,7 @@ subdir('src/coredump')
subdir('src/cryptenroll')
subdir('src/cryptsetup')
subdir('src/debug-generator')
subdir('src/detect-virt')
subdir('src/dissect')
subdir('src/environment-d-generator')
subdir('src/firstboot')
@ -2416,7 +2418,9 @@ subdir('src/rfkill')
subdir('src/rpm')
subdir('src/run-generator')
subdir('src/shutdown')
subdir('src/sleep')
subdir('src/socket-activate')
subdir('src/sysctl')
subdir('src/sysext')
subdir('src/system-update-generator')
subdir('src/systemctl')
@ -2588,49 +2592,6 @@ meson.add_install_script(meson_make_symlink,
bindir / 'udevadm',
libexecdir / 'systemd-udevd')
executable(
'systemd-sleep',
'src/sleep/sleep.c',
include_directories : includes,
link_with : [libshared],
dependencies : [userspace],
install_rpath : pkglibdir,
install : true,
install_dir : libexecdir)
if install_sysconfdir_samples
install_data('src/sleep/sleep.conf',
install_dir : pkgsysconfdir)
endif
public_programs += executable(
'systemd-sysctl',
'src/sysctl/sysctl.c',
include_directories : includes,
link_with : [libshared],
dependencies : [userspace],
install_rpath : pkglibdir,
install : true,
install_dir : libexecdir)
public_programs += executable(
'systemd-ac-power',
'src/ac-power/ac-power.c',
include_directories : includes,
link_with : [libshared],
dependencies : [userspace],
install_rpath : pkglibdir,
install : true)
public_programs += executable(
'systemd-detect-virt',
'src/detect-virt/detect-virt.c',
include_directories : includes,
link_with : [libshared],
dependencies : [userspace],
install_rpath : pkglibdir,
install : true)
public_programs += executable(
'systemd-delta',
'src/delta/delta.c',

9
src/ac-power/meson.build Normal file
View File

@ -0,0 +1,9 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
executables += [
executable_template + {
'name' : 'systemd-ac-power',
'public' : true,
'sources' : files('ac-power.c'),
},
]

View File

@ -0,0 +1,9 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
executables += [
executable_template + {
'name' : 'systemd-detect-virt',
'public' : true,
'sources' : files('detect-virt.c'),
},
]

13
src/sleep/meson.build Normal file
View File

@ -0,0 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
executables += [
libexec_template + {
'name' : 'systemd-sleep',
'sources' : files('sleep.c'),
},
]
if install_sysconfdir_samples
install_data('sleep.conf',
install_dir : pkgsysconfdir)
endif

9
src/sysctl/meson.build Normal file
View File

@ -0,0 +1,9 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
executables += [
libexec_template + {
'name' : 'systemd-sysctl',
'public' : true,
'sources' : files('sysctl.c'),
},
]