summaryrefslogtreecommitdiff
path: root/scripts/macosx-build-dependencies.sh
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-03-09 18:04:36 (GMT)
committerMarius Kintel <marius@kintel.net>2013-03-09 18:04:36 (GMT)
commit8711bd25006bda5b63516a222b762e71a9954a56 (patch)
tree2ca8f83aa6234d73dc7c615512895792a6a19c6f /scripts/macosx-build-dependencies.sh
parente868b4a5a178ceb6b340e16151b0f82ec322fc9a (diff)
Set preprocessor define for deployment builds. Don't include sparkle in development builds. Note: Development snapshots are considered deployment builds
Diffstat (limited to 'scripts/macosx-build-dependencies.sh')
-rwxr-xr-xscripts/macosx-build-dependencies.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/macosx-build-dependencies.sh b/scripts/macosx-build-dependencies.sh
index e208fdd..11d9919 100755
--- a/scripts/macosx-build-dependencies.sh
+++ b/scripts/macosx-build-dependencies.sh
@@ -6,10 +6,11 @@
#
# This script must be run from the OpenSCAD source root directory
#
-# Usage: macosx-build-dependencies.sh [-6l]
+# Usage: macosx-build-dependencies.sh [-6lcd]
# -6 Build only 64-bit binaries
# -l Force use of LLVM compiler
# -c Force use of clang compiler
+# -d Build for deployment (if not specified, e.g. Sparkle won't be built)
#
# Prerequisites:
# - MacPorts: curl, cmake
@@ -32,11 +33,12 @@ export QMAKESPEC=macx-g++
printUsage()
{
- echo "Usage: $0 [-6lc]"
+ echo "Usage: $0 [-6lcd]"
echo
echo " -6 Build only 64-bit binaries"
echo " -l Force use of LLVM compiler"
echo " -c Force use of clang compiler"
+ echo " -d Build for deployment"
}
# FIXME: Support gcc/llvm/clang flags. Use -platform <whatever> to make this work? kintel 20130117
@@ -354,12 +356,13 @@ if [ ! -f $OPENSCADDIR/openscad.pro ]; then
exit 0
fi
-while getopts '6lc' c
+while getopts '6lcd' c
do
case $c in
6) OPTION_32BIT=false;;
l) OPTION_LLVM=true;;
c) OPTION_CLANG=true;;
+ d) OPTION_DEPLOY=true;;
esac
done
@@ -415,4 +418,6 @@ build_boost 1.53.0
build_cgal 4.1
build_glew 1.9.0
build_opencsg 1.3.2
-build_sparkle 0ed83cf9f2eeb425d4fdd141c01a29d843970c20
+if $OPTION_DEPLOY; then
+ build_sparkle 0ed83cf9f2eeb425d4fdd141c01a29d843970c20
+fi
contact: Jan Huwald // Impressum