mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-26 19:40:24 +00:00
Add Scripts/linux-to-win-cross-configure.sh.
This commit is contained in:
parent
2104987247
commit
a1b8c7e3dc
22
Scripts/linux-to-win-cross-configure.sh
Executable file
22
Scripts/linux-to-win-cross-configure.sh
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
w32)
|
||||||
|
compiler_name=i686-w64-mingw32
|
||||||
|
;;
|
||||||
|
w64)
|
||||||
|
compiler_name=x86_64-w64-mingw32
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "$0 (w32|w64) <other args>"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
shift
|
||||||
|
|
||||||
|
build_cpu=$(dpkg-architecture -qDEB_BUILD_GNU_CPU)
|
||||||
|
build_host=$build_cpu-linux
|
||||||
|
|
||||||
|
./configure --host=$compiler_name --target=$compiler_name --build=$build_host \
|
||||||
|
--program-prefix='' --disable-sqlite --disable-static $@
|
Loading…
Reference in New Issue
Block a user