mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-01-31 11:20:32 +00:00
Support building on cygwin with cross-make-mingw*.sh (#5405) - patch by q3urt.undead@gmail.com
This commit is contained in:
parent
a3c7003d9c
commit
8534c94e4c
2 changed files with 20 additions and 12 deletions
|
@ -1,22 +1,26 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Note: This works in Linux and cygwin
|
||||||
|
|
||||||
CMD_PREFIX="i586-mingw32msvc i686-w64-mingw32";
|
CMD_PREFIX="i586-mingw32msvc i686-w64-mingw32";
|
||||||
|
|
||||||
if [ "X$CC" = "X" ]; then
|
if [ "X$CC" = "X" ]; then
|
||||||
for check in $CMD_PREFIX; do
|
for check in $CMD_PREFIX; do
|
||||||
full_check="${check}-gcc"
|
full_check="${check}-gcc"
|
||||||
if [ ! $(which "$full_check") = "" ]; then
|
which "$full_check" > /dev/null 2>&1
|
||||||
export CC="$full_check"
|
if [ "$?" = "0" ]; then
|
||||||
fi
|
export CC="$full_check"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "X$WINDRES" = "X" ]; then
|
if [ "X$WINDRES" = "X" ]; then
|
||||||
for check in $CMD_PREFIX; do
|
for check in $CMD_PREFIX; do
|
||||||
full_check="${check}-windres"
|
full_check="${check}-windres"
|
||||||
if [ ! $(which "$full_check") = "" ]; then
|
which "$full_check" > /dev/null 2>&1
|
||||||
export WINDRES="$full_check"
|
if [ "$?" = "0" ]; then
|
||||||
fi
|
export WINDRES="$full_check"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,26 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Note: This works in Linux and cygwin
|
||||||
|
|
||||||
CMD_PREFIX="amd64-mingw32msvc x86_64-w64-mingw32";
|
CMD_PREFIX="amd64-mingw32msvc x86_64-w64-mingw32";
|
||||||
|
|
||||||
if [ "X$CC" = "X" ]; then
|
if [ "X$CC" = "X" ]; then
|
||||||
for check in $CMD_PREFIX; do
|
for check in $CMD_PREFIX; do
|
||||||
full_check="${check}-gcc"
|
full_check="${check}-gcc"
|
||||||
if [ ! $(which "$full_check") = "" ]; then
|
which "$full_check" > /dev/null 2>&1
|
||||||
export CC="$full_check"
|
if [ "$?" = "0" ]; then
|
||||||
fi
|
export CC="$full_check"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "X$WINDRES" = "X" ]; then
|
if [ "X$WINDRES" = "X" ]; then
|
||||||
for check in $CMD_PREFIX; do
|
for check in $CMD_PREFIX; do
|
||||||
full_check="${check}-windres"
|
full_check="${check}-windres"
|
||||||
if [ ! $(which "$full_check") = "" ]; then
|
which "$full_check" > /dev/null 2>&1
|
||||||
export WINDRES="$full_check"
|
if [ "$?" = "0" ]; then
|
||||||
fi
|
export WINDRES="$full_check"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue