mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-28 16:03:16 +00:00

Devices may want to support more than one protocol, and for some devices (e.g. Unifying peripherals stuck in bootloader mode) you might not even be able to query for the correct protocol anyway.
56 lines
1.0 KiB
Meson
56 lines
1.0 KiB
Meson
cargs = ['-DG_LOG_DOMAIN="FuPluginNitrokey"']
|
|
|
|
install_data(['nitrokey.quirk'],
|
|
install_dir: join_paths(datadir, 'fwupd', 'quirks.d')
|
|
)
|
|
|
|
shared_module('fu_plugin_nitrokey',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-nitrokey-device.c',
|
|
'fu-nitrokey-common.c',
|
|
'fu-plugin-nitrokey.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
install : true,
|
|
install_dir: plugin_dir,
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
c_args : cargs,
|
|
dependencies : [
|
|
plugin_deps,
|
|
],
|
|
)
|
|
|
|
if get_option('tests')
|
|
e = executable(
|
|
'nitrokey-self-test',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-nitrokey-common.c',
|
|
'fu-self-test.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
valgrind,
|
|
],
|
|
link_with : [
|
|
fwupdplugin,
|
|
],
|
|
install : true,
|
|
install_dir : installed_test_bindir,
|
|
)
|
|
test('nitrokey-self-test', e) # added to installed-tests
|
|
endif
|