summaryrefslogtreecommitdiff
path: root/scripts/mingw-x-build-dependencies.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mingw-x-build-dependencies.sh')
-rwxr-xr-xscripts/mingw-x-build-dependencies.sh21
1 files changed, 17 insertions, 4 deletions
diff --git a/scripts/mingw-x-build-dependencies.sh b/scripts/mingw-x-build-dependencies.sh
index df8572f..c0f658d 100755
--- a/scripts/mingw-x-build-dependencies.sh
+++ b/scripts/mingw-x-build-dependencies.sh
@@ -6,8 +6,13 @@
# This script must be run from the OpenSCAD source root directory
#
# Usage:
-# ./scripts/mingw-x-build-dependencies.sh # 32 bit
-# ./scripts/mingw-x-build-dependencies.sh 64 # 64 bit
+# ./scripts/mingw-x-build-dependencies.sh # 32 bit
+# ./scripts/mingw-x-build-dependencies.sh 64 # 64 bit
+#
+# If you just want to download, and build later:
+#
+# ./scripts/mingw-x-build-dependencies.sh download # 32 bit download
+# ./scripts/mingw-x-build-dependencies.sh 64 download # 64 bit download
#
# Prerequisites:
#
@@ -54,11 +59,19 @@ fi
echo "entering" $MXEDIR
cd $MXEDIR
if [ "`echo $* | grep 64`" ]; then
- MXE_TARGETS='x86_64-w64-mingw32'
+ MXE_TARGETS='x86_64-w64-mingw32'
+ if [ "`echo $* | grep download`" ]; then
+ PACKAGES='download-mpfr download-eigen download-opencsg download-cgal download-qt'
+ else
PACKAGES='mpfr eigen opencsg cgal qt'
+ fi
else
- MXE_TARGETS=
+ MXE_TARGETS='i686-pc-mingw32' # fixme - does this work? test it.
+ if [ "`echo $* | grep download`" ]; then
+ PACKAGES='download-mpfr download-eigen download-opencsg download-cgal download-qt download-nsis'
+ else
PACKAGES='mpfr eigen opencsg cgal qt nsis'
+ fi
fi
echo make $PACKAGES MXE_TARGETS=$MXE_TARGETS -j $NUMCPU JOBS=$NUMJOBS
make $PACKAGES MXE_TARGETS=$MXE_TARGETS -j $NUMCPU JOBS=$NUMJOBS
contact: Jan Huwald // Impressum