Skip to content

Commit

Permalink
Merge mingw build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Angus authored and timangus committed Mar 21, 2013
1 parent 2c8e751 commit e2f520e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 37 deletions.
13 changes: 11 additions & 2 deletions cross-make-mingw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@

# Note: This works in Linux and cygwin

CMD_PREFIX="i586-mingw32msvc i686-w64-mingw32";
if [ "$ARCH" = "x86_64" ];
then
CMD_PREFIX="amd64-mingw32msvc x86_64-w64-mingw32"
else
CMD_PREFIX="i586-mingw32msvc i686-w64-mingw32"
fi

if [ "$CC" = "cc" ] || [ "$CC" = "gcc" ];
then
CC=
fi

if [ "X$CC" = "X" ]; then
for check in $CMD_PREFIX; do
Expand Down Expand Up @@ -30,6 +40,5 @@ if [ "X$WINDRES" = "X" -o "X$CC" = "X" ]; then
fi

export PLATFORM=mingw32
export ARCH=x86

exec make $*
35 changes: 0 additions & 35 deletions cross-make-mingw64.sh

This file was deleted.

0 comments on commit e2f520e

Please sign in to comment.