Author: gert
Date: 2007-12-04 09:30:02 -0500 (Tue, 04 Dec 2007)
New Revision: 90676

Added:
   trunk/gert/build/common.build
Log:
Added common build script.


Added: trunk/gert/build/common.build
===================================================================
--- trunk/gert/build/common.build       2007-12-04 14:26:52 UTC (rev 90675)
+++ trunk/gert/build/common.build       2007-12-04 14:30:02 UTC (rev 90676)
@@ -0,0 +1,42 @@
+<project name="common.build" default="rebuild">
+       <target name="mono-1.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+       </target>
+
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-1.1">
+               <property name="csc.defines" value="NET_1_0,NET_1_1,ONLY_1_1" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <target name="init">
+               <if test="${not 
target::exists(nant.settings.currentframework)}">
+                       <fail>Framework '${nant.settings.currentframework}' is 
not supported.</fail>
+               </if>
+               <call target="${nant.settings.currentframework}" />
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call target="run-test" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="run-test" depends="init, run" />
+
+       <target name="rebuild" depends="clean, build" />
+</project>


Property changes on: trunk/gert/build/common.build
___________________________________________________________________
Name: svn:eol-style
   + native

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to