2003-05-25 Joel Basson <jstrike@mweb.co.za>
[mono.git] / mcs / class / System.Windows.Forms / System.Windows.Forms.build
1 <?xml version="1.0" encoding="iso-8859-1"?>
2
3 <!-- NAnt build file for System.XML.dll -->
4
5 <project name="System.Windows.Forms" default="build">
6         <property name="debug" value="false"/>
7
8         <target name="build">
9                 <mkdir dir="../lib"/>
10                 <csc target="library" output="../lib/System.Windows.Forms.dll" debug="${debug}">
11                         <!-- 'foo' is defined in multiple places; using definition from 'bar' -->
12                         <arg value="/nowarn:1595"/>
13                         <!-- Other languages may permit the internal virtual member 'foo' to be overridden -->
14                         <arg value="/nowarn:0679"/>
15                         <arg value="/nowarn:0649"/>
16                         <arg value="/nowarn:0168"/>
17                         <arg value="/nowarn:0067"/>
18                         <arg value="/nowarn:108"/>
19                         <arg value="/nowarn:114"/>
20                         <arg value="/noconfig"/>
21                         <arg value="/r:Accessibility.dll"/>
22                         <arg value="/r:System.dll"/>
23                         <arg value="/r:System.Drawing.dll"/>
24                         <arg value="/unsafe"/>
25                         <sources>
26                                 <includes name="**/*.cs"/> 
27                                 <excludes name="Test/**"/>
28                                 <excludes name="System.Windows.Forms.Test/**"/>
29                                 <excludes name="Gtk/**"/>
30                                 <excludes name="SWFTest/**"/>
31                                 <excludes name="System.Windows.Forms/PictureBox.cs"/>
32                                 <excludes name="System.Windows.Forms.Design/TODOAttribute.cs"/>
33                                 <excludes name="System.Windows.Forms.Design/AssemblyInfo.cs"/>
34                                 <excludes name="WINELib/**"/>
35                         </sources>
36                 </csc>
37                 <copy file="../lib/System.Windows.Forms.dll" tofile="Test/System.Windows.Forms.dll"/>
38         </target>
39
40         <target name="test" depends="build">
41                 <nant basedir="Test" target="test"/>
42         </target>
43
44         <target name="clean">
45                 <nant basedir="Test" target="clean"/>
46                 <delete file="../lib/System.Windows.Forms.dll" failonerror="false"/>
47                 <delete file="Test/System.Windows.Forms.dll" failonerror="false"/>
48         </target>
49 </project>