Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Experiments / Attic / Generator / generator.build
blob0f04cc423c3077a572e8654d123ee1c1df0ac036
1 <?xml version="1.0" encoding='iso-8859-1' ?>
2 <project name="activerecord" default="build">
4 <property name="base.dir" value="${path::get-full-path( project::get-base-directory() )}" />
5 <property name="bin.dir" value="${base.dir}/bin" />
7 <include buildfile="../../common.xml" />
9 <property name="library.dir" value="${base.dir}/lib" />
11 <property name="generator.name" value="Castle.ActiveRecord.Generator" />
12 <property name="cpnts.name" value="Castle.ActiveRecord.Generator.Components" />
13 <property name="generator.assembly.name" value="${generator.name}.exe" />
14 <property name="cpnts.assembly.name" value="${cpnts.name}.dll" />
15 <property name="cpnts.tests.assembly.name" value="${cpnts.name}.tests.dll" />
17 <property name="generator.src.dir" value="${base.dir}/${generator.name}" />
18 <property name="cpnts.src.dir" value="${base.dir}/${cpnts.name}" />
19 <property name="cpnts.tests.src.dir" value="${base.dir}/${cpnts.name}.Tests" />
20 <property name="test.assembly.name" value="${cpnts.name}.Tests.dll" />
22 <property name="version" value="0.0.1.0" />
24 <target name="init">
25 <delete dir="${bin.dir}" failonerror="false" />
26 <mkdir dir="${bin.dir}" />
28 <nant buildfile="${base.dir}/../../copy-tasks.xml" target="copy-container" inheritall="true" />
29 <nant buildfile="${base.dir}/../../copy-tasks.xml" target="copy-netron" inheritall="true" />
31 <copy todir="${bin.dir}">
32 <fileset basedir="${library.dir}">
33 <include name="*.dll" />
34 </fileset>
35 </copy>
36 </target>
38 <target name="build" depends="init, cpnts, generator.compile, copytobuilddir" />
40 <target name="copytobuilddir">
41 <copy todir="${build.dir}">
42 <fileset basedir="${bin.dir}">
43 <include name="${generator.assembly.name}" />
44 <include name="${generator.name}.xml" />
45 <include name="${cpnts.assembly.name}" />
46 <include name="${cpnts.name}.xml" />
47 <include name="ADODB.dll" />
48 <include name="MSDASC.dll" />
49 <include name="WeifenLuo.WinFormsUI.Docking.dll" />
50 </fileset>
51 </copy>
52 </target>
54 <target name="cpnts" depends="cpnts.compile, cpnts.tests.compile, cpnts.tests.run" />
56 <target name="generator.compile">
57 <csc
58 target="winexe"
59 debug="${debug}"
60 optimize="${optimize}"
61 output="${bin.dir}/${generator.assembly.name}">
63 <nowarn>
64 <warning number="1591" />
65 <warning number="1572" />
66 </nowarn>
68 <sources basedir="${generator.src.dir}" defaultexcludes="true">
69 <include name="**/*.cs" />
70 </sources>
72 <resources basedir="${generator.src.dir}" dynamicprefix="true">
73 <include name="**/*.resx" />
74 <include name="**/*.gif" />
75 </resources>
77 <references>
78 <include name="${bin.dir}/*.dll" />
79 <include name="System.Drawing.dll" />
80 <include name="System.Windows.Forms.dll" />
81 <include name="System.XML.dll" />
82 <include name="System.Data.dll" />
83 </references>
84 </csc>
85 </target>
87 <target name="cpnts.compile">
88 <csc
89 define="${strong}"
90 target="library"
91 debug="${debug}"
92 output="${bin.dir}/${cpnts.assembly.name}">
94 <sources basedir="${cpnts.src.dir}" defaultexcludes="true">
95 <include name="**/*.cs" />
96 </sources>
98 <references>
99 <include name="System.Drawing.dll" />
100 <include name="System.Windows.Forms.dll" />
101 <include name="System.Data.dll" />
102 </references>
103 </csc>
104 </target>
106 <target name="cpnts.tests.compile" depends="cpnts.compile">
107 <csc
108 target="library"
109 debug="${debug}"
110 output="${bin.dir}/${cpnts.tests.assembly.name}">
112 <sources basedir="${cpnts.tests.src.dir}" defaultexcludes="true">
113 <include name="**/*.cs" />
114 </sources>
116 <references>
117 <include name="${nunit.framework.dll}" />
118 <include name="${bin.dir}/Castle.Core.dll" />
119 <include name="${bin.dir}/Castle.DynamicProxy.dll" />
120 <include name="${bin.dir}/Castle.MicroKernel.dll" />
121 <include name="${bin.dir}/${cpnts.assembly.name}" />
122 <include name="System.Data.dll" />
123 </references>
124 </csc>
125 </target>
127 <target name="cpnts.tests.run" depends="cpnts.tests.compile">
128 <nunit2 >
129 <formatter type="${nunit.formatter}" />
130 <test assemblyname="${bin.dir}/${cpnts.tests.assembly.name}" />
131 </nunit2>
132 </target>
134 <target name="dist">
135 <zip zipfile="${generator.name}.src.zip">
136 <fileset basedir="${base.dir}">
137 <include name="*.build" />
138 <include name="*.sln" />
139 <include name="${generator.src.dir}/**/*.*" />
140 <include name="${cpnts.src.dir}/**/*.*" />
141 <include name="${cpnts.tests.src.dir}/**/*.*" />
143 <exclude name="**/obj/Debug/*.*" />
144 <exclude name="**/bin/Debug/*.*" />
145 <exclude name="**/*.user" />
146 </fileset>
147 </zip>
149 <zip zipfile="${generator.name}.${version}.zip">
150 <fileset>
151 <include name="${bin.dir}/*.dll" />
152 <include name="${bin.dir}/*.exe" />
153 <include name="${generator.name}.src.zip" />
154 </fileset>
155 </zip>
157 <delete file="${generator.name}.src.zip" />
158 </target>
160 </project>