-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdataflow.build
77 lines (64 loc) · 2.48 KB
/
dataflow.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
<?xml version="1.0"?>
<!--
Copyright © 2008 The Dataflow Team
See AUTHORS and LICENSE for details.
-->
<project name="Dataflow" default="build" basedir=".">
<description>Builds the Dataflow engine and patches.</description>
<property name="debug" value="true" overwrite="false" />
<property name="appname" value="dataflow" overwrite="false" />
<property name="bindir" value="bin" overwrite="false" />
<property name="exename" value="${bindir}/${appname}.exe" overwrite="false" />
<property name="nunit-console" value="bin/nunit-console.exe" overwrite="false" />
<target name="clean" description="remove all generated files">
<delete dir="${bindir}" failonerror="true" />
<mkdir dir="${bindir}"/>
</target>
<target name="build" depends="clean, compile, test" description="default target - build everything"/>
<target name="compile" description="compiles the source code">
<csc target="exe" output="${exename}" debug="${debug}" langversion="linq">
<sources>
<include name="${appname}/src/**.cs" />
<include name="${appname}/test/**.cs" />
</sources>
<references failonempty="true">
<include name="Mono.C5.dll"/>
<include name="${appname}/lib/**/*.dll"/>
</references>
</csc>
</target>
<target name="test" depends="internal:copy-dependencies, internal:clear-test-results" description="runs tests">
<exec program="${nunit-console}" managed="true">
<arg file="${exename}" />
<arg value="-labels" />
<arg value="-xml=${bindir}/test-results/results.xml" />
</exec>
</target>
<target name="format" description="formats source code using astyle">
<exec program="util/format.sh"/>
<delete>
<fileset>
<include name="${appname}/**/*.orig"/>
</fileset>
</delete>
</target>
<target name="commit" description="commits changes made using git">
<exec program="git">
<arg value="commit"/>
<arg value="-a"/>
<arg value="-m 'successful build'"/>
</exec>
</target>
<target name="internal:copy-dependencies" description="copies libs to output dir">
<copy todir="${bindir}">
<fileset basedir="${appname}/lib">
<include name="*.dll"/>
<include name="*.exe"/>
</fileset>
</copy>
</target>
<target name="internal:clear-test-results" description="clear test results dir">
<delete dir="${bindir}/test-results" failonerror="true" />
<mkdir dir="${bindir}/test-results"/>
</target>
</project>