Files
cappuccino/Tools/fontinfo/Jakefile
T
Antoine Mercadal 054421c978 Fixed: Crash with rhino in fontinfo due to missing import
fontinfo's Jakefile needed to import SYSTEM to call SYSTEM.env
2013-03-26 17:57:02 -07:00

44 lines
939 B
JavaScript

require ("../../common.jake");
var OS = require("os"),
task = require("jake").task,
SYSTEM = require("system");
task ("build", function()
{
if (executableExists("xcodebuild"))
{
var args = "-alltargets -configuration Release";
if (xcodebuildHasTenPointFiveSDK())
args = "-sdk macosx10.5 " + args;
else
args = "-sdk macosx " + args;
var xcodebuild = SYSTEM.env.CAPP_BUILD ? "xcodebuild " : "CAPP_BUILD=../../Build xcodebuild ";
if (OS.system(xcodebuild + args))
OS.exit(1);
}
else
{
print("Building fontinfo requires Xcode.");
}
});
task ("clean", function()
{
if (executableExists("xcodebuild") && OS.system("xcodebuild clean"))
OS.exit(1);
});
task ("clobber", function()
{
if (executableExists("xcodebuild") && OS.system("xcodebuild clean"))
OS.exit(1);
});
task ("default", ["build"]);