mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 09:46:25 +00:00

Unfortunately you can't detect the meson option: ``` ../data/pki/meson.build:4:4: ERROR: Having a colon in option name is forbidden, projects are not allowed to directly access options of other subprojects. ``` So hardcode in top level meson.build that Windows doesn't take GPG.
37 lines
963 B
Meson
37 lines
963 B
Meson
# only install files that are going to be used
|
|
if libjcat.type_name() != 'internal' and libjcat.version().version_compare('>= 0.1.9')
|
|
supported_gpg = libjcat.get_variable(pkgconfig : 'supported_gpg') == '1'
|
|
supported_pkcs7 = libjcat.get_variable(pkgconfig : 'supported_pkcs7') == '1'
|
|
else
|
|
supported_gpg = host_machine.system() != 'windows'
|
|
supported_pkcs7 = true
|
|
endif
|
|
|
|
if supported_gpg
|
|
install_data([
|
|
'GPG-KEY-Linux-Foundation-Firmware',
|
|
'GPG-KEY-Linux-Vendor-Firmware-Service',
|
|
],
|
|
install_dir : join_paths(sysconfdir, 'pki', 'fwupd')
|
|
)
|
|
install_data([
|
|
'GPG-KEY-Linux-Foundation-Metadata',
|
|
'GPG-KEY-Linux-Vendor-Firmware-Service',
|
|
],
|
|
install_dir : join_paths(sysconfdir, 'pki', 'fwupd-metadata')
|
|
)
|
|
endif
|
|
|
|
if supported_pkcs7
|
|
install_data([
|
|
'LVFS-CA.pem',
|
|
],
|
|
install_dir : join_paths(sysconfdir, 'pki', 'fwupd')
|
|
)
|
|
install_data([
|
|
'LVFS-CA.pem',
|
|
],
|
|
install_dir : join_paths(sysconfdir, 'pki', 'fwupd-metadata')
|
|
)
|
|
endif
|