Add support for 64bit windows via mxe (mingw).

Note that this support relies on the -multi branch (separate git repo on
github) util it gets merged.
This commit is contained in:
Bill Currie 2013-01-22 17:50:38 +09:00
parent 61bdb13c4c
commit f68ae3ad5d
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,19 @@
#!/bin/sh -x
set -e
mkdir -p native x86_64-w64-mingw32
cd native
../../configure \
--disable-shared \
--without-clients \
--without-servers \
--with-tools=qfcc,pak
cd ../x86_64-w64-mingw32
export MINGW=/opt/mxe
export MINGW_USR=$MINGW/usr/x86_64-w64-mingw32
export PKG_CONFIG_LIBDIR=$MINGW_USR/lib/pkgconfig
export PKG_CONFIG_PATH=$MINGW_USR/local/lib/pkgconfig
export PATH=$MINGW/usr/bin:$PATH
../../configure \
--host=x86_64-w64-mingw32 \
--disable-shared \
$*

View file

@ -0,0 +1,16 @@
#!/bin/sh -x
set -e
if test -d native; then
cd native
make $*
cd ../x86_64-w64-mingw32
ln -fs ../native/tools/qfcc/source/qfcc .
ln -fs ../native/tools/pak/pak .
fi
export MINGW=/opt/mxe
export MINGW_USR=$MINGW/usr/x86_64-w64-mingw32
export PKG_CONFIG_LIBDIR=$MINGW_USR/lib/pkgconfig
export PKG_CONFIG_PATH=$MINGW_USR/local/lib/pkgconfig
export PATH=$MINGW/usr/bin:$PATH
make PAK='$(top_builddir)/pak' QFCC='$(top_builddir)/qfcc' $*