mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-22 16:34:42 +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
65 lines
1.1 KiB
Meson
65 lines
1.1 KiB
Meson
if get_option('gudev')
|
|
cargs = ['-DG_LOG_DOMAIN="FuPluginElantp"']
|
|
|
|
install_data([
|
|
'elantp.quirk',
|
|
],
|
|
install_dir: join_paths(datadir, 'fwupd', 'quirks.d')
|
|
)
|
|
|
|
shared_module('fu_plugin_elantp',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-plugin-elantp.c',
|
|
'fu-elantp-common.c',
|
|
'fu-elantp-firmware.c', # fuzzing
|
|
'fu-elantp-hid-device.c',
|
|
'fu-elantp-i2c-device.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
install : true,
|
|
install_dir: plugin_dir,
|
|
c_args : [
|
|
cargs,
|
|
'-DLOCALSTATEDIR="' + localstatedir + '"',
|
|
],
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
],
|
|
)
|
|
endif
|
|
|
|
if get_option('tests')
|
|
e = executable(
|
|
'elantp-self-test',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-self-test.c',
|
|
'fu-elantp-firmware.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
],
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
install : true,
|
|
install_dir : installed_test_bindir,
|
|
)
|
|
test('elantp-self-test', e)
|
|
endif
|