[libheif] Add AOM as a dependency to enable AVIF fuzzing (#4414)

This commit is contained in:
Lovell Fuller 2020-09-06 16:03:39 +01:00 committed by GitHub
parent 9a13af5847
commit bafa12a241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -39,6 +39,12 @@ RUN hg clone \
http://hg.videolan.org/x265 \
x265
RUN git clone \
--depth 1 \
--branch master \
https://aomedia.googlesource.com/aom \
aom
RUN git clone \
--depth 1 \
--branch master \

View File

@ -45,6 +45,24 @@ make clean
make -j$(nproc)
make install
mkdir -p $SRC/aom/build/linux
cd $SRC/aom/build/linux
cmake -G "Unix Makefiles" \
-DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX \
-DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_INSTALL_PREFIX="$DEPS_PATH" \
-DENABLE_SHARED:bool=off -DCONFIG_PIC=1 \
-DENABLE_EXAMPLES=0 -DENABLE_DOCS=0 -DENABLE_TESTS=0 \
-DCONFIG_SIZE_LIMIT=1 \
-DDECODE_HEIGHT_LIMIT=12288 -DDECODE_WIDTH_LIMIT=12288 \
-DDO_RANGE_CHECK_CLAMP=1 \
-DAOM_MAX_ALLOCABLE_MEMORY=536870912 \
-DAOM_TARGET_CPU=generic \
../../
make clean
make -j$(nproc)
make install
# Remove shared libraries to avoid accidental linking against them.
rm -f $DEPS_PATH/lib/*.so
rm -f $DEPS_PATH/lib/*.so.*