fwupd/plugins/iommu/meson.build
Richard Hughes a61bb37881 Build the quirk files into the daemon as a GResource
Interestingly, this increases the `fwupd` binary size by ~30kb but
reduces the installed size of /usr/share/fwupd/quirks.d by ~330kb.
2022-06-30 18:52:24 +01:00

28 lines
507 B
Meson

if get_option('hsi') and host_machine.system() == 'linux'
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