12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #!/bin/bash
- SCRIPT_REPO="https://github.com/FFmpeg/nv-codec-headers.git"
- SCRIPT_COMMIT="9934f17316b66ce6de12f3b82203a298bc9351d8"
- SCRIPT_REPO2="https://github.com/FFmpeg/nv-codec-headers.git"
- SCRIPT_COMMIT2="22441b505d9d9afc1e3002290820909846c24bdc"
- SCRIPT_BRANCH2="sdk/12.0"
- SCRIPT_REPO3="https://github.com/FFmpeg/nv-codec-headers.git"
- SCRIPT_COMMIT3="75f032b24263c2b684b9921755cafc1c08e41b9d"
- SCRIPT_BRANCH3="sdk/12.1"
- ffbuild_enabled() {
- [[ $TARGET == winarm64 ]] && return -1
- return 0
- }
- ffbuild_dockerdl() {
- default_dl ffnvcodec
- echo "git-mini-clone \"$SCRIPT_REPO2\" \"$SCRIPT_COMMIT2\" ffnvcodec2"
- echo "git-mini-clone \"$SCRIPT_REPO3\" \"$SCRIPT_COMMIT3\" ffnvcodec3"
- }
- ffbuild_dockerbuild() {
- if [[ $ADDINS_STR == *4.4* || $ADDINS_STR == *5.0* || $ADDINS_STR == *5.1* || $ADDINS_STR == *6.0* || $ADDINS_STR == *6.1* ]]; then
- cd ffnvcodec2
- elif [[ $ADDINS_STR == *7.0* ]]; then
- cd ffnvcodec3
- else
- cd ffnvcodec
- fi
- make PREFIX="$FFBUILD_PREFIX" install
- }
- ffbuild_configure() {
- echo --enable-ffnvcodec --enable-cuda-llvm
- }
- ffbuild_unconfigure() {
- echo --disable-ffnvcodec --disable-cuda-llvm
- }
- ffbuild_cflags() {
- return 0
- }
- ffbuild_ldflags() {
- return 0
- }
|