diff options
author | Janne Grunau <janne-vlc@jannau.net> | 2021-01-20 23:12:11 +0300 |
---|---|---|
committer | Janne Grunau <janne-vlc@jannau.net> | 2021-01-20 23:15:40 +0300 |
commit | dd32acea9dbc801ac3bfea94ad7cef29e0596ac9 (patch) | |
tree | 9f8c8e3a8097997681047dd8295bcb8aeedd7427 /tests | |
parent | 11cb2efa84281cbdb5c6f388b662a12c1b57fc1a (diff) |
build: unbreak '-Denable_tools=false' build and add CI
oss-fuzz uses '-Denable_tools=false'.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/meson.build | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/tests/meson.build b/tests/meson.build index 34e13be..32925e5 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -125,23 +125,25 @@ endforeach # fuzzing binaries subdir('libfuzzer') -# seek stress test binary -seek_stress_sources = files('seek_stress.c') -seek_stress = executable('seek_stress', - seek_stress_sources, rev_target, - objects: [ - dav1d.extract_objects('dav1d_cli_parse.c'), - dav1d_input_objs.extract_objects('input/input.c', 'input/ivf.c'), - ], - include_directories: [dav1d_inc_dirs, include_directories('../tools')], - link_with: libdav1d, - dependencies: [ - thread_dependency, - rt_dependency, - getopt_dependency, - libm_dependency, - ], -) +# seek stress test binary, depends on dav1d cli tool +if get_option('enable_tools') + seek_stress_sources = files('seek_stress.c') + seek_stress = executable('seek_stress', + seek_stress_sources, rev_target, + objects: [ + dav1d.extract_objects('dav1d_cli_parse.c'), + dav1d_input_objs.extract_objects('input/input.c', 'input/ivf.c'), + ], + include_directories: [dav1d_inc_dirs, include_directories('../tools')], + link_with: libdav1d, + dependencies: [ + thread_dependency, + rt_dependency, + getopt_dependency, + libm_dependency, + ], + ) +endif # Include dav1d test data repository with additional tests if get_option('testdata_tests') |