forked from AtomicGameEngine/AtomicGameEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildTasks.js
More file actions
52 lines (40 loc) · 1.33 KB
/
BuildTasks.js
File metadata and controls
52 lines (40 loc) · 1.33 KB
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
var os = require('os');
var host = require("./Host");
var config = require("./BuildConfig");
require("./PackageEditor");
// return an object with package name keys and module name lists as values
function installBuildTasks(rootTask) {
var task = rootTask;
// add optional build components in reverse order
if (config["with-docs"]) {
var docTask = jake.Task['build:gendocs'];
task.prereqs.push("build:gendocs")
task = docTask;
}
if (!config["noexamples"]) {
var examplesTask = jake.Task['build:genexamples'];
task.prereqs.push("build:genexamples")
task = examplesTask;
}
if (config["with-atomicnet"]) {
var netTask = jake.Task['build:atomicnet'];
task.prereqs.push("build:atomicnet")
task = netTask;
}
if (config["with-web"]) {
var webTask = jake.Task['build:web_player'];
task.prereqs.push("build:web_player")
task = webTask;
}
if (config["with-ios"]) {
var iosTask = jake.Task['build:ios_native'];
task.prereqs.push("build:ios_native")
task = iosTask;
}
if (config["with-android"]) {
var androidTask = jake.Task['build:android_native'];
task.prereqs.push("build:android_native")
task = androidTask;
}
}
exports.installBuildTasks = installBuildTasks;