libvips/fuzz/meson.build
Corentin Noël 02901436d4
Add meson build system (#2637)
Allows to use the Meson build system to build the project.
2022-02-08 15:19:36 +00:00

41 lines
799 B
Meson

standaloneengine = static_library('standaloneengine',
'StandaloneFuzzTargetMain.c',
dependencies: libvips_deps,
)
fuzz_progs = [
'jpegsave_file_fuzzer',
'jpegsave_buffer_fuzzer',
'pngsave_buffer_fuzzer',
'webpsave_buffer_fuzzer',
'gifsave_buffer_fuzzer',
'sharpen_fuzzer',
'thumbnail_fuzzer',
'smartcrop_fuzzer',
'mosaic_fuzzer'
]
fuzz_execs = []
foreach fuzz_prog : fuzz_progs
fuzz_execs += executable(fuzz_prog,
fuzz_prog + '.cc',
dependencies: libvips_dep,
link_with: standaloneengine
)
endforeach
test_fuzz = configure_file(
input: 'test_fuzz.sh',
output: 'test_fuzz.sh',
copy: true,
)
test(
'fuzz',
test_fuzz,
workdir: meson.current_build_dir(),
depends: [
fuzz_execs,
],
)