Prebuild.build 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" ?>
  2. <project name="Prebuild" default="build">
  3. <echo message="Using '${nant.settings.currentframework}' Framework"/>
  4. <property name="bin.dir" value="bin" />
  5. <property name="obj.dir" value="obj" />
  6. <property name="doc.dir" value="doc" />
  7. <property name="project.main.dir" value="${project::get-base-directory()}" />
  8. <property name="project.config" value="Release" />
  9. <target name="Release" description="">
  10. <property name="project.config" value="Release" />
  11. <property name="build.debug" value="false" />
  12. </target>
  13. <target name="Debug" description="">
  14. <property name="project.config" value="Debug" />
  15. <property name="build.debug" value="true" />
  16. </target>
  17. <target name="net-1.1" description="Sets framework to .NET 1.1">
  18. <property name="nant.settings.currentframework" value="net-1.1" />
  19. </target>
  20. <target name="net-2.0" description="Sets framework to .NET 2.0">
  21. <property name="nant.settings.currentframework" value="net-2.0" />
  22. </target>
  23. <target name="mono-2.0" description="Sets framework to mono 2.0">
  24. <property name="nant.settings.currentframework" value="mono-2.0" />
  25. </target>
  26. <target name="mono-1.0" description="Sets framework to mono 1.0">
  27. <property name="nant.settings.currentframework" value="mono-1.0" />
  28. </target>
  29. <target name="init" description="">
  30. <call target="${project.config}" />
  31. <sysinfo />
  32. <echo message="Platform ${sys.os.platform}" />
  33. <property name="build.dir" value="${bin.dir}/${project.config}" />
  34. </target>
  35. <target name="clean" description="">
  36. <echo message="Deleting all builds from all configurations" />
  37. <delete dir="${bin.dir}" failonerror="false" />
  38. <delete dir="${obj.dir}" failonerror="false" />
  39. <nant buildfile="src/Prebuild.exe.build" target="clean" />
  40. </target>
  41. <target name="build" depends="init" description="">
  42. <nant buildfile="src/Prebuild.exe.build" target="build" />
  43. </target>
  44. <target name="build-release" depends="Release, init, build" description="Builds in Release mode" />
  45. <target name="build-debug" depends="Debug, init, build" description="Builds in Debug mode" />
  46. <target name="package" depends="clean, doc" description="Builds all" />
  47. <target name="doc" depends="build-release">
  48. <echo message="Generating all documentation from all builds" />
  49. <nant buildfile="src/Prebuild.exe.build" target="doc" />
  50. </target>
  51. </project>