fwupd/plugins/gpio/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

34 lines
677 B
Meson

gpio_header = cc.has_header_symbol('linux/gpio.h', 'GPIO_V2_LINE_FLAG_OUTPUT', required: get_option('plugin_gpio'))
if gpio_header and gudev.found()
cargs = ['-DG_LOG_DOMAIN="FuPluginGpio"']
plugin_quirks += join_paths(meson.current_source_dir(), 'gpio.quirk')
shared_module('fu_plugin_gpio',
fu_hash,
sources: [
'fu-plugin-gpio.c',
'fu-gpio-device.c',
],
include_directories: [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
install: true,
install_dir: plugin_dir,
c_args: [
cargs,
'-DLOCALSTATEDIR="' + localstatedir + '"',
],
link_with: [
fwupd,
fwupdplugin,
],
dependencies: [
plugin_deps,
],
)
endif