fwupd/plugins/wacom-usb/meson.build
Jason Gerecke 21959e2527 wacom_usb: Introduce bluetooth-id6 module
Wacom is beginning to integrate a new Bluetooth chipset in their
devices. This chipset uses a somewhat different flash protocol
and requires the creation of a new fwupd module. Chipsets using
this new protocol are identified in the firmware descriptor with
ID 0x06, leading to our choice of module name: "bluetooth-id6".

The new chipset is first appearing in a minor update to the Wacom
Intuos (CTL-4100WL/CTL-6100WL) line. These devices do not support
the firmware descriptor interface, requiring us to statically assign
it as a module in the legacy codepath if any Bluetooth support is
found. This clutters the output of the `get-devices` command but the
update CAB files ensure the correct module is used depending on PID.
2021-10-26 18:15:23 +01:00

71 lines
1.5 KiB
Meson

if get_option('gusb')
cargs = ['-DG_LOG_DOMAIN="FuPluginWacomUsb"']
install_data(['wacom-usb.quirk'],
install_dir: join_paths(datadir, 'fwupd', 'quirks.d')
)
shared_module('fu_plugin_wacom_usb',
fu_hash,
sources : [
'fu-wac-common.c',
'fu-wac-android-device.c',
'fu-wac-device.c',
'fu-wac-firmware.c', # fuzzing
'fu-wac-module.c',
'fu-wac-module-bluetooth.c',
'fu-wac-module-bluetooth-id6.c',
'fu-wac-module-touch.c',
'fu-plugin-wacom-usb.c',
],
include_directories : [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
install : true,
install_dir: plugin_dir,
c_args : cargs,
dependencies : [
plugin_deps,
],
link_with : [
fwupd,
fwupdplugin,
],
)
if get_option('tests')
install_data(['tests/wacom-usb.builder.xml'],
install_dir: join_paths(installed_test_datadir, 'tests'))
env = environment()
env.set('G_TEST_SRCDIR', meson.current_source_dir())
env.set('G_TEST_BUILDDIR', meson.current_build_dir())
e = executable(
'wacom-usb-self-test',
fu_hash,
sources : [
'fu-self-test.c',
'fu-wac-common.c',
'fu-wac-firmware.c',
],
include_directories : [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
dependencies : [
plugin_deps,
],
link_with : [
fwupd,
fwupdplugin,
],
c_args : cargs,
install : true,
install_dir : installed_test_bindir,
)
test('wacom-usb-self-test', e, env : env) # added to installed-tests
endif
endif