@@ -28,7 +28,7 @@ echo BUILD_TYPE=$BUILD_TYPE
2828echo BUILD_LICENSE=$BUILD_LICENSE
2929echo FF_ARGS=$FF_ARGS
3030
31- git -C zlib apply ../zlib.patch
31+ git -C zlib apply ../zlib.patch || true
3232git -C FFmpeg apply ../ffmpeg.patch || true
3333
3434# --enable-libfribidi --enable-libass
@@ -37,7 +37,7 @@ git -C FFmpeg apply ../ffmpeg.patch || true
3737
3838if [ " $BUILD_LICENSE " == " gpl" ]; then
3939
40- git -C x265_git apply ../x265_git-${BUILD_TYPE} .patch
40+ git -C x265_git apply ../x265_git-${BUILD_TYPE} .patch || true
4141 if [ " $BUILD_TYPE " == " static" ]; then
4242 X265_ARGS=" -DSTATIC_LINK_CRT=ON"
4343 ENABLE_SHARED=OFF
@@ -47,18 +47,15 @@ if [ "$BUILD_LICENSE" == "gpl" ]; then
4747 fi
4848
4949 if [ " $BUILD_ARCH " == arm ]; then
50- git -C x265_git apply ../x265_git-arm.patch
51- X265_ARGS=" $X265_ARGS -DCMAKE_SYSTEM_PROCESSOR=armv7l -DENABLE_ASSEMBLY=ON -DCROSS_COMPILE_ARM=ON"
52- elif [ " $BUILD_ARCH " == arm64 ]; then
53- X265_ARGS=" $X265_ARGS -DCMAKE_SYSTEM_PROCESSOR=arm64 -DENABLE_ASSEMBLY=ON -DCROSS_COMPILE_ARM64=ON"
50+ git -C x265_git apply ../x265_git-arm.patch || true
5451 fi
5552
5653 git -C x265_git fetch --tags
5754 ./build-cmake-dep.sh x265_git/source -DCMAKE_SYSTEM_NAME=Windows -DENABLE_SHARED=$ENABLE_SHARED -DENABLE_CLI=OFF $X265_ARGS
5855 FF_ARGS=" $FF_ARGS --enable-libx265"
5956
6057 if [ " $BUILD_TYPE " == " shared" ]; then
61- git -C x264 apply ../x264-${BUILD_TYPE} .patch
58+ git -C x264 apply ../x264-${BUILD_TYPE} .patch || true
6259 fi
6360 if [[ " $BUILD_ARCH " =~ arm ]]; then
6461 X264_ARGS=" --disable-asm"
0 commit comments