meson: Do not include headers in source lists

Meson+ninja+compiler do this for us and are better at it.

https://mesonbuild.com/FAQ.html#do-i-need-to-add-my-headers-to-the-sources-list-like-in-autotools
This commit is contained in:
Jan Janssen
2023-01-24 22:04:03 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent be55191793
commit 4a7ee0a521
33 changed files with 44 additions and 893 deletions
+3 -5
View File
@@ -5,8 +5,6 @@ cryptsetup_token_sym_path = meson.current_source_dir() / 'cryptsetup-token.sym'
lib_cryptsetup_token_common = static_library(
'cryptsetup-token-common',
'cryptsetup-token.h',
'cryptsetup-token-util.h',
'cryptsetup-token-util.c',
include_directories : includes,
link_with : libshared,
@@ -15,14 +13,14 @@ lib_cryptsetup_token_common = static_library(
cryptsetup_token_systemd_tpm2_sources = files(
'cryptsetup-token-systemd-tpm2.c',
'luks2-tpm2.c',
'luks2-tpm2.h')
)
cryptsetup_token_systemd_fido2_sources = files(
'cryptsetup-token-systemd-fido2.c',
'luks2-fido2.c',
'luks2-fido2.h')
)
cryptsetup_token_systemd_pkcs11_sources = files(
'cryptsetup-token-systemd-pkcs11.c',
'luks2-pkcs11.c',
'luks2-pkcs11.h')
)
+2 -4
View File
@@ -2,10 +2,8 @@
systemd_cryptsetup_sources = files(
'cryptsetup-keyfile.c',
'cryptsetup-keyfile.h',
'cryptsetup-pkcs11.h',
'cryptsetup-tpm2.h',
'cryptsetup.c')
'cryptsetup.c',
)
if conf.get('HAVE_P11KIT') == 1
systemd_cryptsetup_sources += files('cryptsetup-pkcs11.c')