Commit 7d08748a authored by Moritz Lipp's avatar Moritz Lipp

Allow to fully disable libfiu

parent d7a996ca
......@@ -77,7 +77,7 @@ if cairo.found()
defines += '-DHAVE_CAIRO'
endif
if libfiu.found()
if get_option('enable-libfiu') and libfiu.found()
build_dependencies += libfiu
defines += '-DWITH_LIBFIU'
endif
......
......@@ -15,6 +15,12 @@ option('tests',
)
option('enable-libfiu',
type: 'boolean',
value: true,
value: false,
description: 'Enable libfiu fault injection support for testing if available.'
)
option('use-libfiu',
type: 'boolean',
value: false,
description: 'Enable libfiu fault injection support for testing if available.'
)
......@@ -17,7 +17,7 @@ if check.found()
'-D_TEST_FILE_PATH=@0@'.format(meson.current_source_dir() + '/files/empty.pdf'),
]
if libfiu.found()
if get_option('enable-libfiu') and libfiu.found()
fiu_run = find_program('fiu-run')
else
fiu_run = disabler()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment