default.build revision 324c4644fee44b9898524c09511bd33c3f12e2df
1<?xml version="1.0"?> 2<project name="ANTLR C# Runtime Utility Library" default="build"> 3 <tstamp/> 4 <property name="base.dir" value="${path::get-full-path( project::get-base-directory() )}" /> 5 6 <include buildfile="/antlr3.runtime.net.common.inc" /> 7 8 <property name="version" value="0.1" /> 9 10 <property name="name" value="Antlr3.Utility" /> 11 <property name="assembly.name" value="${name}.dll" /> 12 <property name="src.dir" value="${base.dir}/" /> 13 14 <property name="debug" value="true" unless="${property::exists('debug')}" /> 15 16 <echo message="Building project: '${name}' version ${version} ==> '${assembly.name}'"/> 17 18 <target name="release" depends="clean" description="build non-debug version"> 19 <!-- build a clean release distribution for release --> 20 <property name="debug" value="false"/> 21 <echo message="Debug = ${debug}"/> 22 <call target="build"/> 23 </target> 24 25 <target name="build" depends="init, compile" description="compiles the source code"> 26 </target> 27 28 <target name="init" depends="clean"> 29 </target> 30 31 <target name="clean"> 32 </target> 33 34 <target name="clean.vsnet" description="cleans up VS.NET build artifacts and output"> 35 <!-- delete VS.NET project artifacts directory --> 36 <echo message="Deleting VS.NET artifacts directory '${base.dir}/bin'" /> 37 <delete dir="${base.dir}/bin" failonerror="false" /> 38 <echo message="Deleting VS.NET artifacts directory '${base.dir}/obj'" /> 39 <delete dir="${base.dir}/obj" failonerror="false" /> 40 </target> 41 42 <target name="compile" depends="init"> 43 <csc 44 define="${strong_name};${dotnet_define}" 45 target="library" 46 debug="${debug}" 47 optimize="${optimize}" 48 output="${build.working.dir}/${assembly.name}" 49 doc="${build.working.dir}/${name}.xml"> 50 51 <nowarn> 52 <warning number="1591" /> 53 <warning number="1572" /> 54 </nowarn> 55 56 <resources prefix="Antlr.Utility" dynamicprefix="true"> 57 <include name="**/*.resx" /> 58 </resources> 59 60 <sources basedir="${src.dir}" defaultexcludes="true"> 61 <include name="**/*.cs" /> 62 </sources> 63 64 <references> 65 <include name="${build.working.dir}/Antlr3.Runtime.dll" /> 66 <include name="${build.working.dir}/StringTemplate.dll" /> 67 <include name="${build.working.dir}/antlr.runtime.dll" /> 68 </references> 69 </csc> 70 </target> 71 72 <target name="docs"> 73 </target> 74 75 <target name="dist" depends="docs"> 76 </target> 77 78</project> 79