mirror of https://github.com/google/oss-fuzz.git
[libheif] Add AOM as a dependency to enable AVIF fuzzing (#4414)
This commit is contained in:
parent
9a13af5847
commit
bafa12a241
|
@ -39,6 +39,12 @@ RUN hg clone \
|
||||||
http://hg.videolan.org/x265 \
|
http://hg.videolan.org/x265 \
|
||||||
x265
|
x265
|
||||||
|
|
||||||
|
RUN git clone \
|
||||||
|
--depth 1 \
|
||||||
|
--branch master \
|
||||||
|
https://aomedia.googlesource.com/aom \
|
||||||
|
aom
|
||||||
|
|
||||||
RUN git clone \
|
RUN git clone \
|
||||||
--depth 1 \
|
--depth 1 \
|
||||||
--branch master \
|
--branch master \
|
||||||
|
|
|
@ -45,6 +45,24 @@ make clean
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
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.
|
# Remove shared libraries to avoid accidental linking against them.
|
||||||
rm -f $DEPS_PATH/lib/*.so
|
rm -f $DEPS_PATH/lib/*.so
|
||||||
rm -f $DEPS_PATH/lib/*.so.*
|
rm -f $DEPS_PATH/lib/*.so.*
|
||||||
|
|
Loading…
Reference in New Issue