mirror of
https://git.proxmox.com/git/fwupd
synced 2026-03-28 18:41:48 +00:00
Saving the quirks in the GResource section worked well, but it made the build system very complicated and also meant the .data section was duplicated in both `fwupd` and `fwupdtool` -- negating a lot of the hard-fought savings. Simplify this feature so that we just `cat` all the quirk files together, then gzip them into a single file. This means that at startup fwupd only needs to check the mtime of one file, and weirdly it's actually faster to load a smaller compressed file from disk that it is to load multiple uncompressed files.
36 lines
710 B
Meson
36 lines
710 B
Meson
if gusb.found()
|
|
cargs = ['-DG_LOG_DOMAIN="FuPluginSteelSeries"']
|
|
|
|
plugin_quirks += files('steelseries.quirk')
|
|
|
|
shared_module('fu_plugin_steelseries',
|
|
fu_hash,
|
|
sources: [
|
|
'fu-plugin-steelseries.c',
|
|
'fu-steelseries-device.c',
|
|
'fu-steelseries-firmware.c',
|
|
'fu-steelseries-fizz-hid.c',
|
|
'fu-steelseries-fizz-tunnel.c',
|
|
'fu-steelseries-fizz.c',
|
|
'fu-steelseries-mouse.c',
|
|
'fu-steelseries-gamepad.c',
|
|
'fu-steelseries-sonic.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
|