Update build_tc.sh

This commit is contained in:
Daniel Stankewitz 2018-06-29 17:09:22 +02:00 committed by GitHub
parent 3bcda300bb
commit 8d9289616a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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