Lines Matching +full:cxx +full:- +full:test +full:- +full:suite
1 #!/bin/bash -eux
8 # http://www.apache.org/licenses/LICENSE-2.0
18 # Disable UBSan vptr since several targets built with -fno-rtti.
19 export CFLAGS="$CFLAGS -fno-sanitize=vptr"
20 export CXXFLAGS="$CXXFLAGS -fno-sanitize=vptr"
24 mkdir -p $FFMPEG_DEPS_PATH
30 bzip2 -f -d alsa-lib-*
31 tar xf alsa-lib-*
32 rm alsa-lib-*.tar
33 cd alsa-lib-*
34 ./configure --prefix="$FFMPEG_DEPS_PATH" --enable-static --disable-shared
36 make -j$(nproc) all
39 cd $SRC/fdk-aac
40 autoreconf -fiv
41 CXXFLAGS="$CXXFLAGS -fno-sanitize=shift-base,signed-integer-overflow" \
42 ./configure --prefix="$FFMPEG_DEPS_PATH" --disable-shared
44 make -j$(nproc) all
49 ./configure --prefix="$FFMPEG_DEPS_PATH" --enable-static
51 make -j$(nproc)
56 ./configure --prefix="$FFMPEG_DEPS_PATH" --enable-static --disable-shared
58 make -j$(nproc) all
63 ./configure --prefix="$FFMPEG_DEPS_PATH" --enable-static --disable-shared
65 make -j$(nproc) all
69 LDFLAGS="$CXXFLAGS" ./configure --prefix="$FFMPEG_DEPS_PATH" \
70 --disable-examples --disable-unit-tests \
71 --size-limit=12288x12288 \
72 --extra-cflags="-DVPX_MAX_ALLOCABLE_MEMORY=1073741824"
74 make -j$(nproc) all
79 ./configure --prefix="$FFMPEG_DEPS_PATH" --enable-static --disable-crc
81 make -j$(nproc)
86 ./configure --prefix="$FFMPEG_DEPS_PATH" --enable-static
88 make -j$(nproc) all
93 CFLAGS="$CFLAGS -fPIC" LDFLAGS="-L$FFMPEG_DEPS_PATH/lib/" \
94 CPPFLAGS="$CXXFLAGS -I$FFMPEG_DEPS_PATH/include/" \
97 ./configure --with-ogg="$FFMPEG_DEPS_PATH" --prefix="$FFMPEG_DEPS_PATH" \
98 --enable-static --disable-examples
100 make -j$(nproc)
105 ./configure --prefix="$FFMPEG_DEPS_PATH" --enable-static
107 make -j$(nproc)
117 --cc=$CC --cxx=$CXX --ld="$CXX $CXXFLAGS -std=c++11" \
118 --extra-cflags="-I$FFMPEG_DEPS_PATH/include" \
119 --extra-ldflags="-L$FFMPEG_DEPS_PATH/lib" \
120 --prefix="$FFMPEG_DEPS_PATH" \
121 --pkg-config-flags="--static" \
122 --enable-ossfuzz \
123 --libfuzzer=$LIB_FUZZING_ENGINE \
124 --optflags=-O1 \
125 --enable-gpl \
126 --enable-libass \
127 --enable-libfdk-aac \
128 --enable-libfreetype \
129 --enable-libopus \
130 --enable-libtheora \
131 --enable-libvorbis \
132 --enable-libvpx \
133 --enable-nonfree \
134 --disable-muxers \
135 --disable-protocols \
136 --disable-demuxer=rtp,rtsp,sdp \
137 --disable-devices \
138 --disable-shared
140 make -j$(nproc) install
142 # Download test samples, will be used as seed corpus.
145 # for all targets. As of 2017-05-04 now the combined size of corpora
147 export TEST_SAMPLES_PATH=$SRC/ffmpeg/fate-suite/
148 make fate-rsync SAMPLES=$TEST_SAMPLES_PATH
159 if [ -n "${OSS_FUZZ_CI-}" ]; then
166 echo -en "[libfuzzer]\nmax_len = 1000000\n" > $OUT/${fuzzer_name}.options
173 if [ -n "${OSS_FUZZ_CI-}" ]; then
180 echo -en "[libfuzzer]\nmax_len = 1000000\n" > $OUT/${fuzzer_name}.options
187 echo -en "[libfuzzer]\nmax_len = 1000000\n" > $OUT/${fuzzer_name}.options
192 rm `find fate-suite -name '*.s16'`
193 rm `find fate-suite -name '*.dec'`
194 rm `find fate-suite -name '*.pcm'`
196 zip -r $OUT/${fuzzer_name}_seed_corpus.zip fate-suite
197 zip -r $OUT/ffmpeg_AV_CODEC_ID_HEVC_fuzzer_seed_corpus.zip fate-suite/hevc fate-suite/hevc-conforma…
206 --cc=$CC --cxx=$CXX --ld="$CXX $CXXFLAGS -std=c++11" \
207 --extra-cflags="-I$FFMPEG_DEPS_PATH/include" \
208 --extra-ldflags="-L$FFMPEG_DEPS_PATH/lib" \
209 --prefix="$FFMPEG_DEPS_PATH" \
210 --pkg-config-flags="--static" \
211 --enable-ossfuzz \
212 --libfuzzer=$LIB_FUZZING_ENGINE \
213 --optflags=-O1 \
214 --enable-gpl \
215 --disable-muxers \
216 --disable-protocols \
217 --disable-devices \
218 --disable-shared \
219 --disable-encoders \
220 --disable-filters \
221 --disable-muxers \
222 --disable-parsers \
223 --disable-decoders \
224 --disable-hwaccels \
225 --disable-bsfs \
226 --disable-vaapi \
227 --disable-vdpau \
228 --disable-crystalhd \
229 --disable-v4l2_m2m \
230 --disable-cuda_llvm \
231 --enable-demuxers \
232 --disable-demuxer=rtp,rtsp,sdp \
235 if [ -n "${OSS_FUZZ_CI-}" ]; then
246 # Find relevant corpus in test samples and archive them for every fuzzer.