1
0
mirror of https://github.com/systemd/systemd synced 2024-07-08 20:15:55 +00:00

meson: move declarations of backlight, rfkill, and sysupdate-generator

This commit is contained in:
Yu Watanabe 2023-06-25 15:55:33 +09:00
parent bab54d1fde
commit 7e6ca26fe5
4 changed files with 29 additions and 34 deletions

View File

@ -2371,6 +2371,7 @@ subdir('src/journal')
subdir('src/libsystemd-network')
subdir('src/analyze')
subdir('src/backlight')
subdir('src/boot')
subdir('src/boot/efi')
subdir('src/busctl')
@ -2403,11 +2404,13 @@ subdir('src/partition')
subdir('src/portable')
subdir('src/pstore')
subdir('src/resolve')
subdir('src/rfkill')
subdir('src/rpm')
subdir('src/run-generator')
subdir('src/shutdown')
subdir('src/socket-activate')
subdir('src/sysext')
subdir('src/system-update-generator')
subdir('src/systemctl')
subdir('src/sysupdate')
subdir('src/timedate')
@ -2574,40 +2577,6 @@ meson.add_install_script(meson_make_symlink,
bindir / 'udevadm',
libexecdir / 'systemd-udevd')
if conf.get('ENABLE_BACKLIGHT') == 1
executable(
'systemd-backlight',
'src/backlight/backlight.c',
include_directories : includes,
link_with : [libshared],
dependencies : userspace,
install_rpath : pkglibdir,
install : true,
install_dir : libexecdir)
endif
if conf.get('ENABLE_RFKILL') == 1
executable(
'systemd-rfkill',
'src/rfkill/rfkill.c',
include_directories : includes,
link_with : [libshared],
dependencies : userspace,
install_rpath : pkglibdir,
install : true,
install_dir : libexecdir)
endif
executable(
'systemd-system-update-generator',
'src/system-update-generator/system-update-generator.c',
include_directories : includes,
link_with : [libshared],
dependencies : userspace,
install_rpath : pkglibdir,
install : true,
install_dir : systemgeneratordir)
if conf.get('HAVE_LIBCRYPTSETUP') == 1
executable(
'systemd-cryptsetup',

View File

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

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

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

View File

@ -0,0 +1,8 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
executables += [
generator_template + {
'name' : 'systemd-system-update-generator',
'sources' : files('system-update-generator.c'),
},
]