mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-03 13:41:12 +00:00

tristate features will automatically disable if dependencies marked as required are missing. Packagers can manually override using `auto_features`. Link: https://mesonbuild.com/Build-options.html#features
40 lines
799 B
Meson
40 lines
799 B
Meson
if get_option('plugin_intel_spi')
|
|
|
|
if not lzma.found() or \
|
|
host_machine.system() != 'linux' or \
|
|
(host_cpu != 'x86' and host_cpu != 'x86_64')
|
|
error('unsupported configuration for intel_spi')
|
|
endif
|
|
cargs = ['-DG_LOG_DOMAIN="FuPluginIntelSpi"']
|
|
|
|
install_data(['intel-spi.quirk'],
|
|
install_dir: join_paths(datadir, 'fwupd', 'quirks.d')
|
|
)
|
|
|
|
shared_module('fu_plugin_intel_spi',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-ifd-device.c',
|
|
'fu-intel-spi-common.c',
|
|
'fu-intel-spi-device.c',
|
|
'fu-pci-device.c',
|
|
'fu-plugin-intel-spi.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
install : true,
|
|
install_dir: plugin_dir,
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
c_args : cargs,
|
|
dependencies : [
|
|
plugin_deps,
|
|
],
|
|
)
|
|
endif
|