2006-02-18 05:49:24 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Berkeley Open Infrastructure for Network Computing
|
|
|
|
# http://boinc.berkeley.edu
|
|
|
|
# Copyright (C) 2005 University of California
|
|
|
|
#
|
|
|
|
# This is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation;
|
|
|
|
# either version 2.1 of the License, or (at your option) any later version.
|
2005-12-22 02:33:59 +00:00
|
|
|
#
|
2006-02-18 05:49:24 +00:00
|
|
|
# This software is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
# See the GNU Lesser General Public License for more details.
|
2005-12-22 02:33:59 +00:00
|
|
|
#
|
2006-02-18 05:49:24 +00:00
|
|
|
# To view the GNU Lesser General Public License visit
|
|
|
|
# http://www.gnu.org/copyleft/lesser.html
|
|
|
|
# or write to the Free Software Foundation, Inc.,
|
|
|
|
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2005-12-22 02:33:59 +00:00
|
|
|
#
|
2006-01-31 12:21:34 +00:00
|
|
|
#
|
2007-04-13 05:18:25 +00:00
|
|
|
# Script to build the wxMac-2.8.3 library for BOINC as a Universal Binary
|
2005-12-22 12:22:39 +00:00
|
|
|
#
|
2006-07-22 09:30:34 +00:00
|
|
|
# by Charlie Fenton 7/21/06
|
2007-04-13 05:18:25 +00:00
|
|
|
# Updated for wx-Mac 2.8.3 4/12/07
|
2007-01-19 14:30:18 +00:00
|
|
|
|
2005-12-22 12:22:39 +00:00
|
|
|
#
|
2007-04-13 05:18:25 +00:00
|
|
|
## In Terminal, CD to the wxMac-2.8.3 directory.
|
|
|
|
## cd [path]/wxMac-2.8.3/
|
2006-02-18 05:49:24 +00:00
|
|
|
## then run this script:
|
|
|
|
## source [ path_to_this_script ] [ -clean ]
|
|
|
|
##
|
|
|
|
## the -clean argument will force a full rebuild.
|
|
|
|
#
|
|
|
|
|
2005-12-22 02:33:59 +00:00
|
|
|
|
|
|
|
if [ "$1" = "-clean" ]; then
|
|
|
|
doclean="clean "
|
|
|
|
else
|
|
|
|
doclean=""
|
|
|
|
fi
|
|
|
|
|
2007-01-19 14:30:18 +00:00
|
|
|
if [ "$1" != "-clean" ] && [ -f src/build/Deployment/libwx_mac_static.a ]; then
|
|
|
|
echo "Deployment libwx_mac_static.a already built"
|
2005-12-22 11:37:36 +00:00
|
|
|
else
|
2007-04-13 05:18:25 +00:00
|
|
|
xcodebuild -project src/wxWindows.xcodeproj -target static -configuration Deployment $doclean build GCC_VERSION_ppc=3.3 MACOSX_DEPLOYMENT_TARGET_ppc=10.3 SDKROOT_ppc=/Developer/SDKs/MacOSX10.3.9.sdk
|
2005-12-22 11:37:36 +00:00
|
|
|
|
2006-07-22 03:35:48 +00:00
|
|
|
if [ $? -ne 0 ]; then return 1; fi
|
2005-12-22 11:37:36 +00:00
|
|
|
fi
|
2005-12-22 02:33:59 +00:00
|
|
|
|
2007-01-19 14:30:18 +00:00
|
|
|
if [ "$1" != "-clean" ] && [ -f src/build/Development/libwx_mac_static.a ]; then
|
|
|
|
echo "Development libwx_mac_static.a already built"
|
2005-12-22 11:37:36 +00:00
|
|
|
else
|
2007-04-13 05:18:25 +00:00
|
|
|
xcodebuild -project src/wxWindows.xcodeproj -target static -configuration Development $doclean build GCC_VERSION_ppc=3.3 MACOSX_DEPLOYMENT_TARGET_ppc=10.3 SDKROOT_ppc=/Developer/SDKs/MacOSX10.3.9.sdk
|
|
|
|
## The above line does Development build for only the native architecture.
|
|
|
|
## Use line below instead for Universal Binary Development build
|
|
|
|
## xcodebuild -project src/wxWindows.xcodeproj -target static -configuration Development $doclean build ARCHS="i386 ppc" GCC_VERSION_ppc=3.3 MACOSX_DEPLOYMENT_TARGET_ppc=10.3 SDKROOT_ppc=/Developer/SDKs/MacOSX10.3.9.sdk
|
2005-12-22 11:37:36 +00:00
|
|
|
|
2006-07-22 03:35:48 +00:00
|
|
|
if [ $? -ne 0 ]; then return 1; fi
|
2005-12-22 11:37:36 +00:00
|
|
|
fi
|
2005-12-22 02:33:59 +00:00
|
|
|
|
|
|
|
return 0
|
2005-12-22 11:37:36 +00:00
|
|
|
|