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