fwupd/plugins/nitrokey/meson.build
Mario Limonciello ec0496b47a Make libfwupdplugin an internal library instead
This drops the requirement on us being so strict on a particular ABI version,
and also more strongly discourages out of tree plugin development.

We should still strive to keep API stable, and as such keep a symbol map still.

Use rpath instead for the static plugins, and set the plugin install directory
to just fwupd-$ABI$ as we're storing more than just plugins here now.
2022-09-28 10:04:12 +01:00

57 lines
1.1 KiB
Meson

if get_option('plugin_nitrokey').disable_auto_if(host_machine.system() != 'linux').allowed()
cargs = ['-DG_LOG_DOMAIN="FuPluginNitrokey"']
plugin_quirks += files('nitrokey.quirk')
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_rpath: plugin_dir,
install_dir: installed_test_bindir,
)
test('nitrokey-self-test', e) # added to installed-tests
endif
endif