From 413ff778b95d257e0a26f9c27585b9fecda1f7a0 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 28 Jun 2012 09:32:56 +0000 Subject: [PATCH] Mac client: Update wxMac build script for partial compatibility with OS 10.8 and XCode 4.5 svn path=/trunk/boinc/; revision=25819 --- checkin_notes | 7 +++++++ mac_build/buildWxMac.sh | 14 ++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/checkin_notes b/checkin_notes index 715c0f3dc0..313f46d28c 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4592,3 +4592,10 @@ David 26 June 2012 - Unix build tweak configure.ac + +Charlie 28 June 2012 + - Mac client: Update wxMac build script for partial compatibility + with OS 10.8 and XCode 4.5. See comments in script for details. + + mac_build/ + buildWxMac.sh diff --git a/mac_build/buildWxMac.sh b/mac_build/buildWxMac.sh index ada043bb87..b83e527fc1 100644 --- a/mac_build/buildWxMac.sh +++ b/mac_build/buildWxMac.sh @@ -23,8 +23,13 @@ # by Charlie Fenton 7/21/06 # Updated for wx-Mac 2.8.10 and Unicode 4/17/09 # Updated for OS 10.7 and XCode 4.1 with OS 10.4 compatibility 9/26/11 - +# Updated for partial OS 10.8 and XCode 4.5 compatibility 6/28/12 +## NOTE: To run with XCode 4.5, you must first obtain a copy of the +## MacOSX10.6.sdk and copy it into the folder: +## /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ # +## This script requires OS 10.6 or later +## ## In Terminal, CD to the wxMac-2.8.10 directory. ## cd [path]/wxMac-2.8.10/ ## then run this script: @@ -53,7 +58,8 @@ else doclean="" fi -if [ ! -d /Developer/SDKs/MacOSX10.6.sdk/ ]; then +xcodebuild -version -sdk macosx10.6 +if [ ! "$?" = "0" ]; then echo "ERROR: System 10.6 SDK is missing. For details, see build instructions at" echo "boinc/mac_build/HowToBuildBOINC_XCode.rtf or http://boinc.berkeley.edu/trac/wiki/MacBuild" return 1 @@ -108,7 +114,7 @@ if [ "$1" != "-clean" ] && [ -f src/build/Deployment/libwx_mac_static.a ]; then else export DEVELOPER_SDK_DIR="/Developer/SDKs" ## We must override some of the build settings in wxWindows.xcodeproj - xcodebuild -project src/wxWindows.xcodeproj -target static -configuration Deployment $doclean build SDKROOT=/Developer/SDKs/MacOSX10.6.sdk CC=/usr/bin/llvm-gcc-4.2 CXX=/usr/bin/llvm-g++-4.2 GCC_VERSION_i386=com.apple.compilers.llvmgcc42 MACOSX_DEPLOYMENT_TARGET_i386=10.4 ARCHS="i386" OTHER_CPLUSPLUSFLAGS="-DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DwxUSE_UNICODE=1 -fvisibility=hidden -fvisibility-inlines-hidden" + xcodebuild -project src/wxWindows.xcodeproj -target static -configuration Deployment $doclean build -sdk macosx10.6 GCC_VERSION_i386=com.apple.compilers.llvmgcc42 MACOSX_DEPLOYMENT_TARGET_i386=10.4 ARCHS="i386" OTHER_CPLUSPLUSFLAGS="-DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DwxUSE_UNICODE=1 -fvisibility=hidden -fvisibility-inlines-hidden" if [ $? -ne 0 ]; then return 1; fi fi @@ -118,7 +124,7 @@ if [ "$1" != "-clean" ] && [ -f src/build/Development/libwx_mac_static.a ]; then else export DEVELOPER_SDK_DIR="/Developer/SDKs" ## We must override some of the build settings in wxWindows.xcodeproj - xcodebuild -project src/wxWindows.xcodeproj -target static -configuration Development $doclean build SDKROOT=/Developer/SDKs/MacOSX10.6.sdk CC=/usr/bin/llvm-gcc-4.2 CXX=/usr/bin/llvm-g++-4.2 GCC_VERSION_i386=com.apple.compilers.llvmgcc42 MACOSX_DEPLOYMENT_TARGET_i386=10.4 ARCHS="i386" OTHER_CPLUSPLUSFLAGS="-DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DwxUSE_UNICODE=1 -fvisibility=hidden -fvisibility-inlines-hidden" + xcodebuild -project src/wxWindows.xcodeproj -target static -configuration Development $doclean build -sdk macosx10.6 GCC_VERSION_i386=com.apple.compilers.llvmgcc42 MACOSX_DEPLOYMENT_TARGET_i386=10.4 ARCHS="i386" OTHER_CPLUSPLUSFLAGS="-DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DwxUSE_UNICODE=1 -fvisibility=hidden -fvisibility-inlines-hidden" if [ $? -ne 0 ]; then return 1; fi fi