mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-22 09:12:32 +00:00
84 lines
1.5 KiB
Meson
84 lines
1.5 KiB
Meson
cargs = ['-DG_LOG_DOMAIN="FuPluginOptionrom"']
|
|
|
|
install_data(['optionrom.quirk'],
|
|
install_dir: join_paths(datadir, 'fwupd', 'quirks.d')
|
|
)
|
|
|
|
shared_module('fu_plugin_optionrom',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-plugin-optionrom.c',
|
|
'fu-optionrom-device.c',
|
|
'fu-rom.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,
|
|
],
|
|
)
|
|
|
|
optionrom_tool = executable(
|
|
'fu-rom-tool',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-rom-tool.c',
|
|
'fu-rom.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
libjsonglib,
|
|
],
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
c_args : cargs,
|
|
)
|
|
|
|
if get_option('tests')
|
|
testdatadirs = environment()
|
|
testdatadirs.set('G_TEST_SRCDIR', meson.current_source_dir())
|
|
testdatadirs.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
|
e = executable(
|
|
'optionrom-self-test',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-self-test.c',
|
|
'fu-rom.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
],
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
c_args : cargs,
|
|
install : true,
|
|
install_dir : installed_test_bindir,
|
|
)
|
|
test('optionrom-self-test', e, env : testdatadirs) # added to installed-tests
|
|
subdir('fuzzing')
|
|
endif
|