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