mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
Bug 5084 - [patch] add support for Debian cross compiling, by q3urt.undead@gmail.com
This commit is contained in:
parent
5cad803e58
commit
59e9bb9ed3
2 changed files with 42 additions and 12 deletions
|
@ -1,13 +1,28 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ !$CC ]
|
CMD_PREFIX="i586-mingw32msvc i686-w64-mingw32";
|
||||||
then
|
|
||||||
export CC=i586-mingw32msvc-gcc
|
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
|
fi
|
||||||
|
|
||||||
if [ !$WINDRES ]
|
if [ "X$WINDRES" = "X" ]; then
|
||||||
then
|
for check in $CMD_PREFIX; do
|
||||||
export WINDRES=i586-mingw32msvc-windres
|
full_check="${check}-windres"
|
||||||
|
if [ ! $(which "$full_check") = "" ]; then
|
||||||
|
export WINDRES="$full_check"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "X$WINDRES" = "X" -o "X$CC" = "X" ]; then
|
||||||
|
echo "Error: Must define or find WINDRES and CC"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PLATFORM=mingw32
|
export PLATFORM=mingw32
|
||||||
|
|
|
@ -1,13 +1,28 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ !$CC ]
|
CMD_PREFIX="amd64-mingw32msvc x86_64-w64-mingw32";
|
||||||
then
|
|
||||||
export CC=amd64-mingw32msvc-gcc
|
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
|
fi
|
||||||
|
|
||||||
if [ !$WINDRES ]
|
if [ "X$WINDRES" = "X" ]; then
|
||||||
then
|
for check in $CMD_PREFIX; do
|
||||||
export WINDRES=amd64-mingw32msvc-windres
|
full_check="${check}-windres"
|
||||||
|
if [ ! $(which "$full_check") = "" ]; then
|
||||||
|
export WINDRES="$full_check"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "X$WINDRES" = "X" -o "X$CC" = "X" ]; then
|
||||||
|
echo "Error: Must define or find WINDRES and CC"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PLATFORM=mingw32
|
export PLATFORM=mingw32
|
||||||
|
|
Loading…
Reference in a new issue