require ("../../common.jake"); var OS = require("os"), task = require("jake").task; task ("build", function() { if (executableExists("xcodebuild")) { var args = "-alltargets -configuration Release"; if (FILE.exists(FILE.join("/", "Developer", "SDKs", "MacOSX10.5.sdk"))) args = "-sdk macosx10.5 " + args; else args = "-sdk macosx " + args; if (OS.system("xcodebuild " + args)) OS.exit(1); var binPath = FILE.join($BUILD_CJS_CAPPUCCINO_BIN, "fontinfo"); FILE.copy(FILE.join("build", "Release", "fontinfo"), binPath); FILE.chmod(binPath, 0755); } else { print("Building fontinfo requires Xcode."); } }); task ("clean", function() { if (OS.system("xcodebuild clean")) OS.exit(1); }); task ("clobber", function() { if (OS.system("xcodebuild clean")) OS.exit(1); }); task ("default", ["build"]);