Add a new test that we fail to pass
[mono.git] / mcs / class / corlib / corlib.build
1 <?xml version="1.0" encoding="iso-8859-1"?>
2
3 <!-- NAnt build file for corlib.dll -->
4 <!-- Target windows builds libraries _for_ windows -->
5 <!-- Target linux builds libraries _for_ linux -->
6
7 <project name="corlib" default="linux">
8         <property name="debug" value="false"/>
9
10         <target name="windows">
11                 <mkdir dir="../lib"/>
12                 <csc target="library" output="../lib/corlib.dll" debug="${debug}">
13                         <arg value="/nowarn:1595"/>
14                         <arg value="/unsafe"/>
15                         <sources>
16                                 <includes name="**/*.cs"/> 
17                                 <excludes name="Test/**"/>
18                                 <excludes name="Linux/**"/>
19                                 <excludes name="System.PAL/IOperatingSystem.cs"/>
20                         </sources>
21                 </csc>
22                 <csc target="library" output="Test/corlib_res.dll" debug="${debug}">
23                         <arg value="/nowarn:1595"/>
24                         <arg value="/unsafe"/>
25                         <sources>
26                                 <includes name="**/*.cs"/>
27                                 <excludes name="Test/**"/>
28                                 <excludes name="Linux/**"/>
29                                 <excludes name="System/Object.cs"/>
30                                 <excludes name="System/ValueType.cs"/>
31                                 <excludes name="System/Type.cs"/>
32                                 <excludes name="System/Array.cs"/>
33                                 <excludes name="System/String.cs"/>
34                                 <excludes name="System/Console.cs"/>
35                                 <excludes name="System/AppDomain.cs"/>
36                                 <excludes name="System.Reflection.Emit/**"/>
37                                 <excludes name="System/RuntimeTypeHandle.cs"/>
38                                 <excludes name="System.PAL/IOperatingSystem.cs"/>
39                                 <excludes name="System.Collections/Queue.cs"/>
40                         </sources>
41                 </csc>
42                 <nant basedir="Test" target="build"/>
43         </target>
44
45         <target name="linux">
46                 <mkdir dir="../lib"/>
47                 <csc target="library" output="../lib/corlib.dll" debug="${debug}">
48                         <arg value="/nowarn:1595"/>
49                         <arg value="/unsafe"/>
50                         <sources>
51                                 <includes name="**/*.cs"/>
52                                 <excludes name="Test/**"/>
53                                 <excludes name="Windows/**"/>
54                                 <excludes name="System.PAL/IOperatingSystem.cs"/>
55                         </sources>
56                 </csc>
57                 <copy file="../lib/corlib.dll" tofile="Test/corlib_res.dll"/>
58                 <nant basedir="Test" target="build"/>
59         </target>
60
61         <target name="test">
62                 <nant basedir="Test" target="test"/>
63         </target>
64
65         <target name="clean">
66                 <delete file="../lib/corlib.dll" failonerror="false"/>
67                 <delete file="Test/corlib_res.dll" failonerror="false"/>
68                 <nant basedir="Test" target="clean"/>
69         </target>
70 </project>