Update build.sh

This commit is contained in:
Daniel Stankewitz 2020-08-29 07:22:04 +02:00 committed by GitHub
parent 405fa7ef42
commit d2a2c60bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,6 +241,9 @@ BUILD=`realpath build`
SRC=`realpath src`
git clone git://source.ffmpeg.org/ffmpeg.git $SRC/ffmpeg
cd $SRC/ffmpeg
git checkout release/4.2
cd ../..
build_nvenc
build_amf
@ -259,7 +262,6 @@ build_x265
#build_aom
cd $SRC/ffmpeg
git checkout release/4.2
PKG_CONFIG_PATH=$BUILD/lib/pkgconfig:$PKG_CONFIG_PATH ./configure --toolchain=msvc --extra-cflags="$CFLAGS -I$BUILD/include" --extra-ldflags="-LIBPATH:$BUILD/lib" --prefix=$BUILD --pkg-config-flags="--static" --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --enable-w32threads --enable-gpl $COMPONENTS
sed -i 's/\x81/ue/g' config.h
make -j $NUMBER_OF_PROCESSORS