mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
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:
parent
61bdb13c4c
commit
f68ae3ad5d
2 changed files with 35 additions and 0 deletions
19
tools/cross/mingw64/cross-configure.sh
Executable file
19
tools/cross/mingw64/cross-configure.sh
Executable 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 \
|
||||
$*
|
16
tools/cross/mingw64/cross-make.sh
Executable file
16
tools/cross/mingw64/cross-make.sh
Executable 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' $*
|
Loading…
Reference in a new issue