Skip to content

Commit 2b829db

Browse files
committed
quick_build: Add arm64 CPU architecture in build type.
1 parent 93d7fff commit 2b829db

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

quick_build/quick_cross_compile_ffmpeg_fdk_aac_and_x264_using_packaged_mingw64.sh

+20-9
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,27 @@ if [ -z "$cpu_count" ]; then
3232
fi
3333
fi
3434

35-
type=win64 # win32 or win64
35+
type=win64 # win32 or win64 or winarm64
36+
37+
case $type in
38+
win32)
39+
arch=x86
40+
host=i686-w64-mingw32
41+
;;
42+
win64)
43+
arch=x86_64
44+
host=x86_64-w64-mingw32
45+
;;
46+
winarm64)
47+
arch=aarch64
48+
host=aarch64-w64-mingw32
49+
;;
50+
*)
51+
echo "The provided CPU architecture is not supported."
52+
exit 1
53+
;;
54+
esac
3655

37-
host=x86_64-w64-mingw32
38-
if [[ $type == win32 ]]; then
39-
host=i686-w64-mingw32
40-
fi
4156
prefix=$(pwd)/sandbox_quick/$type/quick_install/install_root
4257
export PKG_CONFIG_PATH="$prefix/lib/pkgconfig" # let ffmpeg find our dependencies [currently not working :| ]
4358

@@ -67,10 +82,6 @@ fi
6782
cd $ffmpeg_dir
6883
# not ready for this since we don't reconfigure after changes: # git pull
6984
if [[ ! -f ffbuild/config.mak ]]; then
70-
arch=x86_64
71-
if [[ $type == win32 ]]; then
72-
arch=x86
73-
fi
7485
# shouldn't really ever need these?
7586
./configure --enable-gpl --enable-libx264 --enable-nonfree \
7687
--enable-debug=3 --disable-optimizations \

0 commit comments

Comments
 (0)