[vlc-commits] test: build vlc-demux-* when libfuzzer is used
Thomas Guillem
git at videolan.org
Sun Nov 12 14:42:18 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sun Nov 12 14:39:19 2017 +0100| [eacf9abdd3ebf886b3aaa2dec298f2002737298f] | committer: Thomas Guillem
test: build vlc-demux-* when libfuzzer is used
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eacf9abdd3ebf886b3aaa2dec298f2002737298f
---
configure.ac | 1 +
test/Makefile.am | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/configure.ac b/configure.ac
index 268ad4386f..153e7450a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -796,6 +796,7 @@ AS_VAR_IF(with_libfuzzer, no, [], [
enable_static=yes
enable_vlc=no
])
+AM_CONDITIONAL(HAVE_LIBFUZZER, [test "${with_libfuzzer}" != "no"])
AS_IF([test "${enable_shared}" = "no"], [
have_dynamic_objects=no
diff --git a/test/Makefile.am b/test/Makefile.am
index f0be86e5ac..38392fbdbf 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -252,3 +252,8 @@ vlc_demux_dec_libfuzzer_SOURCES = vlc-demux-libfuzzer.c
vlc_demux_dec_libfuzzer_CPPFLAGS = $(vlc_static_CPPFLAGS)
vlc_demux_dec_libfuzzer_LDADD = libvlc_demux_dec_run.la
EXTRA_PROGRAMS += vlc-demux-dec-libfuzzer
+
+if HAVE_LIBFUZZER
+bin_PROGRAMS = vlc-demux-run vlc-demux-dec-run \
+ vlc-demux-libfuzzer vlc-demux-dec-libfuzzer
+endif
More information about the vlc-commits
mailing list