agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | # Build the plugin for the project |
agsantos | 82678f3 | 2020-12-09 15:03:24 -0500 | [diff] [blame] | 3 | set -e |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 4 | export OSTYPE |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 5 | ARCH=$(uname -m) |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 6 | EXTRAPATH='' |
| 7 | # Flags: |
| 8 | |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 9 | # -p: number of processors to use. |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 10 | # -c: Runtime plugin cpu/gpu setting. |
| 11 | # -t: target platform. |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 12 | # -d: debug program. |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 13 | |
| 14 | |
| 15 | if [ -z "${DAEMON}" ]; then |
| 16 | DAEMON="./../../daemon" |
| 17 | echo "DAEMON not provided, building with ${DAEMON}" |
| 18 | fi |
| 19 | |
| 20 | PLUGIN_NAME="AudioFilter" |
| 21 | JPL_FILE_NAME="${PLUGIN_NAME}.jpl" |
| 22 | SO_FILE_NAME="lib${PLUGIN_NAME}.so" |
| 23 | DAEMON_SRC="${DAEMON}/src" |
| 24 | CONTRIB_PATH="${DAEMON}/contrib" |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 25 | PLUGINS_LIB="./../lib" |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 26 | LIBS_DIR="./../contrib/Libs" |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 27 | PLATFORM=$(uname) |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 28 | |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 29 | if [ "${PLATFORM}" = "Linux" ]; then |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 30 | PLATFORM="linux-gnu" |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 31 | CONTRIB_PLATFORM_CURT=${ARCH} |
| 32 | echo "Building with ${PLATFORM}" |
| 33 | elif [ "${PLATFORM}" = "Darwin" ]; then |
| 34 | PLATFORM="darwin" |
| 35 | SO_FILE_NAME="lib${PLUGIN_NAME}.dylib" |
| 36 | alias nproc='sysctl -n hw.logicalcpu' |
| 37 | CONTRIB_PLATFORM_CURT=${ARCH}-apple |
| 38 | CONTRIB_PLATFORM_EXTRA=$(uname -r) |
| 39 | echo "Building with ${PLATFORM}" |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 40 | fi |
| 41 | |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 42 | while getopts t:c:p:d OPT; do |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 43 | case "$OPT" in |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 44 | d) |
| 45 | DEBUG=true |
| 46 | export __DEBUG__=true |
| 47 | ;; |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 48 | t) |
| 49 | PLATFORM="${OPTARG}" |
| 50 | ;; |
| 51 | c) |
| 52 | PROCESSOR="${OPTARG}" |
| 53 | ;; |
| 54 | p) |
| 55 | ;; |
| 56 | \?) |
| 57 | exit 1 |
| 58 | ;; |
| 59 | esac |
| 60 | done |
| 61 | |
agsantos | 7ad7a3a | 2021-01-19 12:57:54 -0500 | [diff] [blame] | 62 | cp -r ffmpeg ${CONTRIB_PATH}/src/ |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 63 | cp -r ../contrib/mp3lame ${CONTRIB_PATH}/src/ |
agsantos | 7ad7a3a | 2021-01-19 12:57:54 -0500 | [diff] [blame] | 64 | |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 65 | if [ "${PLATFORM}" = "linux-gnu" ] || [ "${PLATFORM}" = "redhat-linux" ] |
| 66 | then |
agsantos | 7ad7a3a | 2021-01-19 12:57:54 -0500 | [diff] [blame] | 67 | if [ -f "${CONTRIB_PATH}/native/.ffmpeg" ]; then |
| 68 | rm "${CONTRIB_PATH}/native/.ffmpeg" |
| 69 | fi |
| 70 | WORKPATH=$(pwd) |
| 71 | cd "${CONTRIB_PATH}/native/" |
agsantos | dd6a62a | 2021-03-29 17:13:27 -0400 | [diff] [blame] | 72 | make .ffmpeg -j$(nproc) |
agsantos | 7ad7a3a | 2021-01-19 12:57:54 -0500 | [diff] [blame] | 73 | rm .ffmpeg |
| 74 | cd ${WORKPATH} |
| 75 | |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 76 | CONTRIB_PLATFORM=${CONTRIB_PLATFORM_CURT}-${PLATFORM} |
| 77 | |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 78 | if [ ${DEBUG} ]; then |
| 79 | OUTPUT="${PLUGIN_NAME}" |
| 80 | CLANG_OPTS="-g -fsanitize=address" |
| 81 | EXTRA_DEBUG_LIBRARIES="-lyaml-cpp -lvdpau -lX11 -lva-drm -lva-x11 -lmp3lame" |
| 82 | EXTRA_DEFINES="-D__DEBUG__" |
| 83 | else |
| 84 | python3 ./../SDK/jplManipulation.py --preassemble --plugin=${PLUGIN_NAME} |
| 85 | CLANG_OPTS="-O3 -shared" |
| 86 | OUTPUT="build-local/jpl/lib/${CONTRIB_PLATFORM}/${SO_FILE_NAME}" |
| 87 | fi |
| 88 | |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 89 | # Compile |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 90 | clang++ -std=c++17 -fPIC ${CLANG_OPTS} \ |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 91 | -Wl,-Bsymbolic,-rpath,"\${ORIGIN}" \ |
| 92 | -Wall -Wextra \ |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 93 | -Wno-unused-parameter \ |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 94 | ${EXTRA_DEFINES} \ |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 95 | -I"." \ |
| 96 | -I"${DAEMON_SRC}" \ |
| 97 | -I"${CONTRIB_PATH}/${CONTRIB_PLATFORM}/include" \ |
| 98 | -I"${PLUGINS_LIB}" \ |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 99 | ./../lib/common.cpp \ |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 100 | ./../lib/frameFilter.cpp \ |
| 101 | ./../lib/frameUtils.cpp \ |
agsantos | 82678f3 | 2020-12-09 15:03:24 -0500 | [diff] [blame] | 102 | FilterMediaHandler.cpp \ |
| 103 | FilterAudioSubscriber.cpp \ |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 104 | main.cpp \ |
| 105 | -L"${CONTRIB_PATH}/${CONTRIB_PLATFORM}/lib/" \ |
| 106 | -l:libavfilter.a \ |
| 107 | -l:libswscale.a \ |
| 108 | -l:libswresample.a \ |
| 109 | -l:libavformat.a \ |
| 110 | -l:libavcodec.a \ |
| 111 | -l:libavutil.a \ |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 112 | -lvpx \ |
| 113 | -lx264 \ |
| 114 | -lspeex \ |
| 115 | -lopus \ |
| 116 | -lz \ |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 117 | -lva \ |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 118 | ${EXTRA_DEBUG_LIBRARIES} \ |
| 119 | -o "${OUTPUT}" |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 120 | |
| 121 | elif [ "${PLATFORM}" = "darwin" ] |
| 122 | then |
| 123 | if [ -f "${CONTRIB_PATH}/native/.ffmpeg" ]; then |
| 124 | rm "${CONTRIB_PATH}/native/.ffmpeg" |
| 125 | fi |
| 126 | WORKPATH=$(pwd) |
| 127 | cd "${CONTRIB_PATH}/native/" |
| 128 | make .ffmpeg -j$(nproc) |
| 129 | rm .ffmpeg |
| 130 | cd ${WORKPATH} |
| 131 | |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 132 | CONTRIB_PLATFORM=${CONTRIB_PLATFORM_CURT}-${PLATFORM} |
| 133 | |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 134 | if [ ${DEBUG} ]; then |
| 135 | OUTPUT="${PLUGIN_NAME}" |
| 136 | CLANG_OPTS="-g -fsanitize=address" |
| 137 | EXTRA_DEBUG_LIBRARIES="-lyaml-cpp -lmp3lame" |
| 138 | EXTRA_DEFINES="-D__DEBUG__" |
| 139 | else |
| 140 | python3 ./../SDK/jplManipulation.py --preassemble --plugin=${PLUGIN_NAME} |
| 141 | CLANG_OPTS="-O3 -shared" |
| 142 | OUTPUT="build-local/jpl/lib/${CONTRIB_PLATFORM}/${SO_FILE_NAME}" |
| 143 | fi |
| 144 | |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 145 | # Compile |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 146 | clang++ -std=c++17 -fPIC ${CLANG_OPTS} \ |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 147 | -Wl,-no_compact_unwind -Wl,-framework,CoreFoundation \ |
| 148 | -Wl,-framework,Security -Wl,-framework,VideoToolbox \ |
| 149 | -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo \ |
| 150 | -Wl,-rpath,"\${ORIGIN}" \ |
| 151 | -Wall -Wextra \ |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 152 | -Wno-unused-parameter \ |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 153 | ${EXTRA_DEFINES} \ |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 154 | -I"." \ |
| 155 | -I"${DAEMON_SRC}" \ |
| 156 | -I"${CONTRIB_PATH}/${CONTRIB_PLATFORM}${CONTRIB_PLATFORM_EXTRA}/include" \ |
| 157 | -I"${PLUGINS_LIB}" \ |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 158 | ./../lib/common.cpp \ |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 159 | ./../lib/frameFilter.cpp \ |
| 160 | ./../lib/frameUtils.cpp \ |
| 161 | FilterMediaHandler.cpp \ |
| 162 | FilterAudioSubscriber.cpp \ |
| 163 | main.cpp \ |
| 164 | -L"${CONTRIB_PATH}/${CONTRIB_PLATFORM}${CONTRIB_PLATFORM_EXTRA}/lib/" \ |
| 165 | -lavfilter \ |
| 166 | -lswscale \ |
| 167 | -lswresample \ |
| 168 | -lavformat \ |
| 169 | -lavcodec \ |
| 170 | -lavutil \ |
| 171 | -lvpx -lx264 -lbz2 -liconv -lz \ |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 172 | -lspeex \ |
| 173 | -lopus \ |
| 174 | ${EXTRA_DEBUG_LIBRARIES} \ |
| 175 | -o "${OUTPUT}" |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 176 | |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 177 | if [ ! ${DEBUG} ]; then |
| 178 | install_name_tool -id "@loader_path/${PLUGIN_NAME}" "${OUTPUT}" |
| 179 | else |
| 180 | install_name_tool -id "@loader_path/${SO_FILE_NAME}" "${OUTPUT}" |
| 181 | fi |
agsantos | 1bbc7cc | 2021-05-20 16:43:35 -0400 | [diff] [blame] | 182 | |
| 183 | if [ -n "${APPLE_SIGN_CERTIFICATE}" ]; then |
| 184 | codesign --force --verify --timestamp -o runtime --sign "${APPLE_SIGN_CERTIFICATE}" "build-local/jpl/lib/${CONTRIB_PLATFORM}/${SO_FILE_NAME}" |
| 185 | ditto -c -k --rsrc "build-local/jpl/lib/${CONTRIB_PLATFORM}/${SO_FILE_NAME}" "build-local/${SO_FILE_NAME}.zip" |
| 186 | LIBRARYNAME=${SO_FILE_NAME} sh ./../notarize.sh |
| 187 | ditto -x -k "build-local/${SO_FILE_NAME}.zip" "build-local/notarized" |
| 188 | cp "build-local/notarized/${SO_FILE_NAME}" "build-local/jpl/lib/${CONTRIB_PLATFORM}/${SO_FILE_NAME}" |
| 189 | fi |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 190 | |
| 191 | elif [ "${PLATFORM}" = "android" ] |
| 192 | then |
| 193 | python3 ./../SDK/jplManipulation.py --preassemble --plugin=${PLUGIN_NAME} --distribution=${PLATFORM} |
| 194 | |
| 195 | if [ -z "$ANDROID_NDK" ]; then |
| 196 | ANDROID_NDK="/home/${USER}/Android/Sdk/ndk/21.1.6352462" |
| 197 | echo "ANDROID_NDK not provided, building with ${ANDROID_NDK}" |
| 198 | fi |
| 199 | |
| 200 | #========================================================= |
| 201 | # Check if the ANDROID_ABI was provided |
| 202 | # if not, set default |
| 203 | #========================================================= |
| 204 | if [ -z "$ANDROID_ABI" ]; then |
| 205 | ANDROID_ABI="armeabi-v7a arm64-v8a x86_64" |
| 206 | echo "ANDROID_ABI not provided, building for ${ANDROID_ABI}" |
| 207 | fi |
| 208 | |
| 209 | buildlib() { |
| 210 | echo "$CURRENT_ABI" |
| 211 | |
| 212 | #========================================================= |
| 213 | # ANDROID TOOLS |
| 214 | #========================================================= |
| 215 | export HOST_TAG=linux-x86_64 |
| 216 | export TOOLCHAIN=$ANDROID_NDK/toolchains/llvm/prebuilt/$HOST_TAG |
Aline Gondim Santos | 4c3f066 | 2022-10-12 13:11:34 -0300 | [diff] [blame] | 217 | export AR=$TOOLCHAIN/bin/llvm-ar |
| 218 | export AS=$TOOLCHAIN/bin/llvm-as |
| 219 | export LD=$TOOLCHAIN/bin/ld |
| 220 | export RANLIB=$TOOLCHAIN/bin/llvm-ranlib |
| 221 | export STRIP=$TOOLCHAIN/bin/llvm-strip |
| 222 | export ANDROID_SYSROOT=$TOOLCHAIN/sysroot |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 223 | |
| 224 | if [ "$CURRENT_ABI" = armeabi-v7a ] |
| 225 | then |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 226 | export CC=$TOOLCHAIN/bin/armv7a-linux-androideabi21-clang |
| 227 | export CXX=$TOOLCHAIN/bin/armv7a-linux-androideabi21-clang++ |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 228 | |
| 229 | elif [ "$CURRENT_ABI" = arm64-v8a ] |
| 230 | then |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 231 | export CC=$TOOLCHAIN/bin/aarch64-linux-android21-clang |
| 232 | export CXX=$TOOLCHAIN/bin/aarch64-linux-android21-clang++ |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 233 | |
| 234 | elif [ "$CURRENT_ABI" = x86_64 ] |
| 235 | then |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 236 | export CC=$TOOLCHAIN/bin/x86_64-linux-android21-clang |
| 237 | export CXX=$TOOLCHAIN/bin/x86_64-linux-android21-clang++ |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 238 | |
| 239 | else |
| 240 | echo "ABI NOT OK" >&2 |
| 241 | exit 1 |
| 242 | fi |
| 243 | |
| 244 | #========================================================= |
| 245 | # CONTRIBS |
| 246 | #========================================================= |
| 247 | if [ "$CURRENT_ABI" = armeabi-v7a ] |
| 248 | then |
| 249 | CONTRIB_PLATFORM=arm-linux-androideabi |
| 250 | |
| 251 | elif [ "$CURRENT_ABI" = arm64-v8a ] |
| 252 | then |
| 253 | CONTRIB_PLATFORM=aarch64-linux-android |
| 254 | |
| 255 | elif [ "$CURRENT_ABI" = x86_64 ] |
| 256 | then |
| 257 | CONTRIB_PLATFORM=x86_64-linux-android |
| 258 | fi |
| 259 | |
| 260 | #NDK SOURCES FOR cpufeatures |
| 261 | NDK_SOURCES=${ANDROID_NDK}/sources/android |
| 262 | |
agsantos | 7ad7a3a | 2021-01-19 12:57:54 -0500 | [diff] [blame] | 263 | if [ -f "${CONTRIB_PATH}/native-${CONTRIB_PLATFORM}/.ffmpeg" ]; then |
| 264 | rm "${CONTRIB_PATH}/native-${CONTRIB_PLATFORM}/.ffmpeg" |
| 265 | fi |
| 266 | WORKPATH=$(pwd) |
| 267 | cd "${CONTRIB_PATH}/native-${CONTRIB_PLATFORM}/" |
agsantos | dd6a62a | 2021-03-29 17:13:27 -0400 | [diff] [blame] | 268 | make .ffmpeg -j$(nproc) |
agsantos | 7ad7a3a | 2021-01-19 12:57:54 -0500 | [diff] [blame] | 269 | rm .ffmpeg |
| 270 | cd ${WORKPATH} |
| 271 | |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 272 | #========================================================= |
| 273 | # Compile the plugin |
| 274 | #========================================================= |
| 275 | |
| 276 | # Create so destination folder |
Aline Gondim Santos | 4c3f066 | 2022-10-12 13:11:34 -0300 | [diff] [blame] | 277 | $CXX --std=c++17 -O3 -fPIC \ |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 278 | -Wl,-Bsymbolic,-rpath,"\${ORIGIN}" \ |
| 279 | -shared \ |
| 280 | -Wall -Wextra \ |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 281 | -Wno-unused-parameter \ |
| 282 | -I"." \ |
| 283 | -I"${DAEMON_SRC}" \ |
| 284 | -I"${CONTRIB_PATH}/${CONTRIB_PLATFORM}/include" \ |
| 285 | -I"${PLUGINS_LIB}" \ |
| 286 | ./../lib/frameFilter.cpp \ |
| 287 | ./../lib/frameUtils.cpp \ |
agsantos | 82678f3 | 2020-12-09 15:03:24 -0500 | [diff] [blame] | 288 | FilterMediaHandler.cpp \ |
| 289 | FilterAudioSubscriber.cpp \ |
agsantos | c9181b4 | 2020-11-26 12:03:04 -0500 | [diff] [blame] | 290 | main.cpp \ |
| 291 | -L"${CONTRIB_PATH}/${CONTRIB_PLATFORM}/lib/" \ |
| 292 | -lavfilter \ |
| 293 | -lswscale \ |
| 294 | -lswresample \ |
| 295 | -lavformat \ |
| 296 | -lavcodec \ |
| 297 | -lavutil \ |
| 298 | -lvpx \ |
| 299 | -lx264 \ |
| 300 | -lspeex \ |
| 301 | -lopus \ |
| 302 | -liconv \ |
| 303 | -llog -lz \ |
| 304 | --sysroot=$ANDROID_SYSROOT \ |
| 305 | -o "build-local/jpl/lib/$CURRENT_ABI/${SO_FILE_NAME}" |
| 306 | } |
| 307 | |
| 308 | # Build the so |
| 309 | for i in ${ANDROID_ABI}; do |
| 310 | CURRENT_ABI=$i |
| 311 | buildlib |
| 312 | done |
| 313 | fi |
| 314 | |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 315 | if [ ! ${DEBUG} ]; then |
| 316 | python3 ./../SDK/jplManipulation.py --assemble --plugin=${PLUGIN_NAME} --distribution=${PLATFORM} --extraPath=${EXTRAPATH} |
| 317 | fi |
agsantos | 7ad7a3a | 2021-01-19 12:57:54 -0500 | [diff] [blame] | 318 | cd ${CONTRIB_PATH}/src/ffmpeg/ |
| 319 | # ffmpeg build configuration files were changed during plugin build |
| 320 | # this git checkout will remove these changes |
| 321 | git checkout -- . |