forked from cappuccino/MapKit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jakefile
57 lines (47 loc) · 2.15 KB
/
Jakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
var FILE = require("file"),
ENV = require("system").env,
Jake = require("jake"),
task = Jake.task,
FileList = Jake.FileList,
bundle = require("objective-j/jake").bundle,
framework = require("objective-j/jake").framework,
environment = require("objective-j/jake/environment");
$CONFIGURATION = ENV['CONFIG'] || "Release";
$BUILD_DIR = ENV['CAPP_BUILD'] || ENV['STEAM_BUILD'];
bundle ("MapKit", function(task)
{
task.setBuildIntermediatesPath(FILE.join($BUILD_DIR, "MapKit.build", $CONFIGURATION))
task.setBuildPath(FILE.join($BUILD_DIR, $CONFIGURATION));
task.setAuthor("280 North, Inc.");
task.setEmail("feedback @nospam@ 280north.com");
task.setSummary("Plugin framework for Atlas");
task.setIdentifier("com.280n.MapKit");
task.setSources(new FileList("*.j").exclude("MapKitPlugin.j").exclude("MKMapViewAttributeInspector.j").exclude("MKMapView+Integration.j"), [environment.Browser, environment.CommonJS]);
task.setResources([]);//All the resources belong to the plugin
task.setFlattensSources(true);
if ($CONFIGURATION === "Release")
task.setCompilerFlags("-O");
else
task.setCompilerFlags("-DDEBUG -g");
});
framework ("MapKit.atlasplugin", function(task)
{
task.setBuildIntermediatesPath(FILE.join($BUILD_DIR, "MapKit.atlasplugin.build", $CONFIGURATION))
task.setBuildPath(FILE.join($BUILD_DIR, $CONFIGURATION));
task.setAuthor("280 North, Inc.");
task.setEmail("feedback @nospam@ 280north.com");
task.setSummary("MapKit Plugin for Atlas");
task.setIdentifier("com.280n.MapKit");
task.setInfoPlistPath("PluginInfo.plist");
task.setSources(new FileList("*.j"), [environment.Browser, environment.CommonJS]);
task.setResources(new FileList("Resources/*"));
task.setNib2CibFlags("-F " + FILE.join(FILE.join($BUILD_DIR, $CONFIGURATION), "AtlasKit") + " -R Resources");
task.setPrincipalClass("MapKitPlugin");
task.setFlattensSources(true);
if ($CONFIGURATION === "Release")
task.setCompilerFlags("-O");
else
task.setCompilerFlags("-DDEBUG -g");
});
task ("build", ["MapKit", "MapKit.atlasplugin"]);
task ("default", ["build"]);