fwupd/plugins/uefi-dbx/meson.build
Richard Hughes b9640a28ec uefi-dbx: Add a plugin that analyses the UEFI dbx variable
This will be used for future functionality.
2020-05-07 16:59:36 +01:00

81 lines
1.4 KiB
Meson

cargs = ['-DG_LOG_DOMAIN="FuPluginUefiDbx"']
shared_module('fu_plugin_uefi_dbx',
fu_hash,
sources : [
'fu-plugin-uefi-dbx.c',
'fu-uefi-dbx-common.c',
'fu-uefi-dbx-file.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(
'uefi-dbx-self-test',
fu_hash,
sources : [
'fu-self-test.c',
'fu-uefi-dbx-common.c',
'fu-uefi-dbx-file.c',
],
include_directories : [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
dependencies : [
plugin_deps,
],
link_with : [
fwupd,
fwupdplugin,
],
)
test('uefi-dbx-self-test', e)
endif
uefi_dbx_fuzzer = executable(
'uefi-dbx-fuzzer',
sources : [
'fu-fuzzer.c',
'fu-uefi-dbx-file.c',
],
include_directories : [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
dependencies : [
plugin_deps,
],
link_with : [
fwupd,
fwupdplugin,
],
)
run_target('fuzz-efidbx',
command: [
join_paths(meson.source_root(), 'contrib/afl-fuzz.py'),
'-i', join_paths(meson.current_source_dir(), 'fuzzing'),
'-o', join_paths(meson.current_build_dir(), 'findings'),
'--command', uefi_dbx_fuzzer,
fwupdtool,
],
)