ci/fuzzing: update for mono repo

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1253>
This commit is contained in:
Matthew Waters 2021-10-26 19:11:19 +11:00 committed by GStreamer Marge Bot
parent 9b3f040d3c
commit fdb16cddb1

View file

@ -62,7 +62,7 @@ cd ..
# with clang and the various sanitizers. # with clang and the various sanitizers.
# For now we only build core and base. Add other modules when/if needed # For now we only build core and base. Add other modules when/if needed
for i in gstreamer gst-plugins-base; for i in gstreamer;
do do
mkdir -p $i mkdir -p $i
cd $i cd $i
@ -74,8 +74,30 @@ do
-Ddoc=disabled \ -Ddoc=disabled \
-Dexamples=disabled \ -Dexamples=disabled \
-Dintrospection=disabled \ -Dintrospection=disabled \
-Dtracer_hooks=false \ -Dgood=disabled \
-Dregistry=false _builddir $SRC/$i -Dugly=disabled \
-Dbad=disabled \
-Dlibav=disabled \
-Dges=disabled \
-Domx=disabled \
-Dvaapi=disabled \
-Dsharp=disabled \
-Drs=disabled \
-Dpython=disabled \
-Dlibnice=disabled \
-Ddevtools=disabled \
-Drtsp_server=disabled \
-Dgst-examples=disabled \
-Dqt5=disabled \
-Dorc=disabled \
-Dgtk_doc=disabled \
-Dgstreamer:tracer_hooks=false \
-Dgstreamer:registry=false \
-Dgst-plugins-base:cairo=disabled \
-Dgst-plugins-base:opus=disabled \
-Dgst-plugins-base:pango=disabled \
_builddir \
$SRC/$i
ninja -C _builddir ninja -C _builddir
ninja -C _builddir install ninja -C _builddir install
cd .. cd ..
@ -120,7 +142,7 @@ TARGET_DEPS=" gstreamer-pbutils-1.0 \
gstreamer-riff-1.0 \ gstreamer-riff-1.0 \
gstreamer-tag-1.0 \ gstreamer-tag-1.0 \
zlib ogg vorbis vorbisenc \ zlib ogg vorbis vorbisenc \
theoraenc theoradec theora" theoraenc theoradec theora cairo"
PLUGINS="$PLUGIN_DIR/libgstcoreelements.a \ PLUGINS="$PLUGIN_DIR/libgstcoreelements.a \
$PLUGIN_DIR/libgsttypefindfunctions.a \ $PLUGIN_DIR/libgsttypefindfunctions.a \
@ -136,11 +158,11 @@ echo
BUILD_CFLAGS="$CFLAGS `pkg-config --static --cflags $COMMON_DEPS $TARGET_DEPS`" BUILD_CFLAGS="$CFLAGS `pkg-config --static --cflags $COMMON_DEPS $TARGET_DEPS`"
BUILD_LDFLAGS="-Wl,-static `pkg-config --static --libs $COMMON_DEPS $TARGET_DEPS`" BUILD_LDFLAGS="-Wl,-static `pkg-config --static --libs $COMMON_DEPS $TARGET_DEPS`"
$CC $CFLAGS $BUILD_CFLAGS -c $SRC/gst-ci/fuzzing/gst-discoverer.c -o $SRC/gst-ci/fuzzing/gst-discoverer.o $CC $CFLAGS $BUILD_CFLAGS -c $SRC/gstreamer/ci/fuzzing/gst-discoverer.c -o $SRC/gstreamer/ci/fuzzing/gst-discoverer.o
$CXX $CXXFLAGS \ $CXX $CXXFLAGS \
-o $OUT/gst-discoverer \ -o $OUT/gst-discoverer \
$PREDEPS_LDFLAGS \ $PREDEPS_LDFLAGS \
$SRC/gst-ci/fuzzing/gst-discoverer.o \ $SRC/gstreamer/ci/fuzzing/gst-discoverer.o \
$PLUGINS \ $PLUGINS \
$BUILD_LDFLAGS \ $BUILD_LDFLAGS \
$LIB_FUZZING_ENGINE \ $LIB_FUZZING_ENGINE \
@ -166,11 +188,11 @@ echo
BUILD_CFLAGS="$CFLAGS `pkg-config --static --cflags $COMMON_DEPS $TARGET_DEPS`" BUILD_CFLAGS="$CFLAGS `pkg-config --static --cflags $COMMON_DEPS $TARGET_DEPS`"
BUILD_LDFLAGS="-Wl,-static `pkg-config --static --libs $COMMON_DEPS $TARGET_DEPS`" BUILD_LDFLAGS="-Wl,-static `pkg-config --static --libs $COMMON_DEPS $TARGET_DEPS`"
$CC $CFLAGS $BUILD_CFLAGS -c $SRC/gst-ci/fuzzing/typefind.c -o $SRC/gst-ci/fuzzing/typefind.o $CC $CFLAGS $BUILD_CFLAGS -c $SRC/gstreamer/ci/fuzzing/typefind.c -o $SRC/gstreamer/ci/fuzzing/typefind.o
$CXX $CXXFLAGS \ $CXX $CXXFLAGS \
-o $OUT/typefind \ -o $OUT/typefind \
$PREDEPS_LDFLAGS \ $PREDEPS_LDFLAGS \
$SRC/gst-ci/fuzzing/typefind.o \ $SRC/gstreamer/ci/fuzzing/typefind.o \
$PLUGINS \ $PLUGINS \
$BUILD_LDFLAGS \ $BUILD_LDFLAGS \
$LIB_FUZZING_ENGINE \ $LIB_FUZZING_ENGINE \