mirror of
https://github.com/UberGames/RPG-X2.git
synced 2025-02-12 22:56:04 +00:00
Added cross compile shellscripts (untested)
This commit is contained in:
parent
5732476c65
commit
54f7a556bc
2 changed files with 34 additions and 0 deletions
17
cross-make-mingw.sh
Normal file
17
cross-make-mingw.sh
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
CMD_PREFIX="i586-mingw32msvc i686-w64-mingw32";
|
||||||
|
|
||||||
|
if [ "X$CC" = "X" ]; then
|
||||||
|
for check in $CMD_PREFIX; do
|
||||||
|
full_check="${check}-gcc"
|
||||||
|
if [ ! $(which "$full_check") = "" ]; then
|
||||||
|
export CC="$full_check"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
export PLATFORM=mingw32
|
||||||
|
export ARCH=x86
|
||||||
|
|
||||||
|
exec make $*
|
17
cross-make-mingw64.sh
Normal file
17
cross-make-mingw64.sh
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
CMD_PREFIX="amd64-mingw32msvc x86_64-w64-mingw32";
|
||||||
|
|
||||||
|
if [ "X$CC" = "X" ]; then
|
||||||
|
for check in $CMD_PREFIX; do
|
||||||
|
full_check="${check}-gcc"
|
||||||
|
if [ ! $(which "$full_check") = "" ]; then
|
||||||
|
export CC="$full_check"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
export PLATFORM=mingw32
|
||||||
|
export ARCH=x64
|
||||||
|
|
||||||
|
exec make $*
|
Loading…
Reference in a new issue