mirror of
https://github.com/systemd/systemd
synced 2024-07-08 20:15:55 +00:00
meson: move declarations of cryptsetup and friends
This commit is contained in:
parent
7e6ca26fe5
commit
81fe141ba3
82
meson.build
82
meson.build
|
@ -2388,6 +2388,7 @@ subdir('src/hibernate-resume')
|
|||
subdir('src/home')
|
||||
subdir('src/hostname')
|
||||
subdir('src/import')
|
||||
subdir('src/integritysetup')
|
||||
subdir('src/journal-remote')
|
||||
subdir('src/kernel-install')
|
||||
subdir('src/locale')
|
||||
|
@ -2418,6 +2419,7 @@ subdir('src/timesync')
|
|||
subdir('src/tmpfiles')
|
||||
subdir('src/user-sessions')
|
||||
subdir('src/userdb')
|
||||
subdir('src/veritysetup')
|
||||
subdir('src/xdg-autostart-generator')
|
||||
|
||||
subdir('src/systemd')
|
||||
|
@ -2577,86 +2579,6 @@ meson.add_install_script(meson_make_symlink,
|
|||
bindir / 'udevadm',
|
||||
libexecdir / 'systemd-udevd')
|
||||
|
||||
if conf.get('HAVE_LIBCRYPTSETUP') == 1
|
||||
executable(
|
||||
'systemd-cryptsetup',
|
||||
systemd_cryptsetup_sources,
|
||||
include_directories : includes,
|
||||
link_with : [libshared],
|
||||
dependencies : [libcryptsetup,
|
||||
libopenssl,
|
||||
libp11kit,
|
||||
userspace],
|
||||
install_rpath : pkglibdir,
|
||||
install : true,
|
||||
install_dir : libexecdir)
|
||||
|
||||
executable(
|
||||
'systemd-cryptsetup-generator',
|
||||
'src/cryptsetup/cryptsetup-generator.c',
|
||||
include_directories : includes,
|
||||
link_with : [libshared],
|
||||
dependencies : userspace,
|
||||
install_rpath : pkglibdir,
|
||||
install : true,
|
||||
install_dir : systemgeneratordir)
|
||||
|
||||
executable(
|
||||
'systemd-veritysetup',
|
||||
'src/veritysetup/veritysetup.c',
|
||||
include_directories : includes,
|
||||
link_with : [libshared],
|
||||
dependencies : [libcryptsetup,
|
||||
userspace],
|
||||
install_rpath : pkglibdir,
|
||||
install : true,
|
||||
install_dir : libexecdir)
|
||||
|
||||
executable(
|
||||
'systemd-veritysetup-generator',
|
||||
'src/veritysetup/veritysetup-generator.c',
|
||||
include_directories : includes,
|
||||
link_with : [libshared],
|
||||
dependencies : [userspace],
|
||||
install_rpath : pkglibdir,
|
||||
install : true,
|
||||
install_dir : systemgeneratordir)
|
||||
|
||||
public_programs += executable(
|
||||
'systemd-cryptenroll',
|
||||
systemd_cryptenroll_sources,
|
||||
include_directories : includes,
|
||||
link_with : [libshared],
|
||||
dependencies : [libcryptsetup,
|
||||
libdl,
|
||||
libopenssl,
|
||||
libp11kit,
|
||||
userspace],
|
||||
install_rpath : pkglibdir,
|
||||
install : true)
|
||||
|
||||
executable(
|
||||
'systemd-integritysetup',
|
||||
['src/integritysetup/integritysetup.c', 'src/integritysetup/integrity-util.c'],
|
||||
include_directories : includes,
|
||||
link_with : [libshared],
|
||||
dependencies : [libcryptsetup,
|
||||
userspace],
|
||||
install_rpath : pkglibdir,
|
||||
install : true,
|
||||
install_dir : libexecdir)
|
||||
|
||||
executable(
|
||||
'systemd-integritysetup-generator',
|
||||
['src/integritysetup/integritysetup-generator.c', 'src/integritysetup/integrity-util.c'],
|
||||
include_directories : includes,
|
||||
link_with : [libshared],
|
||||
dependencies : userspace,
|
||||
install_rpath : pkglibdir,
|
||||
install : true,
|
||||
install_dir : systemgeneratordir)
|
||||
endif
|
||||
|
||||
if conf.get('HAVE_SYSV_COMPAT') == 1
|
||||
exe = executable(
|
||||
'systemd-sysv-generator',
|
||||
|
|
|
@ -19,3 +19,18 @@ endif
|
|||
if conf.get('HAVE_TPM2') == 1
|
||||
systemd_cryptenroll_sources += files('cryptenroll-tpm2.c')
|
||||
endif
|
||||
|
||||
executables += [
|
||||
executable_template + {
|
||||
'name' : 'systemd-cryptenroll',
|
||||
'public' : true,
|
||||
'conditions' : ['HAVE_LIBCRYPTSETUP'],
|
||||
'sources' : systemd_cryptenroll_sources,
|
||||
'dependencies' : [
|
||||
libcryptsetup,
|
||||
libdl,
|
||||
libopenssl,
|
||||
libp11kit,
|
||||
],
|
||||
},
|
||||
]
|
||||
|
|
|
@ -14,3 +14,21 @@ endif
|
|||
if conf.get('HAVE_TPM2') == 1
|
||||
systemd_cryptsetup_sources += files('cryptsetup-tpm2.c')
|
||||
endif
|
||||
|
||||
executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-cryptsetup',
|
||||
'conditions' : ['HAVE_LIBCRYPTSETUP'],
|
||||
'sources' : systemd_cryptsetup_sources,
|
||||
'dependencies' : [
|
||||
libcryptsetup,
|
||||
libopenssl,
|
||||
libp11kit,
|
||||
],
|
||||
},
|
||||
generator_template + {
|
||||
'name' : 'systemd-cryptsetup-generator',
|
||||
'conditions' : ['HAVE_LIBCRYPTSETUP'],
|
||||
'sources' : files('cryptsetup-generator.c'),
|
||||
},
|
||||
]
|
||||
|
|
21
src/integritysetup/meson.build
Normal file
21
src/integritysetup/meson.build
Normal file
|
@ -0,0 +1,21 @@
|
|||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-integritysetup',
|
||||
'conditions' : ['HAVE_LIBCRYPTSETUP'],
|
||||
'sources' : files(
|
||||
'integrity-util.c',
|
||||
'integritysetup.c',
|
||||
),
|
||||
'dependencies' : libcryptsetup,
|
||||
},
|
||||
generator_template + {
|
||||
'name' : 'systemd-integritysetup-generator',
|
||||
'conditions' : ['HAVE_LIBCRYPTSETUP'],
|
||||
'sources' : files(
|
||||
'integrity-util.c',
|
||||
'integritysetup-generator.c',
|
||||
),
|
||||
},
|
||||
]
|
15
src/veritysetup/meson.build
Normal file
15
src/veritysetup/meson.build
Normal file
|
@ -0,0 +1,15 @@
|
|||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
executables += [
|
||||
libexec_template + {
|
||||
'name' : 'systemd-veritysetup',
|
||||
'conditions' : ['HAVE_LIBCRYPTSETUP'],
|
||||
'sources' : files('veritysetup.c'),
|
||||
'dependencies' : libcryptsetup,
|
||||
},
|
||||
generator_template + {
|
||||
'name' : 'systemd-veritysetup-generator',
|
||||
'conditions' : ['HAVE_LIBCRYPTSETUP'],
|
||||
'sources' : files('veritysetup-generator.c'),
|
||||
},
|
||||
]
|
Loading…
Reference in New Issue
Block a user