mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-12 13:41:29 +00:00
Merge remote branch 'refs/remotes/280north/master'
This commit is contained in:
@@ -11,7 +11,7 @@ task ("build", function()
|
||||
{
|
||||
var args = "-alltargets -configuration Release";
|
||||
|
||||
if (FILE.exists(FILE.join("/", "Developer", "SDKs", "MacOSX10.5.sdk")))
|
||||
if (xcodebuildHasTenPointFiveSDK())
|
||||
args = "-sdk macosx10.5 " + args;
|
||||
|
||||
else
|
||||
|
||||
@@ -10,7 +10,7 @@ task ("build", function()
|
||||
{
|
||||
var args = "-alltargets -configuration " + $CONFIGURATION;
|
||||
|
||||
if (FILE.exists(FILE.join("/", "Developer", "SDKs", "MacOSX10.5.sdk")))
|
||||
if (xcodebuildHasTenPointFiveSDK())
|
||||
args = "-sdk macosx10.5 " + args;
|
||||
|
||||
else
|
||||
|
||||
+13
@@ -456,6 +456,19 @@ global.copyManPage = function(/*String*/ name, /*int*/ section)
|
||||
}
|
||||
}
|
||||
|
||||
global.xcodebuildCanListSDKs = function ()
|
||||
{
|
||||
return OS.system("xcodebuild -showsdks > /dev/null 2>&1") == 0;
|
||||
}
|
||||
|
||||
global.xcodebuildHasTenPointFiveSDK = function ()
|
||||
{
|
||||
if (xcodebuildCanListSDKs())
|
||||
return OS.system("xcodebuild -showsdks | grep 'macosx10.5' > /dev/null 2>&1") == 0;
|
||||
|
||||
return FILE.exists(FILE.join("/", "Developer", "SDKs", "MacOSX10.5.sdk"));
|
||||
}
|
||||
|
||||
|
||||
// built in tasks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user