Skip to content

Commit

Permalink
Initial import of my awesome cross-mingw buildscripts...
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/branches/2.0@2941 4a71c877-e1ca-e34f-864e-861f7616d084
  • Loading branch information
devurandom committed Dec 1, 2007
1 parent 4fcfadb commit 30d7a34
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
10 changes: 10 additions & 0 deletions __BUILD_CONFIG
@@ -0,0 +1,10 @@
PREFIX="${HOME}/Documents/Projects/Warzone/devpkg/devpkg"
PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig"
PATH="${PREFIX}/bin:${PATH}"

CFLAGS="-pipe -m32 -march=i686 -O2"
CXXFLAGS="${CFLAGS}"
CPPFLAGS="-I${PREFIX}/include"
LDFLAGS="-L${PREFIX}/lib"

INSTALLER_VERSION="2.0.8.0"
19 changes: 19 additions & 0 deletions __BUILD_SCRIPT
@@ -0,0 +1,19 @@
#!/bin/sh

source __BUILD_CONFIG

if [[ "x$1" = "xdebug" ]] ; then
CONF_EXTRA_FLAGS='--enable-debug'
elif [[ "x$1" = "xinstaller" ]] ; then
CONF_EXTRA_FLAGS='--enable-data --enable-installer
--with-installer-extdir="${HOME}/Warzone/devpkg/devpkg/bin" --with-installer-version=${INSTALLER_VERSION}'
fi

./autogen.sh
./configure --target=mingw32 --host=mingw32 --enable-static --disable-shared \
--prefix="${PREFIX}" \
${CONF_EXTRA_FLAGS} \
CFLAGS="${CFLAGS}" \
CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
make -j3

0 comments on commit 30d7a34

Please sign in to comment.