<rdar://problem/7745082> Make it possible to build WebKit for older Mac OS X versions...
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Mar 2010 00:44:29 +0000 (00:44 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Mar 2010 00:44:29 +0000 (00:44 +0000)
commit44f949708d1b95faded2d0f7427bb3a5c06a05ed
tree54f91851246286bd0db5dd081a3600d3a1e42065
parentc59e068691ac7660950e858e18f33a4029fb53f9
<rdar://problem/7745082> Make it possible to build WebKit for older Mac OS X versions from the current Mac OS X version

Reviewed by Tim Hatcher.

Introduce TARGET_MAC_OS_X_VERSION_MAJOR to represent the Mac OS X version that is being targeted.  It defaults to the
current Mac OS X version unless otherwise specified.

Key off TARGET_MAC_OS_X_VERSION_MAJOR where we'd previously been keying off MAC_OS_X_VERSION_MAJOR.

Explicitly map from the target Mac OS X version to the preferred compiler since Xcode's default compiler choice
may not be usable when targetting a different Mac OS X version.

Key off TARGET_GCC_VERSION rather than MAC_OS_X_VERSION_MAJOR in locations where we'd previously been keying off
MAC_OS_X_VERSION_MAJOR but the decision is really related to the compiler version being used.

JavaScriptCore:

* Configurations/Base.xcconfig:
* Configurations/DebugRelease.xcconfig:
* Configurations/FeatureDefines.xcconfig:
* Configurations/JavaScriptCore.xcconfig:
* Configurations/Version.xcconfig:

JavaScriptGlue:

* Configurations/Base.xcconfig:
* Configurations/DebugRelease.xcconfig:
* Configurations/Version.xcconfig:
* JavaScriptGlue.xcodeproj/project.pbxproj:

WebCore:

* Configurations/Base.xcconfig:
* Configurations/DebugRelease.xcconfig:
* Configurations/FeatureDefines.xcconfig:
* Configurations/Version.xcconfig:
* Configurations/WebCore.xcconfig:

WebKit/mac:

* Configurations/Base.xcconfig:
* Configurations/DebugRelease.xcconfig:
* Configurations/FeatureDefines.xcconfig:
* Configurations/Version.xcconfig:

WebKitTools:

* DumpRenderTree/mac/Configurations/Base.xcconfig:
* DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
* DumpRenderTree/mac/DumpRenderTree.mm: Wrap the include of mach-o/getsect.h in 'extern "C"' as some versions of the
header in older SDKs do not do this inside the header.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@55867 268f45cc-cd09-0410-ab3c-d52691b4dbfc
26 files changed:
JavaScriptCore/ChangeLog
JavaScriptCore/Configurations/Base.xcconfig
JavaScriptCore/Configurations/DebugRelease.xcconfig
JavaScriptCore/Configurations/FeatureDefines.xcconfig
JavaScriptCore/Configurations/JavaScriptCore.xcconfig
JavaScriptCore/Configurations/Version.xcconfig
JavaScriptGlue/ChangeLog
JavaScriptGlue/Configurations/Base.xcconfig
JavaScriptGlue/Configurations/DebugRelease.xcconfig
JavaScriptGlue/Configurations/Version.xcconfig
JavaScriptGlue/JavaScriptGlue.xcodeproj/project.pbxproj
WebCore/ChangeLog
WebCore/Configurations/Base.xcconfig
WebCore/Configurations/DebugRelease.xcconfig
WebCore/Configurations/FeatureDefines.xcconfig
WebCore/Configurations/Version.xcconfig
WebCore/Configurations/WebCore.xcconfig
WebKit/mac/ChangeLog
WebKit/mac/Configurations/Base.xcconfig
WebKit/mac/Configurations/DebugRelease.xcconfig
WebKit/mac/Configurations/FeatureDefines.xcconfig
WebKit/mac/Configurations/Version.xcconfig
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/mac/Configurations/Base.xcconfig
WebKitTools/DumpRenderTree/mac/Configurations/DebugRelease.xcconfig
WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm