Skip to content
Newer
Older
100644 58 lines (47 sloc) 2.1 KB
0d6fd12 @tolmasky Beginnings of MapKit changes to not use iframes, but instead use the …
authored
1
2 var FILE = require("file"),
3 ENV = require("system").env,
4 Jake = require("jake"),
5 task = Jake.task,
6 FileList = Jake.FileList,
7 bundle = require("objective-j/jake").bundle,
8 framework = require("objective-j/jake").framework,
9 environment = require("objective-j/jake/environment");
10
11 $CONFIGURATION = ENV['CONFIG'] || "Release";
12
13 $BUILD_DIR = ENV['CAPP_BUILD'] || ENV['STEAM_BUILD'];
14
15 bundle ("MapKit", function(task)
16 {
17 task.setBuildIntermediatesPath(FILE.join($BUILD_DIR, "MapKit.build", $CONFIGURATION))
18 task.setBuildPath(FILE.join($BUILD_DIR, $CONFIGURATION));
19
20 task.setAuthor("280 North, Inc.");
21 task.setEmail("feedback @nospam@ 280north.com");
22 task.setSummary("Plugin framework for Atlas");
23 task.setIdentifier("com.280n.MapKit");
24 task.setSources(new FileList("*.j").exclude("MapKitPlugin.j"), [environment.Browser, environment.CommonJS]);
25 task.setResources(new FileList("Resources/*").exclude("Resources/MapKitLibrary.xib"));
26 task.setFlattensSources(true);
27
28 if ($CONFIGURATION === "Release")
29 task.setCompilerFlags("-O");
30 else
31 task.setCompilerFlags("-DDEBUG -g");
32 });
33
34 framework ("MapKit.atlasplugin", function(task)
35 {
36 task.setBuildIntermediatesPath(FILE.join($BUILD_DIR, "MapKit.atlasplugin.build", $CONFIGURATION))
37 task.setBuildPath(FILE.join($BUILD_DIR, $CONFIGURATION));
38
39 task.setAuthor("280 North, Inc.");
40 task.setEmail("feedback @nospam@ 280north.com");
41 task.setSummary("MapKit Plugin for Atlas");
42 task.setIdentifier("com.280n.MapKit");
43 task.setInfoPlistPath("PluginInfo.plist");
44 task.setSources(new FileList("*.j"), [environment.Browser, environment.CommonJS]);
45 task.setResources(new FileList("Resources/*"));
46 task.setNib2CibFlags("-F " + FILE.join(FILE.join($BUILD_DIR, $CONFIGURATION), "AtlasKit") + " -R Resources");
47 task.setPrincipalClass("MapKitPlugin");
48 task.setFlattensSources(true);
49
50 if ($CONFIGURATION === "Release")
51 task.setCompilerFlags("-O");
52 else
53 task.setCompilerFlags("-DDEBUG -g");
54 });
55
56 task ("build", ["MapKit", "MapKit.atlasplugin"]);
57 task ("default", ["build"]);
Something went wrong with that request. Please try again.