Skip to content

Commit ccf462a

Browse files
committed
STATIC_LINK_CRT=on
1 parent 29e273e commit ccf462a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,16 @@ if [ "$BUILD_LICENSE" == "gpl" ]; then
4343
if [[ "$BUILD_ARCH" =~ arm ]]; then
4444
X264_ARGS="--disable-asm"
4545
fi
46+
4647
INSTALL_TARGET=install-lib-${BUILD_TYPE} ./build-make-dep.sh x264 --enable-${BUILD_TYPE} $X264_ARGS
4748
FF_ARGS="$FF_ARGS --enable-libx264"
4849

50+
if [ "$BUILD_TYPE" == "static" ]; then
51+
X265_ARGS="-DSTATIC_LINK_CRT=on"
52+
fi
53+
4954
git -C x265_git fetch --tags
50-
./build-cmake-dep.sh x265_git/source -DENABLE_SHARED=on -DENABLE_CLI=off
55+
./build-cmake-dep.sh x265_git/source -DENABLE_SHARED=on -DENABLE_CLI=off $X265_ARGS
5156
FF_ARGS="$FF_ARGS --enable-libx265"
5257
fi
5358

0 commit comments

Comments
 (0)