diff options
Diffstat (limited to 'scripts/setenv-mingw-xbuild.sh')
-rw-r--r-- | scripts/setenv-mingw-xbuild.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/setenv-mingw-xbuild.sh b/scripts/setenv-mingw-xbuild.sh new file mode 100644 index 0000000..8417e0a --- /dev/null +++ b/scripts/setenv-mingw-xbuild.sh @@ -0,0 +1,25 @@ +#!/bin/sh -e +# +# set environment variables for mingw/mxe cross-build +# +# Usage: source ./scripts/setenv-mingw-xbuild.sh +# +# Prerequisites: +# +# Please see http://mxe.cc/#requirements +# +# Also see http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Cross-compiling_for_Windows_on_Linux_or_Mac_OS_X +# + +if [ ! $BASEDIR ]; then + BASEDIR=$HOME/openscad_deps +fi +export DEPLOYDIR=$OPENSCADDIR/mingw32 +export MXEDIR=$BASEDIR/mxe +export PATH=$MXEDIR/usr/bin:$PATH + +echo MXEDIR: $MXEDIR +echo BASEDIR: $BASEDIR +echo DEPLOYDIR: $DEPLOYDIR +echo PATH modified with $MXEDIR/usr/bin + |