diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 21:57:50 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 21:57:50 +0000 |
commit | 0c8ab45a49026c20eb48c34bf089e542bc963fb8 (patch) | |
tree | 13141176065ff93b9d173fd863521d3e07701276 /build | |
parent | ba92eb1ab796901064dd76c895a75faa552581d3 (diff) | |
download | chromium_src-0c8ab45a49026c20eb48c34bf089e542bc963fb8.zip chromium_src-0c8ab45a49026c20eb48c34bf089e542bc963fb8.tar.gz chromium_src-0c8ab45a49026c20eb48c34bf089e542bc963fb8.tar.bz2 |
Set SDKROOT in the project-wide xcode_settings block instead of doing it in
target_defaults. This is equivalent to how Xcode sets SDKROOT from the
Project Info window's General tab. Making this setting project-wide means
that the selected SDK will show up properly in that UI.
BUG=26976
TEST=Build still works.
SDK (typically "Mac OS X 10.5") shows up in Project Info:General.
Review URL: http://codereview.chromium.org/371035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/build/common.gypi b/build/common.gypi index 7189d3e..a77a13c 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -741,7 +741,6 @@ # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', 'PREBINDING': 'NO', # No -Wl,-prebind - 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot 'USE_HEADERMAP': 'NO', 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], 'conditions': [ @@ -931,6 +930,17 @@ 'tools': ['ar', 'as', 'gcc', 'g++', 'gnulink', 'chromium_builders'], }, 'xcode_settings': { + # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! + # This block adds *project-wide* configuration settings to each project + # file. It's almost always wrong to put things here. Specify your + # custom xcode_settings in target_defaults to add them to targets instead. + + # In an Xcode Project Info window, the "Base SDK for All Configurations" + # setting sets the SDK on a project-wide basis. In order to get the + # configured SDK to show properly in the Xcode UI, SDKROOT must be set + # here at the project level. + 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot + # The Xcode generator will look for an xcode_settings section at the root # of each dict and use it to apply settings on a file-wide basis. Most # settings should not be here, they should be in target-specific |