Skip to content
Snippets Groups Projects
Commit 672b9181 authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

make test dependencies optional

parent e76a8a58
No related branches found
No related tags found
1 merge request!11decompression/compression for non-imagette data
# add checkpatch syntax-check target # add checkpatch syntax-check target
checkpatch = find_program('checkpatch.pl', 'checkpatch', required : false) checkpatch = find_program('checkpatch.pl', 'checkpatch', required : false)
if checkpatch.found()
checkpatch_args = [ checkpatch_args = [
'--no-tree', '-f', '--no-tree', '-f',
'--show-types', '--show-types',
...@@ -8,9 +9,11 @@ checkpatch_args = [ ...@@ -8,9 +9,11 @@ checkpatch_args = [
] ]
run_target('syntax-check', run_target('syntax-check',
command : [checkpatch, checkpatch_args, main, cmplib_sources]) command : [checkpatch, checkpatch_args, main, cmplib_sources])
endif
# add cppcheck inspector target # add cppcheck inspector target
cppcheck = find_program('cppcheck', required : false) cppcheck = find_program('cppcheck', required : false)
if cppcheck.found()
cppcheck_args = [ cppcheck_args = [
main, cmplib_sources, main, cmplib_sources,
'--clang', '--clang',
...@@ -25,9 +28,12 @@ cppcheck_args = [ ...@@ -25,9 +28,12 @@ cppcheck_args = [
run_target('inspector', run_target('inspector',
command : [cppcheck, cppcheck_args] command : [cppcheck, cppcheck_args]
) )
endif
cunit_dep = dependency('cunit')
subdir('cmp_tool') subdir('cmp_tool')
cunit_dep = dependency('cunit')
if cunit_dep.found()
subdir('cmp_icu') subdir('cmp_icu')
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment