mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-24 05:33:30 +00:00

This allows us to disable it automatically on architectures that aren't supported and OSes that aren't supported. Link: https://bugs.launchpad.net/ubuntu/+source/fwupd/+bug/1987067
56 lines
1.1 KiB
Meson
56 lines
1.1 KiB
Meson
if hsi and (host_cpu == 'x86' or host_cpu == 'x86_64')
|
|
cargs = ['-DG_LOG_DOMAIN="FuPluginAcpiDmar"']
|
|
|
|
shared_module('fu_plugin_acpi_dmar',
|
|
fu_hash,
|
|
sources: [
|
|
'fu-plugin-acpi-dmar.c',
|
|
'fu-acpi-dmar.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')
|
|
env = environment()
|
|
env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
|
env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
|
e = executable(
|
|
'acpi-dmar-self-test',
|
|
fu_hash,
|
|
sources: [
|
|
'fu-self-test.c',
|
|
'fu-acpi-dmar.c',
|
|
],
|
|
include_directories: [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
dependencies: [
|
|
plugin_deps,
|
|
],
|
|
link_with: [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
install: true,
|
|
install_dir: installed_test_bindir,
|
|
)
|
|
test('acpi-dmar-self-test', e, env: env) # added to installed-tests
|
|
endif
|
|
endif
|