1 1.1 christos <?xml version="1.0" encoding="utf-8" ?> 2 1.1 christos <project name="DotZLib" default="build" basedir="./DotZLib"> 3 1.1 christos <description>A .Net wrapper library around ZLib1.dll</description> 4 1.1 christos 5 1.1 christos <property name="nunit.location" value="c:/program files/NUnit V2.1/bin" /> 6 1.1 christos <property name="build.root" value="bin" /> 7 1.1.1.2 christos 8 1.1 christos <property name="debug" value="true" /> 9 1.1 christos <property name="nunit" value="true" /> 10 1.1 christos 11 1.1 christos <property name="build.folder" value="${build.root}/debug/" if="${debug}" /> 12 1.1 christos <property name="build.folder" value="${build.root}/release/" unless="${debug}" /> 13 1.1 christos 14 1.1 christos <target name="clean" description="Remove all generated files"> 15 1.1 christos <delete dir="${build.root}" failonerror="false" /> 16 1.1 christos </target> 17 1.1 christos 18 1.1 christos <target name="build" description="compiles the source code"> 19 1.1.1.2 christos 20 1.1 christos <mkdir dir="${build.folder}" /> 21 1.1 christos <csc target="library" output="${build.folder}DotZLib.dll" debug="${debug}"> 22 1.1 christos <references basedir="${nunit.location}"> 23 1.1 christos <includes if="${nunit}" name="nunit.framework.dll" /> 24 1.1 christos </references> 25 1.1 christos <sources> 26 1.1 christos <includes name="*.cs" /> 27 1.1 christos <excludes name="UnitTests.cs" unless="${nunit}" /> 28 1.1 christos </sources> 29 1.1 christos <arg value="/d:nunit" if="${nunit}" /> 30 1.1 christos </csc> 31 1.1 christos </target> 32 1.1 christos 33 1.1 christos </project>