fwupd/plugins/iommu/meson.build
Mario Limonciello 2705179117 Convert HSI into a meson tristate-feature
This allows us to disable it automatically on architectures that
aren't supported and OSes that aren't supported.

Link: https://bugs.launchpad.net/ubuntu/+source/fwupd/+bug/1987067
2022-08-22 06:03:38 -05:00

28 lines
504 B
Meson

if hsi and (host_cpu == 'x86' or host_cpu == 'x86_64')
cargs = ['-DG_LOG_DOMAIN="FuPluginIommu"']
plugin_quirks += join_paths(meson.current_source_dir(), 'iommu.quirk')
shared_module('fu_plugin_iommu',
fu_hash,
sources: [
'fu-plugin-iommu.c',
],
include_directories: [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
install: true,
install_dir: plugin_dir,
link_with: [
fwupdplugin,
fwupd,
],
c_args: cargs,
dependencies: [
plugin_deps,
],
)
endif