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