This makes each `foo_cflags` dependency define a `SYSTEMD_CFLAGS_MARKER_FOO` macro, and checks if the macro is set when headers provided by external libraries are included. With this, we can fail fast at compile time if necessary `_cflags` dependencies are omitted in meson.build. Missing dependencies found by this mechanism have been added across the tree.
21 lines
572 B
Meson
21 lines
572 B
Meson
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
if conf.get('HAVE_LIBCRYPTSETUP') != 1
|
|
subdir_done()
|
|
endif
|
|
|
|
executables += [
|
|
libexec_template + {
|
|
'name' : 'systemd-veritysetup',
|
|
'sources' : files('veritysetup.c'),
|
|
'dependencies' : [
|
|
libcryptsetup_cflags,
|
|
tpm2_cflags,
|
|
],
|
|
},
|
|
generator_template + {
|
|
'name' : 'systemd-veritysetup-generator',
|
|
'sources' : files('veritysetup-generator.c'),
|
|
},
|
|
]
|