-
Notifications
You must be signed in to change notification settings - Fork 7
/
xmlrpccs.build
72 lines (65 loc) · 2.77 KB
/
xmlrpccs.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
<?xml version="1.0"?>
<!--
This is a Nant build file. See http://nant.sourceforge.net for more
info.
-->
<project name="XmlRpcCS" default="all">
<property name="debug" value="true"/>
<property name="nunit.bin" value="c:\csharp\nunit\bin"/>
<property name="classdoc.dir" value="docs\classes"/>
<target name="methods" depends="library">
<style style="docs/methods.xsl" in="${classdoc.dir}\${nant.project.name}.xml" out="${classdoc.dir}\methods.xml"/>
</target>
<target name="all" description="Builds the DLL, and all examples.">
<foreach item="String"
in="GoogleClient,ProxyClient,SystemObjectClient,SampleServerWithExpose,SampleClient,SampleServer,RequestXmlTest"
delim="," property="exe">
<call target="exe" force="true"/>
</foreach>
</target>
<target name="exe" depends="library" description="Builds an executable">
<csc target="exe" output="${exe}.exe" debug="${debug}" doc="${classdoc.dir}\${exe}.xml">
<references>
<includes name="${nant.project.name}.dll"/>
</references>
<sources basedir=".">
<includes name="**/${exe}.cs"/>
</sources>
</csc>
<style style="docs/docs.xsl" in="${classdoc.dir}\${exe}.xml" out="${classdoc.dir}\${exe}.html"/>
</target>
<target name="library" description="Build a DLL.">
<property name="target" value="${nant.project.name}"/>
<csc target="library" output="${target}.dll" doc="${classdoc.dir}\${target}.xml" debug="${debug}">
<sources>
<includes name="src/nwc/**/*.cs"/>
</sources>
</csc>
<style style="docs/docs.xsl" in="${classdoc.dir}\${target}.xml" out="${classdoc.dir}\${target}.html"/>
</target>
<target name="unit-tests" depends="library">
<property name="target" value="unit-tests"/>
<csc target="library" output="${target}.dll" debug="${debug}">
<references>
<includes name="${nant.project.name}.dll"/>
<includes name="${nunit.bin}/nunit.framework.dll"/>
</references>
<sources>
<includes name="test/*.cs"/>
</sources>
</csc>
<!-- There is an NUnit2 task but it is broken - ironic huh? -->
<exec basedir="${nunit.bin}" program="nunit-console" workingdir="." failonerror="false"
commandline="/assembly:${target}.dll /xml:docs\${target}.xml"/>
</target>
<target name="clean" description="cleans up everything">
<delete failonerror="false">
<fileset basedir=".">
<includes name="*.exe"/>
<includes name="*.dll"/>
<includes name="*.pdb"/>
<includes name="${classdoc.dir}\*.xml"/>
</fileset>
</delete>
</target>
</project>