forked from sanjayprabhu/macrodef
-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.build
75 lines (67 loc) · 2.79 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
<?xml version="1.0" ?>
<project name="exoftware.nant" default="test" xmlns="http://nant.sf.net/schemas/nant.xsd">
<property name="build.dir" value="build" />
<!-- User targets -->
<target name="clean" description="Delete Automated Build artifacts">
<delete dir="${build.dir}" if="${directory::exists(build.dir)}"/>
<delete dir="bin" if="${directory::exists('bin')}"/>
<delete dir="obj" if="${directory::exists('obj')}"/>
</target>
<target name="compile" description="Compiles using the AutomatedDebug Configuration">
<echo message="${nant::get-base-directory()}" />
<mkdir dir="build"/>
<csc target="library" output="build/Macrodef.dll" debug="true" doc="build/Macrodef.xml">
<sources>
<include name="src/*.cs" />
</sources>
<references>
<include name="System.dll" />
<include name="System.Data.dll" />
<include name="${nant::get-base-directory()}/*.dll" />
</references>
</csc>
</target>
<target name="full" depends="clean, test, dist" description="Compiles, tests, and produces distributions" />
<target name="dist" depends="doc" />
<target name="test" depends="compile">
<nant buildfile="test/tests.build"/>
</target>
<target name="doc" depends="compile">
<!-- use vs.net to build before running this -->
<property name="link.sdkdoc.version" value="SDK_v1_1" />
<property name="link.sdkdoc.web" value="true" />
<ndoc>
<assemblies basedir="build">
<include name="*.dll" />
</assemblies>
<summaries basedir="build">
<include name="*.xml" />
</summaries>
<documenters>
<documenter name="NAnt">
<property name="OutputDirectory" value="build/doc" />
<property name="SdkDocVersion" value="${link.sdkdoc.version}" />
<property name="SdkLinksOnWeb" value="${link.sdkdoc.web}" />
<!-- set base uri used for linking to other NAnt docs -->
<property name="NAntBaseUri" value="../" />
<!-- do not filter on namespace -->
<property name="NamespaceFilter" value="" />
<property name="ProductName" value="NAnt macrodef" />
<property name="ProductVersion" value="0.1.0" />
<property name="ProductUrl" value="http://peelmeagrape.net/" />
<property name="Preliminary" value="True" />
<property name="DocumentAttributes" value="True" />
<property name="IncludeAssemblyVersion" value="True" />
<property name="ShowMissingParams" value="True" />
<property name="ShowMissingReturns" value="True" />
<property name="ShowMissingValues" value="True" />
</documenter>
</documenters>
</ndoc>
<copy todir="build/">
<fileset>
<include name="doc/**" />
</fileset>
</copy>
</target>
</project>