fwupd/plugins/pixart-rf/meson.build
Richard Hughes 52441f28a4 Allow objects to deserialize to XML
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
2021-03-15 12:07:30 +00:00

58 lines
1.0 KiB
Meson

if host_machine.system() == 'linux'
cargs = ['-DG_LOG_DOMAIN="FuPluginPixartRf"']
install_data(['pixart-rf.quirk'],
install_dir: join_paths(datadir, 'fwupd', 'quirks.d')
)
shared_module('fu_plugin_pixart_rf',
fu_hash,
sources : [
'fu-plugin-pixart-rf.c',
'fu-pxi-device.c',
'fu-pxi-firmware.c', # fuzzing
],
include_directories : [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
install : true,
install_dir: plugin_dir,
c_args : cargs,
dependencies : [
plugin_deps,
],
link_with : [
fwupd,
fwupdplugin,
],
)
endif
if get_option('tests')
e = executable(
'pxi-self-test',
fu_hash,
sources : [
'fu-self-test.c',
'fu-pxi-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('pxi-self-test', e)
endif