summaryrefslogtreecommitdiff
path: root/scripts/mingw-x-build-dependencies.sh
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-08-02 03:02:45 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-08-02 03:02:45 (GMT)
commitb942c728c1ac532d65bd780ba2a124dc0fb036b1 (patch)
tree44dfeaa30329c994f8b11d10c9c9f60b1b33cee2 /scripts/mingw-x-build-dependencies.sh
parent5036d9acea379d5177179cb8eaa60d2c93417e9a (diff)
find openscad.exe. clearup confusion re NUMCPU / NUMJOBS
Diffstat (limited to 'scripts/mingw-x-build-dependencies.sh')
-rwxr-xr-xscripts/mingw-x-build-dependencies.sh17
1 files changed, 16 insertions, 1 deletions
diff --git a/scripts/mingw-x-build-dependencies.sh b/scripts/mingw-x-build-dependencies.sh
index ac60d9e..405b7e8 100755
--- a/scripts/mingw-x-build-dependencies.sh
+++ b/scripts/mingw-x-build-dependencies.sh
@@ -19,6 +19,20 @@ if [ ! -f $OPENSCADDIR/openscad.pro ]; then
echo "Must be run from the OpenSCAD source root directory"
exit 0
fi
+echo OPENSCADDIR: $OPENSCADDIR
+
+if [ ! $NUMCPU ]; then
+ echo "note: you can 'export NUMCPU=x' for multi-core compiles (x=number)";
+ NUMCPU=1
+fi
+if [ ! $NUMJOBS ]; then
+ echo "note: you can 'export NUMJOBS=x' for building multiple pkgs at once"
+ if [ $NUMCPU -gt 2 ]; then
+ NUMJOBS=$((NUMCPU/2))
+ else
+ NUMJOBS=1
+ fi
+fi
. ./scripts/setenv-mingw-xbuild.sh
@@ -54,10 +68,11 @@ echo "linking mxe to" $DEPLOYDIR/mingw-cross-env
ln -s $MXEDIR/usr/i686-pc-mingw32/ $DEPLOYDIR/mingw-cross-env
echo
-echo "now copy/paste the following to cross-build openscad"
+echo "now copy/paste the following to cross-build openscad in" $DEPLOYDIR
echo
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"
+echo cd $OPENSCADDIR
echo
contact: Jan Huwald // Impressum