Update build_tc.sh
This commit is contained in:
parent
ed62183c76
commit
831a27f759
10
build_tc.sh
10
build_tc.sh
@ -18,9 +18,11 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "$BUILD" ]; then
|
# Create build dirs
|
||||||
mkdir $BUILD $BUILD/include $BUILD/lib $BUILD/lib/pkgconfig
|
[ ! -d "$BUILD" ] && mkdir $BUILD
|
||||||
fi
|
[ ! -d "$BUILD/include" ] && mkdir $BUILD/include
|
||||||
|
[ ! -d "$BUILD/lib" ] && mkdir $BUILD/lib
|
||||||
|
[ ! -d "$BUILD/lib/pkgconfig" ] && mkdir $BUILD/lib/pkgconfig
|
||||||
|
|
||||||
function compile {
|
function compile {
|
||||||
cd $SRC/$1
|
cd $SRC/$1
|
||||||
@ -35,7 +37,7 @@ function compile {
|
|||||||
if [ "$STEP" == "svt-av1" ]; then
|
if [ "$STEP" == "svt-av1" ]; then
|
||||||
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="Debug;Release"
|
cmake .. -G"Visual Studio 15 2017" -A x64 -DCMAKE_INSTALL_PREFIX=$BUILD -DCMAKE_CONFIGURATION_TYPES="Debug;Release"
|
||||||
MSBuild.exe /maxcpucount:$CPU_CORES /property:Configuration="$MSBUILD_CONFIG" /property:ConfigurationType="StaticLibrary" Source/Lib/Encoder/SvtAv1Enc.vcxproj
|
MSBuild.exe /maxcpucount:$CPU_CORES /property:Configuration="$MSBUILD_CONFIG" /property:ConfigurationType="StaticLibrary" /property:TargetExt=".lib" Source/Lib/Encoder/SvtAv1Enc.vcxproj
|
||||||
cp ../Bin/Release/$MSBUILD_CONFIG/SvtAv1Enc.lib $BUILD/lib/
|
cp ../Bin/Release/$MSBUILD_CONFIG/SvtAv1Enc.lib $BUILD/lib/
|
||||||
cp SvtAv1Enc.pc $BUILD/lib/pkgconfig/
|
cp SvtAv1Enc.pc $BUILD/lib/pkgconfig/
|
||||||
cd $SRC/ffmpeg
|
cd $SRC/ffmpeg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user