DotZLib.build 1.1 KB

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