Update build_tc.sh
This commit is contained in:
parent
3bcda300bb
commit
8d9289616a
18
build_tc.sh
18
build_tc.sh
@ -10,11 +10,8 @@ if [ "$MODE" == "debug" ]; then
|
|||||||
MSBUILD_CONFIG=Debug
|
MSBUILD_CONFIG=Debug
|
||||||
elif [ "$MODE" == "release" ]; then
|
elif [ "$MODE" == "release" ]; then
|
||||||
MSBUILD_CONFIG=Release
|
MSBUILD_CONFIG=Release
|
||||||
elif [ "$MODE" == "clean" ]; then
|
|
||||||
rm -rf src build
|
|
||||||
exit
|
|
||||||
else
|
else
|
||||||
echo "Please supply build mode [debug|release|clean]!"
|
echo "Please supply build mode [debug|release]!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -62,12 +59,14 @@ function compile_x265 {
|
|||||||
|
|
||||||
# Install nv-codec-headers
|
# Install nv-codec-headers
|
||||||
function compile_ffnvcodec {
|
function compile_ffnvcodec {
|
||||||
|
echo "Copying NVENC headers ..."
|
||||||
cd $SRC/ffnvcodec
|
cd $SRC/ffnvcodec
|
||||||
make PREFIX=$BUILD install
|
make PREFIX=$BUILD install
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install amf
|
# Install amf
|
||||||
function compile_amf {
|
function compile_amf {
|
||||||
|
echo "Copying AMF headers ..."
|
||||||
cp -a $SRC/amf/amf/public/include $BUILD/include/AMF
|
cp -a $SRC/amf/amf/public/include $BUILD/include/AMF
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,15 +117,6 @@ function apply_patches {
|
|||||||
cd -
|
cd -
|
||||||
}
|
}
|
||||||
|
|
||||||
# Clean build
|
|
||||||
function clean {
|
|
||||||
rm -rf $BUILD
|
|
||||||
mkdir $BUILD
|
|
||||||
mkdir $BUILD/include/
|
|
||||||
mkdir $BUILD/lib
|
|
||||||
mkdir $BUILD/lib/pkgconfig
|
|
||||||
}
|
|
||||||
|
|
||||||
apply_patches
|
apply_patches
|
||||||
compile_ffnvcodec
|
compile_ffnvcodec
|
||||||
compile_amf
|
compile_amf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user