mirror of
https://git.proxmox.com/git/fwupd
synced 2026-03-28 22:23:07 +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.
49 lines
1.2 KiB
Meson
49 lines
1.2 KiB
Meson
libmm_glib = dependency('mm-glib', version: '>= 1.10.0', required: get_option('plugin_modem_manager'))
|
|
libqmi_glib = dependency('qmi-glib', version: '>= 1.23.1', required: get_option('plugin_modem_manager'))
|
|
libmbim_glib = dependency('mbim-glib', version: '>= 1.22.0', required: get_option('plugin_modem_manager'))
|
|
|
|
if libmm_glib.found() and \
|
|
libqmi_glib.found() and \
|
|
libmbim_glib.found() and \
|
|
get_option('plugin_modem_manager').require(gudev.found(),
|
|
error_message: 'gudev is needed for plugin_modem_manager').allowed()
|
|
|
|
cargs = ['-DG_LOG_DOMAIN="FuPluginMm"']
|
|
cargs +=['-DMM_REQUIRED_VERSION="1.10.0"']
|
|
|
|
plugin_quirks += files('modem-manager.quirk')
|
|
|
|
shared_module('fu_plugin_modem_manager',
|
|
fu_hash,
|
|
sources: [
|
|
'fu-plugin-modem-manager.c',
|
|
'fu-mm-device.c',
|
|
'fu-qmi-pdc-updater.c',
|
|
'fu-mbim-qdu-updater.c',
|
|
'fu-firehose-updater.c',
|
|
'fu-sahara-loader.c',
|
|
'fu-mm-utils.c'
|
|
],
|
|
include_directories: [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
install: true,
|
|
install_dir: plugin_dir,
|
|
c_args: [
|
|
cargs,
|
|
],
|
|
link_with: [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
dependencies: [
|
|
plugin_deps,
|
|
libmm_glib,
|
|
libqmi_glib,
|
|
libmbim_glib,
|
|
],
|
|
)
|
|
endif
|