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 - use user-friendly configs in Xcode
Summary: use user-friendly configs in Xcode
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.0
Hardware: All Mac OS X 10.6
: P2 enhancement
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-19 18:46 UTC by C.W. Betts
Modified: 2009-10-19 21:01 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!