mirror of
https://git.proxmox.com/git/fwupd
synced 2026-03-28 11:59:14 +00:00
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.
63 lines
1.2 KiB
Meson
63 lines
1.2 KiB
Meson
if gudev.found()
|
|
cargs = ['-DG_LOG_DOMAIN="FuPluginAta"']
|
|
|
|
plugin_quirks += files('ata.quirk')
|
|
|
|
shared_module('fu_plugin_ata',
|
|
fu_hash,
|
|
sources: [
|
|
'fu-plugin-ata.c',
|
|
'fu-ata-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,
|
|
],
|
|
)
|
|
|
|
if get_option('tests')
|
|
env = environment()
|
|
env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
|
env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
|
env.set('FWUPD_DATADIR_QUIRKS', meson.current_source_dir())
|
|
e = executable(
|
|
'ata-self-test',
|
|
fu_hash,
|
|
sources: [
|
|
'fu-self-test.c',
|
|
'fu-ata-device.c',
|
|
],
|
|
include_directories: [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
dependencies: [
|
|
plugin_deps,
|
|
],
|
|
link_with: [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
install: true,
|
|
install_rpath: plugin_dir,
|
|
install_dir: installed_test_bindir,
|
|
)
|
|
test('ata-self-test', e, env: env) # added to installed-tests
|
|
endif
|
|
endif
|