mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-28 03:07:23 +00:00

This makes a lot more sense; we can parse a firmware and export the same XML we would use in a .builder.xml file. This allows us to two two things: * Check we can round trip from XML -> binary -> XML * Using a .builder.xml file we can check ->write() is endian safe
70 lines
1.4 KiB
Meson
70 lines
1.4 KiB
Meson
if get_option('plugin_synaptics_rmi')
|
|
if not get_option('gudev')
|
|
error('gudev is required for plugin_synaptics_rmi')
|
|
endif
|
|
cargs = ['-DG_LOG_DOMAIN="FuPluginSynapticsRmi"']
|
|
|
|
install_data(['synaptics-rmi.quirk'],
|
|
install_dir: join_paths(datadir, 'fwupd', 'quirks.d')
|
|
)
|
|
|
|
shared_module('fu_plugin_synaptics_rmi',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-plugin-synaptics-rmi.c',
|
|
'fu-synaptics-rmi-common.c', # fuzzing
|
|
'fu-synaptics-rmi-device.c',
|
|
'fu-synaptics-rmi-hid-device.c',
|
|
'fu-synaptics-rmi-ps2-device.c',
|
|
'fu-synaptics-rmi-v5-device.c',
|
|
'fu-synaptics-rmi-v6-device.c',
|
|
'fu-synaptics-rmi-v7-device.c',
|
|
'fu-synaptics-rmi-firmware.c', # fuzzing
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
install : true,
|
|
install_dir: plugin_dir,
|
|
c_args : cargs,
|
|
dependencies : [
|
|
plugin_deps,
|
|
gnutls,
|
|
],
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
)
|
|
endif
|
|
|
|
if get_option('tests')
|
|
e = executable(
|
|
'synaptics-rmi-self-test',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-self-test.c',
|
|
'fu-synaptics-rmi-common.c',
|
|
'fu-synaptics-rmi-firmware.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
gnutls,
|
|
],
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
install : true,
|
|
install_dir : installed_test_bindir,
|
|
)
|
|
test('synaptics-rmi-self-test', e)
|
|
endif
|