forked from lewissbaker/cppcoro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cake
30 lines (23 loc) · 781 Bytes
/
build.cake
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
from cake.tools import script, project, env
libScript = script.get(script.cwd('lib/build.cake'))
script.addTarget('objects', libScript.getTarget('objects'))
script.addTarget('libs', libScript.getTarget('libs'))
script.addDefaultTarget(libScript.getDefaultTarget())
libScript.execute()
testScript = script.get(script.cwd('test/build.cake'))
script.addTarget('objects', testScript.getTarget('objects'))
script.addDefaultTarget(testScript.getDefaultTarget())
testScript.execute()
projects = [
libScript.getResult('project'),
testScript.getResult('project'),
]
sln = project.solution(
target=env.expand('${CPPCORO_PROJECT}/cppcoro'),
projects=projects,
)
script.addTargets('projects', projects)
script.addTarget('projects', sln)
script.setResult(
projects=projects,
)