mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-26 00:47:32 +00:00

This allows us to override the location we load data files from, which allows us to do more kinds of installed tests in the future. Also, move the global data/tests content into the place that it is used as it was getting impossible to manage.
97 lines
1.8 KiB
Meson
97 lines
1.8 KiB
Meson
if get_option('plugin_tpm')
|
|
cargs = ['-DG_LOG_DOMAIN="FuPluginTpmEventlog"']
|
|
|
|
shared_module('fu_plugin_tpm_eventlog',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-plugin-tpm-eventlog.c',
|
|
'fu-tpm-eventlog-common.c',
|
|
'fu-tpm-eventlog-device.c',
|
|
'fu-tpm-eventlog-parser.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
install : true,
|
|
install_dir: plugin_dir,
|
|
link_with : [
|
|
fwupdplugin,
|
|
fwupd,
|
|
],
|
|
c_args : cargs,
|
|
dependencies : [
|
|
plugin_deps,
|
|
tpm2tss,
|
|
],
|
|
)
|
|
|
|
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(
|
|
'tpm-eventlog-self-test',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-self-test.c',
|
|
'fu-tpm-eventlog-common.c',
|
|
'fu-tpm-eventlog-device.c',
|
|
'fu-tpm-eventlog-parser.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
link_with : [
|
|
fwupdplugin,
|
|
fwupd,
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
tpm2tss,
|
|
],
|
|
c_args : cargs
|
|
)
|
|
test('tpm-eventlog-self-test', e, env : env) # added to installed-tests
|
|
endif
|
|
|
|
fwupdtpmevlog = executable(
|
|
'fwupdtpmevlog',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-tpm-eventlog.c',
|
|
'fu-tpm-eventlog-common.c',
|
|
'fu-tpm-eventlog-parser.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
tpm2tss,
|
|
],
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
install : true,
|
|
install_dir : bindir
|
|
)
|
|
|
|
if get_option('man')
|
|
configure_file(
|
|
input : 'fwupdtpmevlog.1',
|
|
output : 'fwupdtpmevlog.1',
|
|
configuration : conf,
|
|
install: true,
|
|
install_dir: join_paths(mandir, 'man1'),
|
|
)
|
|
endif
|
|
|
|
endif
|