We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 860

Summary: use user-friendly configs in Xcode
Product: SDL Reporter: C.W. Betts <computers57>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2 CC: computers57
Version: HG 2.0   
Hardware: All   
OS: Mac OS X 10.6   

Description C.W. Betts 2009-10-19 18:46:38 UTC
starting in Xcode 3.1, it was possible to set build settings on a per-arch basis in a user-friendly way.  Instead of:
GCC_VERSION_i386 = 4.0
GCC_VERSION_ppc = 4.0
GCC_VERSION_x86_64 = 4.2
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
MACOSX_DEPLOYMENT_TARGET_ppc = 10.4
MACOSX_DEPLOYMENT_TARGET_x86_64 = 10.6
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk
SDKROOT_ppc = /Developer/SDKs/MacOSX10.4u.sdk
You could use:
GCC_VERSION[arch=i386] = 4.0
GCC_VERSION[arch=ppc] = 4.0
GCC_VERSION[arch=x86_64] = 4.2
MACOSX_DEPLOYMENT_TARGET[arch=i386] = 10.4
MACOSX_DEPLOYMENT_TARGET[arch=ppc] = 10.4
MACOSX_DEPLOYMENT_TARGET[arch=x86_64] = 10.6
SDKROOT[arch=i386] = /Developer/SDKs/MacOSX10.4u.sdk
SDKROOT[arch=ppc] = /Developer/SDKs/MacOSX10.4u.sdk

The advantage of this set-up is that Xcode allows you to change the settings in a smart way.  The disadvantage is that it won't work on older versions of Xcode
Comment 1 Sam Lantinga 2009-10-19 19:52:19 UTC
This isn't something we'll change for SDL 1.2, but I'd be interested in a patch for SDL 1.3 if you want to make one.
Comment 2 C.W. Betts 2009-10-19 20:50:30 UTC
And it has been changed in the SVN trunk, except for the build configuration known as "Default."
Comment 3 Sam Lantinga 2009-10-19 21:01:26 UTC
Great!