fwupd/plugins/realtek-mst/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

33 lines
691 B
Meson

if get_option('plugin_realtek_mst').require(gudev.found(),
error_message: 'gudev is needed for plugin_realtek_mst').allowed()
cargs = ['-DG_LOG_DOMAIN="FuPluginRealtekMst"']
plugin_quirks += join_paths(meson.current_source_dir(), 'realtek-mst.quirk')
shared_module('fu_plugin_realtek_mst',
fu_hash,
sources: [
'fu-realtek-mst-device.c',
'fu-plugin-realtek-mst.c',
],
include_directories: [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
install: true,
install_dir: plugin_dir,
link_with: [
fwupd,
fwupdplugin,
],
c_args: [
cargs,
'-DLOCALSTATEDIR="' + localstatedir + '"',
],
dependencies: [
plugin_deps,
],
)
endif