mirror of
https://git.proxmox.com/git/fwupd
synced 2026-03-28 14:58:22 +00:00
Interestingly, this increases the `fwupd` binary size by ~30kb but reduces the installed size of /usr/share/fwupd/quirks.d by ~330kb.
33 lines
675 B
Meson
33 lines
675 B
Meson
if gudev.found() and gusb.found()
|
|
cargs = ['-DG_LOG_DOMAIN="FuPluginNordicHid"']
|
|
|
|
plugin_quirks += join_paths(meson.current_source_dir(), 'nordic-hid.quirk')
|
|
|
|
shared_module('fu_plugin_nordic_hid',
|
|
fu_hash,
|
|
sources: [
|
|
'fu-plugin-nordic-hid.c',
|
|
'fu-nordic-hid-cfg-channel.c',
|
|
'fu-nordic-hid-firmware.c',
|
|
'fu-nordic-hid-firmware-b0.c',
|
|
'fu-nordic-hid-firmware-mcuboot.c',
|
|
'fu-nordic-hid-archive.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
|