Skip to content

Commit 9534766

Browse files
committed
test
1 parent 92518d2 commit 9534766

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

build.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ echo BUILD_TYPE=$BUILD_TYPE
2828
echo BUILD_LICENSE=$BUILD_LICENSE
2929
echo FF_ARGS=$FF_ARGS
3030

31-
git -C zlib apply ../zlib.patch
31+
git -C zlib apply ../zlib.patch || true
3232
git -C FFmpeg apply ../ffmpeg.patch || true
3333

3434
# --enable-libfribidi --enable-libass
@@ -37,7 +37,7 @@ git -C FFmpeg apply ../ffmpeg.patch || true
3737

3838
if [ "$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

Comments
 (0)