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
|
||||
elif [ "$MODE" == "release" ]; then
|
||||
MSBUILD_CONFIG=Release
|
||||
elif [ "$MODE" == "clean" ]; then
|
||||
rm -rf src build
|
||||
exit
|
||||
else
|
||||
echo "Please supply build mode [debug|release|clean]!"
|
||||
echo "Please supply build mode [debug|release]!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -62,12 +59,14 @@ function compile_x265 {
|
||||
|
||||
# Install nv-codec-headers
|
||||
function compile_ffnvcodec {
|
||||
echo "Copying NVENC headers ..."
|
||||
cd $SRC/ffnvcodec
|
||||
make PREFIX=$BUILD install
|
||||
}
|
||||
|
||||
# Install amf
|
||||
function compile_amf {
|
||||
function compile_amf {
|
||||
echo "Copying AMF headers ..."
|
||||
cp -a $SRC/amf/amf/public/include $BUILD/include/AMF
|
||||
}
|
||||
|
||||
@ -118,15 +117,6 @@ function apply_patches {
|
||||
cd -
|
||||
}
|
||||
|
||||
# Clean build
|
||||
function clean {
|
||||
rm -rf $BUILD
|
||||
mkdir $BUILD
|
||||
mkdir $BUILD/include/
|
||||
mkdir $BUILD/lib
|
||||
mkdir $BUILD/lib/pkgconfig
|
||||
}
|
||||
|
||||
apply_patches
|
||||
compile_ffnvcodec
|
||||
compile_amf
|
||||
|
Loading…
x
Reference in New Issue
Block a user