Add libaom
This commit is contained in:
parent
53181cf479
commit
3996a1d8f2
2 changed files with 38 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
set(CMAKE_SYSTEM_NAME Windows)
|
set(CMAKE_SYSTEM_NAME Windows)
|
||||||
|
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
|
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
|
||||||
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
|
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
|
||||||
|
|
37
scripts.d/50-aom.sh
Executable file
37
scripts.d/50-aom.sh
Executable file
|
@ -0,0 +1,37 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
AOM_REPO="https://aomedia.googlesource.com/aom"
|
||||||
|
AOM_COMMIT="fb78faa4714f616ea77175495ec37d7b26158968"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerstage() {
|
||||||
|
to_df "ADD $SELF /stage.sh"
|
||||||
|
to_df "RUN run_stage"
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
git-mini-clone "$AOM_REPO" "$AOM_COMMIT" aom
|
||||||
|
cd aom
|
||||||
|
|
||||||
|
mkdir cmbuild && cd cmbuild
|
||||||
|
|
||||||
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DCONFIG_TUNE_VMAF=1 .. || return -1
|
||||||
|
make -j$(nproc) || return -1
|
||||||
|
make install || return -1
|
||||||
|
|
||||||
|
echo "Requires.private: libvmaf" >> "$FFBUILD_PREFIX/lib/pkgconfig/aom.pc"
|
||||||
|
|
||||||
|
cd ../..
|
||||||
|
rm -rf aom
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_configure() {
|
||||||
|
echo --enable-libaom
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_unconfigure() {
|
||||||
|
echo --disable-libaom
|
||||||
|
}
|
Loading…
Reference in a new issue