PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/AppKit/Themes/BlendKit/Jakefile

http://github.com/cacaodev/cappuccino
#! | 37 lines | 28 code | 9 blank | 0 comment | 0 complexity | c3e2fdffb1d49ce4178955ade99690f0 MD5 | raw file
 1
 2require("../../../common.jake");
 3
 4var framework = require("objective-j/jake").framework;
 5var BundleTask = require("objective-j/jake").BundleTask;
 6
 7blendKitTask = framework ("BlendKit", function(blendKitTask)
 8{
 9    blendKitTask.setBuildIntermediatesPath(FILE.join($BUILD_DIR, "BlendKit.build", $CONFIGURATION))
10    blendKitTask.setBuildPath(FILE.join($BUILD_DIR, $CONFIGURATION));
11
12    blendKitTask.setIdentifier("com.280n.BlendKit");
13    blendKitTask.setVersion(getCappuccinoVersion());
14    blendKitTask.setAuthor("280 North, Inc.");
15    blendKitTask.setEmail("feedback @nospam@ 280north.com");
16    blendKitTask.setSummary("BlendKit classes for Cappuccino");
17    blendKitTask.setSources(FILE.glob("*.j"));
18    blendKitTask.setResources(FILE.glob("Resources/*"));
19    blendKitTask.setLicense(BundleTask.License.LGPL_v2_1);
20    blendKitTask.setFlattensSources(true); // FIXME: how do we non flatten?
21
22    if ($CONFIGURATION === "Release")
23        blendKitTask.setCompilerFlags("-O");
24    else
25        blendKitTask.setCompilerFlags("-DDEBUG -g");
26});
27
28$BUILD_CJS_PRODUCT_BLENDKIT = FILE.join($BUILD_CJS_CAPPUCCINO_FRAMEWORKS, "BlendKit");
29
30filedir ($BUILD_CJS_PRODUCT_BLENDKIT, ["BlendKit"], function()
31{
32    cp_r(blendKitTask.buildProductPath(), $BUILD_CJS_PRODUCT_BLENDKIT);
33});
34
35task ("build", ["BlendKit", $BUILD_CJS_PRODUCT_BLENDKIT]);
36
37CLOBBER.include( $BUILD_CJS_PRODUCT_BLENDKIT);