summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-08-02 04:06:19 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-08-02 04:06:19 (GMT)
commite9e97af0a104b6dd2b4ef6bac95a5ea3e6ebeddb (patch)
tree675aa1b987dde3439884272acf732a9d5d46b8a6
parentc900bc628fafa157aa2f45e0d387563a6a19819e (diff)
add script to do qmake line for mingw. enable fully auto build
-rwxr-xr-xscripts/mingw-x-build-openscad.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/scripts/mingw-x-build-openscad.sh b/scripts/mingw-x-build-openscad.sh
new file mode 100755
index 0000000..5f27960
--- /dev/null
+++ b/scripts/mingw-x-build-openscad.sh
@@ -0,0 +1,42 @@
+#!/bin/sh -e
+#
+# This script builds Openscad.exe for windows using the MXE cross build system.
+#
+# This script must be run from the OpenSCAD source root directory
+#
+# You must have already run the mingw-x-build-dependencies.sh script
+#
+# Usage:
+#
+# ./scripts/mingw-x-build-openscad.sh
+#
+
+OPENSCADDIR=$PWD
+if [ ! -f $OPENSCADDIR/openscad.pro ]; then
+ echo "Must be run from the OpenSCAD source root directory"
+ exit 0
+fi
+echo OPENSCADDIR: $OPENSCADDIR
+
+. ./scripts/setenv-mingw-xbuild.sh
+
+if [ ! -e $BASEDIR/lib ]; then
+ echo "please run the mingw-x-build-dependencies.sh script first"
+fi
+
+echo cd $DEPLOYDIR
+echo "i686-pc-mingw32-qmake CONFIG+=mingw-cross-env ../openscad.pro"
+#echo "make -j$NUMCPU" # causes parser_yacc.hpp errors
+echo "make"
+
+OPENSCAD_EXE=$DEPLOYDIR/release/openscad.exe
+
+if [ -e $OPENSCAD_EXE ] ; then
+ echo
+ echo $OPENSCAD_EXE built in $DEPLOYDIR/release
+ echo
+else
+ echo Cannot find $OPENSCAD_EXE. The build appears to have had an error.
+fi
+
+echo cd $OPENSCADDIR
contact: Jan Huwald // Impressum