summaryrefslogtreecommitdiff
path: root/scripts/setenv-mingw-xbuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/setenv-mingw-xbuild.sh')
-rw-r--r--scripts/setenv-mingw-xbuild.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/setenv-mingw-xbuild.sh b/scripts/setenv-mingw-xbuild.sh
index a650f50..e8976b7 100644
--- a/scripts/setenv-mingw-xbuild.sh
+++ b/scripts/setenv-mingw-xbuild.sh
@@ -11,14 +11,20 @@
# Also see http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Cross-compiling_for_Windows_on_Linux_or_Mac_OS_X
#
+export OPENSCADDIR=$PWD
+
if [ ! $BASEDIR ]; then
export BASEDIR=$HOME/openscad_deps
fi
-export OPENSCADDIR=$PWD
-export DEPLOYDIR=$OPENSCADDIR/mingw32
+
+if [ ! $DEPLOYDIR ]; then
+ export DEPLOYDIR=$OPENSCADDIR/mingw32
+fi
+
if [ ! $MXEDIR ]; then
export MXEDIR=$BASEDIR/mxe
fi
+
export PATH=$MXEDIR/usr/bin:$PATH
echo BASEDIR: $BASEDIR
contact: Jan Huwald // Impressum