forked from boo-language/boo-build-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bake
76 lines (61 loc) · 2.11 KB
/
build.bake
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#import Bake.Engine
import Bake.Compiler.Extensions
import Bake.IO.Extensions
import System.Collections.Generic
############################
# Tasks
Task "default", ["build"]
Task "clean", ["remove build dir", "build"]
Task "build", ["init build dir", "build Bake", "build examples", "build tests"]
Task "remove build dir":
RmDir("build", true) if Exist("build")
Task "init build dir":
MkDir("build")
Cp(["lib/*.dll"], "build", true)
Task "build Bake", ["build engine", "build extensions", "build win32 helper"]:
Booc(
SourcesSet : ["tools/Bake/**/*.boo"],
OutputFile : "build/Bake.exe",
ReferencesSet: ["build/Bake.engine.dll", "build/boo.lang.useful.dll"]
).Execute()
Task "build engine":
Booc(
SourcesSet : ["src/Bake.engine/**/*.boo"],
OutputFile : "build/Bake.engine.dll",
OutputTarget: TargetType.Library
).Execute()
Task "build extensions", ["build io.extensions", "build compiler.extensions"]
Task "build io.extensions":
Booc(
SourcesSet : ["src/extensions/Bake.io.extensions/**/*.boo"],
OutputFile : "build/Bake.io.extensions.dll",
OutputTarget: TargetType.Library
).Execute()
Task "build compiler.extensions":
Booc(
SourcesSet : ["src/extensions/Bake.compiler.extensions/**/*.boo"],
OutputFile : "build/Bake.compiler.extensions.dll",
ReferencesSet: ["build/Bake.io.extensions.dll", "lib/boo.lang.useful.dll"],
OutputTarget : TargetType.Library
).Execute()
Task "build win32 helper":
Booc(
SourcesSet : ["src/Bake.win32.helper/**/*.boo"],
OutputFile : "build/Bake.win32.helper.dll",
OutputTarget: TargetType.Library
).Execute()
Task "build examples":
Booc(
SourcesSet : ["src/Bake.example/**/*.boo"],
OutputFile : "build/Bake.example.exe",
ReferencesSet: ["build/Bake.engine.dll"]
).Execute()
Task "build tests":
Booc(
SourcesSet : ["src/Bake.tests/**/*.boo"],
OutputFile : "build/Bake.tests.dll",
OutputTarget : TargetType.Library,
ReferencesSet: ["build/Bake.io.extensions.dll",
"build/Bake.compiler.extensions.dll",
"nunit.framework.dll"]
).Execute()