-
Notifications
You must be signed in to change notification settings - Fork 25
/
default.build
executable file
·143 lines (121 loc) · 4.05 KB
/
default.build
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?xml version="1.0"?>
<project name="boo-extensions" default="build">
<property name="build.dir" value="build" />
<property name="boo.dir" value="../boo/build" />
<include buildfile="nunit.inc" />
<include buildfile="build.properties" if="${file::exists('build.properties')}" />
<property name="keyfile" value="${boo.dir}/../src/boo.snk" overwrite="false" />
<target name="test" depends="build">
<nunit2>
<formatter type="Plain" />
<test>
<assemblies basedir="${build.dir}">
<include name="*.Tests.dll" />
<exclude name="*.Parser.Tests.dll" />
</assemblies>
</test>
</nunit2>
</target>
<target name="parser-test" depends="test">
<nunit2>
<formatter type="Plain" />
<test>
<assemblies basedir="${build.dir}">
<include name="*.Parser.Tests.dll" />
</assemblies>
</test>
</nunit2>
</target>
<target name="build" depends="Boo.Pegs, Boo.Adt, Boo.OMeta, Boo.OMeta.Parser">
</target>
<target name="Boo.Pegs" depends="init">
<booc failonerror="true" target="library" output="${build.dir}/Boo.Pegs.dll" keyfile="${keyfile}">
<sources basedir="src/Boo.Pegs">
<include name="*.boo" />
</sources>
</booc>
<booc failonerror="true" target="library" output="${build.dir}/Boo.Pegs.Tests.dll" >
<sources basedir="src/Boo.Pegs.Tests">
<include name="*.boo" />
</sources>
<references basedir="${build.dir}">
<include name="nunit.framework.dll" />
<include name="Boo.Pegs.dll" />
</references>
</booc>
</target>
<target name="Boo.Adt" depends="init">
<booc failonerror="true" target="library" output="${build.dir}/Boo.Adt.dll" keyfile="${keyfile}">
<sources basedir="src/Boo.Adt">
<include name="*.boo" />
</sources>
</booc>
<booc failonerror="true" target="library" output="${build.dir}/Boo.Adt.Tests.dll">
<sources basedir="src/Boo.Adt.Tests">
<include name="*.boo" />
</sources>
<references basedir="${build.dir}">
<include name="nunit.framework.dll" />
<include name="Boo.Adt.dll" />
</references>
</booc>
</target>
<target name="Boo.OMeta" depends="Boo.Adt">
<booc failonerror="true" target="library" output="${build.dir}/Boo.OMeta.dll" keyfile="${keyfile}">
<sources basedir="src/Boo.OMeta">
<include name="*.boo" />
</sources>
<references basedir="${build.dir}">
<include name="Boo.Adt.dll" />
<include name="Boo.Lang.PatternMatching.dll" />
</references>
</booc>
<booc failonerror="true" target="library" output="${build.dir}/Boo.OMeta.Tests.dll">
<sources basedir="src/Boo.OMeta.Tests">
<include name="*.boo" />
</sources>
<references basedir="${build.dir}">
<include name="nunit.framework.dll" />
<include name="Boo.OMeta.dll" />
<include name="Boo.Adt.dll" />
</references>
</booc>
</target>
<target name="Boo.OMeta.Parser" depends="Boo.Adt, Boo.OMeta">
<booc failonerror="true" target="library" output="${build.dir}/Boo.OMeta.Parser.dll" keyfile="${keyfile}">
<sources basedir="src/Boo.OMeta.Parser">
<include name="*.boo" />
</sources>
<references basedir="${build.dir}">
<include name="Boo.Lang.PatternMatching.dll" />
<include name="Boo.Adt.dll" />
<include name="Boo.OMeta.dll" />
</references>
</booc>
<booc failonerror="true" target="library" output="${build.dir}/Boo.OMeta.Parser.Tests.dll">
<sources basedir="src/Boo.OMeta.Parser.Tests">
<include name="*.boo" />
</sources>
<references basedir="${build.dir}">
<include name="nunit.framework.dll" />
<include name="Boo.OMeta.dll" />
<include name="Boo.Adt.dll" />
<include name="Boo.OMeta.Parser.dll" />
</references>
</booc>
</target>
<target name="init">
<mkdir dir="${build.dir}" />
<copy file="${nunit.framework.dll}" todir="${build.dir}" />
<loadtasks assembly="${boo.dir}/Boo.NAnt.Tasks.dll" />
<copy todir="${build.dir}">
<fileset basedir="${boo.dir}">
<include name="Boo.Lang*.dll" />
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="${build.dir}" />
</target>
<target name="rebuild" depends="clean, build" />
</project>