fwupd/plugins/test/meson.build
Richard Hughes c4b7f42e43 Only compress one version of the builtin-quirks
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.
2022-09-27 12:44:04 +01:00

79 lines
1.2 KiB
Meson

cargs = ['-DG_LOG_DOMAIN="FuPluginTest"']
install_dummy = false
if get_option('plugin_dummy')
install_dummy = true
endif
if bluez.allowed()
plugin_quirks += files('test-ble.quirk')
endif
shared_module('fu_plugin_test',
fu_hash,
sources: [
'fu-plugin-test.c',
],
include_directories: [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
install: install_dummy,
install_dir: plugin_dir,
link_with: [
fwupd,
fwupdplugin,
],
c_args: cargs,
dependencies: [
plugin_deps,
],
)
shared_module('fu_plugin_invalid',
fu_hash,
sources: [
'fu-plugin-invalid.c',
],
include_directories: [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
install: install_dummy,
install_dir: plugin_dir,
link_with: [
fwupdplugin,
],
c_args: cargs,
dependencies: [
plugin_deps,
],
)
if bluez.allowed()
shared_module('fu_plugin_test_ble',
fu_hash,
sources: [
'fu-plugin-test-ble.c',
'fu-test-ble-device.c',
],
include_directories: [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
install: install_dummy,
install_dir: plugin_dir,
link_with: [
fwupd,
fwupdplugin,
],
c_args: cargs,
dependencies: [
plugin_deps,
],
)
endif