mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-04 09:53:41 +00:00
2. Prepared Foundation and Appkit for clean and clobber 3. Placed built-necessary requires in bundletask in the calling functions so that it can be included without being built for clean and clobber. 4. Made common.jake include unbuilt CommonJS files if built ones aren't present. Reviewed by me.
36 lines
1.2 KiB
JavaScript
36 lines
1.2 KiB
JavaScript
#!/usr/bin/env narwhal
|
|
|
|
require("../common.jake");
|
|
|
|
|
|
foundationTask = framework ("Foundation", function(foundationTask)
|
|
{
|
|
foundationTask.setBuildIntermediatesPath(FILE.join($BUILD_DIR, "Foundation.build", $CONFIGURATION))
|
|
foundationTask.setBuildPath(FILE.join($BUILD_DIR, $CONFIGURATION));
|
|
|
|
foundationTask.setAuthor("280 North, Inc.");
|
|
foundationTask.setEmail("feedback @nospam@ 280north.com");
|
|
foundationTask.setSummary("Foundation classes for Cappuccino");
|
|
foundationTask.setIdentifier("com.280n.Foundation");
|
|
foundationTask.setLicense(BundleTask.License.LGPL_v2_1);
|
|
foundationTask.setSources(new FileList("**/*.j"));//terrible!
|
|
foundationTask.setResources(new FileList("Resources/**/*"));
|
|
foundationTask.setFlattensSources(true);
|
|
|
|
if ($CONFIGURATION === "Release")
|
|
foundationTask.setCompilerFlags("-O");
|
|
else
|
|
foundationTask.setCompilerFlags("-DDEBUG -g");
|
|
});
|
|
|
|
$COMMONJS_PRODUCT_FOUNDATION = FILE.join($COMMONJS_PRODUCT_FRAMEWORKS, "Foundation");
|
|
|
|
filedir ($COMMONJS_PRODUCT_FOUNDATION, ["Foundation"], function()
|
|
{
|
|
cp_r(foundationTask.buildProductPath(), $COMMONJS_PRODUCT_FOUNDATION);
|
|
});
|
|
|
|
task ("build", ["Foundation", $COMMONJS_PRODUCT_FOUNDATION]);
|
|
|
|
CLOBBER.include($COMMONJS_PRODUCT_FOUNDATION);
|