supernova: c++11 compile fix
[supercollider.git] / platform / mac / compile.sh
blob220f9fa2cc396491f3afd95e95be9660f6c8de2b
1 #!/bin/sh
3 # This script builds the server, the plugins and the application (sclang), one after another.
5 if [ $# == 0 ]; then
6 echo "--------------------------------------------------------------------------------
7 Building SuperCollider as a 32 bit UNIVERSAL BINARY (intel + ppc).
8 For faster build, or if you don't have UB versions of the libs
9 (e.g. libsndfile),you may specify your computer's architecture
10 by adding ARCHS=i386 or ARCHS=ppc as a parameter to this script.
11 Or, if you are using Mac OS 10.6, you may also specify ARCHS=32_64
12 to build a 32/64-bit Universal Binary version of the server and
13 plugins along with a 32-bit version of the application
14 --------------------------------------------------------------------------------
18 # First let's detect the special 32/64bit mode
19 switchableConfig="Deployment"
20 buildArg=$*
21 for opt in $*
23 if [ $opt == "ARCHS=32_64" ]; then
24 switchableConfig="Deployment32-64"
25 buildArg=""
26 echo "Building 32/64 bit sclang, scsynth and plugins"
28 done
30 # scsynth
31 echo "Building scsynth..."
32 xcodebuild -project Synth.xcodeproj -target "AllExceptAU" -configuration $switchableConfig $buildArg build || exit
34 # plugins
35 echo "Building plugins..."
36 xcodebuild -project Plugins.xcodeproj -target "All" -configuration $switchableConfig $buildArg build || exit
38 #sclang
39 echo "Building sclang..."
40 xcodebuild -project Language.xcodeproj -target "All" -configuration $switchableConfig $buildArg build || exit
42 # scau
43 echo "Building SuperColliderAU..."
44 xcodebuild -project Synth.xcodeproj -target "SuperColliderAU" -configuration $switchableConfig $buildArg build || exit
46 echo "Done."