From 96da216d552379f1f8f54df95bde37530ccdfef7 Mon Sep 17 00:00:00 2001 From: paring Date: Wed, 3 May 2023 18:43:41 +0900 Subject: [PATCH] feat: win32 build support --- build-win32.sh | 3 +++ scripts/build-ffmpeg.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 build-win32.sh diff --git a/build-win32.sh b/build-win32.sh new file mode 100644 index 0000000..a2cb2ac --- /dev/null +++ b/build-win32.sh @@ -0,0 +1,3 @@ +TOOLCHAIN=i686-w64-mingw32 + +FFMPEG_OS=win32 FFMPEG_MSBUILD=1 OPENH264_ARCH=i686 OPENH264_OS=msvc CC=cl CXX=cl AR=lib bash build.sh --arch i686 diff --git a/scripts/build-ffmpeg.sh b/scripts/build-ffmpeg.sh index 398a05d..aac2e02 100644 --- a/scripts/build-ffmpeg.sh +++ b/scripts/build-ffmpeg.sh @@ -1,6 +1,6 @@ export ffmpegPath=$workDir/ffmpeg -git clone https://github.com/FFmpeg/FFmpeg $ffmpegPath --depth 1 +git clone https://github.com/FFmpeg/FFmpeg -b release/6.0 $ffmpegPath --depth 1 cd $ffmpegPath