mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
meson: move declarations of several generators
This commit is contained in:
parent
dd1f738e40
commit
2a4566203e
66
meson.build
66
meson.build
@ -2377,6 +2377,10 @@ subdir('src/busctl')
|
|||||||
subdir('src/coredump')
|
subdir('src/coredump')
|
||||||
subdir('src/cryptenroll')
|
subdir('src/cryptenroll')
|
||||||
subdir('src/cryptsetup')
|
subdir('src/cryptsetup')
|
||||||
|
subdir('src/debug-generator')
|
||||||
|
subdir('src/environment-d-generator')
|
||||||
|
subdir('src/fstab-generator')
|
||||||
|
subdir('src/getty-generator')
|
||||||
subdir('src/home')
|
subdir('src/home')
|
||||||
subdir('src/hostname')
|
subdir('src/hostname')
|
||||||
subdir('src/import')
|
subdir('src/import')
|
||||||
@ -2397,6 +2401,7 @@ subdir('src/portable')
|
|||||||
subdir('src/pstore')
|
subdir('src/pstore')
|
||||||
subdir('src/resolve')
|
subdir('src/resolve')
|
||||||
subdir('src/rpm')
|
subdir('src/rpm')
|
||||||
|
subdir('src/run-generator')
|
||||||
subdir('src/shutdown')
|
subdir('src/shutdown')
|
||||||
subdir('src/sysext')
|
subdir('src/sysext')
|
||||||
subdir('src/systemctl')
|
subdir('src/systemctl')
|
||||||
@ -2540,51 +2545,8 @@ if want_tests != 'false'
|
|||||||
args : exe.full_path())
|
args : exe.full_path())
|
||||||
endif
|
endif
|
||||||
|
|
||||||
executable(
|
|
||||||
'systemd-getty-generator',
|
|
||||||
'src/getty-generator/getty-generator.c',
|
|
||||||
include_directories : includes,
|
|
||||||
link_with : [libshared],
|
|
||||||
dependencies : userspace,
|
|
||||||
install_rpath : pkglibdir,
|
|
||||||
install : true,
|
|
||||||
install_dir : systemgeneratordir)
|
|
||||||
|
|
||||||
executable(
|
|
||||||
'systemd-debug-generator',
|
|
||||||
'src/debug-generator/debug-generator.c',
|
|
||||||
include_directories : includes,
|
|
||||||
link_with : [libshared],
|
|
||||||
dependencies : userspace,
|
|
||||||
install_rpath : pkglibdir,
|
|
||||||
install : true,
|
|
||||||
install_dir : systemgeneratordir)
|
|
||||||
|
|
||||||
executable(
|
|
||||||
'systemd-run-generator',
|
|
||||||
'src/run-generator/run-generator.c',
|
|
||||||
include_directories : includes,
|
|
||||||
link_with : [libshared],
|
|
||||||
dependencies : userspace,
|
|
||||||
install_rpath : pkglibdir,
|
|
||||||
install : true,
|
|
||||||
install_dir : systemgeneratordir)
|
|
||||||
|
|
||||||
exe = executable(
|
|
||||||
'systemd-fstab-generator',
|
|
||||||
'src/fstab-generator/fstab-generator.c',
|
|
||||||
include_directories : includes,
|
|
||||||
link_with : [libshared],
|
|
||||||
dependencies : userspace,
|
|
||||||
install_rpath : pkglibdir,
|
|
||||||
install : true,
|
|
||||||
install_dir : systemgeneratordir)
|
|
||||||
|
|
||||||
meson.add_install_script(meson_make_symlink,
|
|
||||||
systemgeneratordir / 'systemd-fstab-generator',
|
|
||||||
libexecdir / 'systemd-sysroot-fstab-check')
|
|
||||||
|
|
||||||
if want_tests != 'false'
|
if want_tests != 'false'
|
||||||
|
exe = executables_by_name.get('systemd-fstab-generator')
|
||||||
test('test-fstab-generator',
|
test('test-fstab-generator',
|
||||||
test_fstab_generator_sh,
|
test_fstab_generator_sh,
|
||||||
# https://github.com/mesonbuild/meson/issues/2681
|
# https://github.com/mesonbuild/meson/issues/2681
|
||||||
@ -2593,22 +2555,6 @@ if want_tests != 'false'
|
|||||||
depends : exe)
|
depends : exe)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf.get('ENABLE_ENVIRONMENT_D') == 1
|
|
||||||
executable(
|
|
||||||
'30-systemd-environment-d-generator',
|
|
||||||
'src/environment-d-generator/environment-d-generator.c',
|
|
||||||
include_directories : includes,
|
|
||||||
link_with : [libshared],
|
|
||||||
dependencies : userspace,
|
|
||||||
install_rpath : pkglibdir,
|
|
||||||
install : true,
|
|
||||||
install_dir : userenvgeneratordir)
|
|
||||||
|
|
||||||
meson.add_install_script(meson_make_symlink,
|
|
||||||
sysconfdir / 'environment',
|
|
||||||
environmentdir / '99-environment.conf')
|
|
||||||
endif
|
|
||||||
|
|
||||||
if conf.get('ENABLE_HIBERNATE') == 1
|
if conf.get('ENABLE_HIBERNATE') == 1
|
||||||
executable(
|
executable(
|
||||||
'systemd-hibernate-resume-generator',
|
'systemd-hibernate-resume-generator',
|
||||||
|
8
src/debug-generator/meson.build
Normal file
8
src/debug-generator/meson.build
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
|
executables += [
|
||||||
|
generator_template + {
|
||||||
|
'name' : 'systemd-debug-generator',
|
||||||
|
'sources' : files('debug-generator.c'),
|
||||||
|
},
|
||||||
|
]
|
16
src/environment-d-generator/meson.build
Normal file
16
src/environment-d-generator/meson.build
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
|
executables += [
|
||||||
|
executable_template + {
|
||||||
|
'name' : '30-systemd-environment-d-generator',
|
||||||
|
'conditions' : ['ENABLE_ENVIRONMENT_D'],
|
||||||
|
'sources' : files('environment-d-generator.c'),
|
||||||
|
'install_dir' : userenvgeneratordir,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
if conf.get('ENABLE_ENVIRONMENT_D') == 1
|
||||||
|
meson.add_install_script(meson_make_symlink,
|
||||||
|
sysconfdir / 'environment',
|
||||||
|
environmentdir / '99-environment.conf')
|
||||||
|
endif
|
12
src/fstab-generator/meson.build
Normal file
12
src/fstab-generator/meson.build
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
|
executables += [
|
||||||
|
generator_template + {
|
||||||
|
'name' : 'systemd-fstab-generator',
|
||||||
|
'sources' : files('fstab-generator.c'),
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
meson.add_install_script(meson_make_symlink,
|
||||||
|
systemgeneratordir / 'systemd-fstab-generator',
|
||||||
|
libexecdir / 'systemd-sysroot-fstab-check')
|
8
src/getty-generator/meson.build
Normal file
8
src/getty-generator/meson.build
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
|
executables += [
|
||||||
|
generator_template + {
|
||||||
|
'name' : 'systemd-getty-generator',
|
||||||
|
'sources' : files('getty-generator.c'),
|
||||||
|
},
|
||||||
|
]
|
8
src/run-generator/meson.build
Normal file
8
src/run-generator/meson.build
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
|
executables += [
|
||||||
|
generator_template + {
|
||||||
|
'name' : 'systemd-run-generator',
|
||||||
|
'sources' : files('run-generator.c'),
|
||||||
|
},
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user