Update build.sh

This commit is contained in:
Daniel Stankewitz 2021-05-26 08:56:13 +02:00 committed by GitHub
parent ccacc1c830
commit 861854a1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,12 +77,13 @@ function build_svt {
# #
# AV1 (patch needed for FFmpeg 4.3) # AV1 (patch needed for FFmpeg 4.3)
git clone --depth 1 https://github.com/AOMediaCodec/SVT-AV1 $SRC/svt-av1 git clone --depth 1 https://github.com/AOMediaCodec/SVT-AV1 $SRC/svt-av1
cd $SRC/svt-av1/Build cd $SRC/svt-av1/Build/windows
cmake .. -G"Visual Studio 15 2017" -A x64 -DCMAKE_INSTALL_PREFIX=$BUILD -DCMAKE_CONFIGURATION_TYPES=$MSBUILD_CONFIG ./build.bat 2017 $MODE static
MSBuild.exe /maxcpucount:$NUMBER_OF_PROCESSORS /property:Configuration=$MSBUILD_CONFIG /property:ConfigurationType=StaticLibrary /p:EB_DLL /property:TargetExt=.lib Source/Lib/Encoder/SvtAv1Enc.vcxproj # cmake .. -G"Visual Studio 15 2017" -A x64 -DCMAKE_INSTALL_PREFIX=$BUILD -DCMAKE_CONFIGURATION_TYPES=$MSBUILD_CONFIG
sed -i 's/C:/\/c/g' SvtAv1Enc.pc # MSBuild.exe /maxcpucount:$NUMBER_OF_PROCESSORS /property:Configuration=$MSBUILD_CONFIG /property:ConfigurationType=StaticLibrary /p:EB_DLL /property:TargetExt=.lib Source/Lib/Encoder/SvtAv1Enc.vcxproj
cp -r ../Source/API $BUILD/include/svt-av1 ; cp ../Bin/$MSBUILD_CONFIG/SvtAv1Enc.lib $BUILD/lib/ ; cp SvtAv1Enc.pc $BUILD/lib/pkgconfig/ # sed -i 's/C:/\/c/g' SvtAv1Enc.pc
add_comp libsvtav1 # cp -r ../Source/API $BUILD/include/svt-av1 ; cp ../Bin/$MSBUILD_CONFIG/SvtAv1Enc.lib $BUILD/lib/ ; cp SvtAv1Enc.pc $BUILD/lib/pkgconfig/
# add_comp libsvtav1
# #
# VP9 # VP9
#git clone https://github.com/OpenVisualCloud/SVT-VP9.git $SRC/svt-vp9 #git clone https://github.com/OpenVisualCloud/SVT-VP9.git $SRC/svt-vp9
@ -254,6 +255,7 @@ git clone git://source.ffmpeg.org/ffmpeg.git $SRC/ffmpeg
#build_amf #build_amf
#build_mfx #build_mfx
build_svt build_svt
exit
#build_ogg #build_ogg
#build_vorbis #build_vorbis
#build_snappy #build_snappy