Update build.sh

This commit is contained in:
Daniel Stankewitz 2021-02-22 09:52:30 +01:00 committed by GitHub
parent 011ff20b96
commit 5b0edc6888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ function build_svt {
cd $SRC/svt-av1/Build cd $SRC/svt-av1/Build
cmake .. -G"Visual Studio 15 2017" -A x64 -DCMAKE_INSTALL_PREFIX=$BUILD -DCMAKE_CONFIGURATION_TYPES=$MSBUILD_CONFIG cmake .. -G"Visual Studio 15 2017" -A x64 -DCMAKE_INSTALL_PREFIX=$BUILD -DCMAKE_CONFIGURATION_TYPES=$MSBUILD_CONFIG
MSBuild.exe /maxcpucount:$NUMBER_OF_PROCESSORS /property:Configuration=$MSBUILD_CONFIG /property:ConfigurationType=StaticLibrary /property:TargetExt=.lib Source/Lib/Encoder/SvtAv1Enc.vcxproj MSBuild.exe /maxcpucount:$NUMBER_OF_PROCESSORS /property:Configuration=$MSBUILD_CONFIG /property:ConfigurationType=StaticLibrary /property:TargetExt=.lib Source/Lib/Encoder/SvtAv1Enc.vcxproj
sed -i 's/C:/\/c/g' SvtAv1Enc.pc #sed -i 's/C:/\/c/g' SvtAv1Enc.pc
cp -r ../Source/API $BUILD/include/svt-av1 ; cp ../Bin/$MSBUILD_CONFIG/SvtAv1Enc.lib $BUILD/lib/ ; cp SvtAv1Enc.pc $BUILD/lib/pkgconfig/ 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 add_comp libsvtav1
# #
@ -250,20 +250,20 @@ SRC=`realpath src`
#git clone -b release/4.3 git://source.ffmpeg.org/ffmpeg.git $SRC/ffmpeg #git clone -b release/4.3 git://source.ffmpeg.org/ffmpeg.git $SRC/ffmpeg
git clone git://source.ffmpeg.org/ffmpeg.git $SRC/ffmpeg git clone git://source.ffmpeg.org/ffmpeg.git $SRC/ffmpeg
#build_nvenc build_nvenc
#build_amf build_amf
#build_mfx build_mfx
build_svt #build_svt
#build_ogg build_ogg
#build_vorbis build_vorbis
#build_snappy build_snappy
#build_libvpx build_libvpx
#build_libfdkaac build_libfdkaac
#build_lame build_lame
#build_zimg build_zimg
#build_x264 build_x264
#build_opus build_opus
#build_x265 build_x265
#build_aom #build_aom
#build_libass #build_libass
@ -280,7 +280,7 @@ for file in *.a; do
done done
# clean up # clean up
#rm -rf $BUILD/lib/pkgconfig $BUILD/lib/fdk-aac.lib $BUILD/lib/*.la rm -rf $BUILD/lib/pkgconfig $BUILD/lib/fdk-aac.lib $BUILD/lib/*.la
# Create archives # Create archives
cd $BUILD cd $BUILD