2003-03-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
[mono.git] / mcs / class / Microsoft.VisualC / Microsoft.VisualC.build
1 <?xml version="1.0" encoding="iso-8859-1"?>
2
3 <!-- NAnt build file for Microsoft.VisualC.dll -->
4
5 <project name="System" default="build">
6         <property name="debug" value="false"/>
7
8         <target name="build">
9                 <mkdir dir="../lib"/>
10                 <csc target="library" output="../lib/Microsoft.VisualC.dll" debug="${debug}">
11                         <arg value="/nowarn:1595"/>
12                         <arg value="/noconfig"/>        <!-- don't reference ms assemblies -->
13                         
14                         <!-- cor compare dies with these currently -->
15                         <!--<arg value="/nostdlib"/>-->         <!-- don't reference mscorlib -->
16                         <!--<arg value="/lib:../lib/"/>-->
17                         <!--<arg value="/r:..\lib\corlib.dll"/>-->
18                         <!--<arg value="/r:..\lib\System.dll"/>-->
19                         <arg value="/r:System.dll"/>
20                         <sources>
21                                 <includes name="**/*.cs"/> 
22                                 <excludes name="Test/**"/>
23                         </sources>
24                         <references>
25                                 <!--<includes name="../lib/corlib.dll"/>-->
26                                 <!--<includes name="../lib/System.dll"/>-->
27                         </references>
28                 </csc>
29                 <copy file="../lib/Microsoft.VisualC.dll" tofile="Test/Microsoft.VisualC.dll"/>
30         </target>
31
32         <target name="test" depends="build">
33                 <nant basedir="Test" target="test"/>
34         </target>
35
36         <target name="clean">
37                 <delete file="../lib/Microsoft.VisualC.dll" failonerror="false"/>
38                 <delete file="Test/Microsoft.VisualC.dll" failonerror="false"/>
39         </target>
40 </project>