mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +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
|
||||
|
||||
# Note: This works in Linux and cygwin
|
||||
|
||||
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
|
||||
which "$full_check" > /dev/null 2>&1
|
||||
if [ "$?" = "0" ]; then
|
||||
export CC="$full_check"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [ "X$WINDRES" = "X" ]; then
|
||||
for check in $CMD_PREFIX; do
|
||||
full_check="${check}-windres"
|
||||
if [ ! $(which "$full_check") = "" ]; then
|
||||
export WINDRES="$full_check"
|
||||
fi
|
||||
which "$full_check" > /dev/null 2>&1
|
||||
if [ "$?" = "0" ]; then
|
||||
export WINDRES="$full_check"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,22 +1,26 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Note: This works in Linux and cygwin
|
||||
|
||||
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
|
||||
which "$full_check" > /dev/null 2>&1
|
||||
if [ "$?" = "0" ]; then
|
||||
export CC="$full_check"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [ "X$WINDRES" = "X" ]; then
|
||||
for check in $CMD_PREFIX; do
|
||||
full_check="${check}-windres"
|
||||
if [ ! $(which "$full_check") = "" ]; then
|
||||
export WINDRES="$full_check"
|
||||
fi
|
||||
which "$full_check" > /dev/null 2>&1
|
||||
if [ "$?" = "0" ]; then
|
||||
export WINDRES="$full_check"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue