mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-26 05:27:03 +00:00
38 lines
1.4 KiB
JavaScript
38 lines
1.4 KiB
JavaScript
|
|
require("../../../common.jake");
|
|
|
|
var framework = require("objective-j/jake").framework;
|
|
var BundleTask = require("objective-j/jake").BundleTask;
|
|
|
|
blendKitTask = framework ("BlendKit", function(blendKitTask)
|
|
{
|
|
blendKitTask.setBuildIntermediatesPath(FILE.join($BUILD_DIR, "BlendKit.build", $CONFIGURATION))
|
|
blendKitTask.setBuildPath(FILE.join($BUILD_DIR, $CONFIGURATION));
|
|
|
|
blendKitTask.setIdentifier("com.280n.BlendKit");
|
|
blendKitTask.setVersion(getCappuccinoVersion());
|
|
blendKitTask.setAuthor("280 North, Inc.");
|
|
blendKitTask.setEmail("feedback @nospam@ 280north.com");
|
|
blendKitTask.setSummary("BlendKit classes for Cappuccino");
|
|
blendKitTask.setSources(FILE.glob("*.j"));
|
|
blendKitTask.setResources(FILE.glob("Resources/*"));
|
|
blendKitTask.setLicense(BundleTask.License.LGPL_v2_1);
|
|
blendKitTask.setFlattensSources(true); // FIXME: how do we non flatten?
|
|
|
|
if ($CONFIGURATION === "Release")
|
|
blendKitTask.setCompilerFlags("-O");
|
|
else
|
|
blendKitTask.setCompilerFlags("-DDEBUG -g");
|
|
});
|
|
|
|
$BUILD_CJS_PRODUCT_BLENDKIT = FILE.join($BUILD_CJS_CAPPUCCINO_FRAMEWORKS, "BlendKit");
|
|
|
|
filedir ($BUILD_CJS_PRODUCT_BLENDKIT, ["BlendKit"], function()
|
|
{
|
|
cp_r(blendKitTask.buildProductPath(), $BUILD_CJS_PRODUCT_BLENDKIT);
|
|
});
|
|
|
|
task ("build", ["BlendKit", $BUILD_CJS_PRODUCT_BLENDKIT]);
|
|
|
|
CLOBBER.include( $BUILD_CJS_PRODUCT_BLENDKIT);
|