OpenGridServices.build 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" ?>
  2. <project name="OpenGridServices" 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. <target name="Debug" description="">
  9. <property name="project.config" value="Debug" />
  10. <property name="build.debug" value="true" />
  11. </target>
  12. <property name="project.config" value="Release" />
  13. <target name="Release" description="">
  14. <property name="project.config" value="Release" />
  15. <property name="build.debug" value="false" />
  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="OpenGridServices/OpenUser.Config/UserConfigDb4o/OpenUser.Config.UserConfigDb4o.dll.build" target="clean" />
  40. <nant buildfile="OpenGridServices/OpenGridServices.AssetServer/OpenGridServices.AssetServer.exe.build" target="clean" />
  41. <nant buildfile="OpenGridServices/OpenGrid.Config/GridConfigDb4o/OpenGrid.Config.GridConfigDb4o.dll.build" target="clean" />
  42. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data.SQLite/OpenGrid.Framework.Data.SQLite.dll.build" target="clean" />
  43. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data.DB4o/OpenGrid.Framework.Data.DB4o.dll.build" target="clean" />
  44. <nant buildfile="OpenGridServices/ServiceManager/ServiceManager.exe.build" target="clean" />
  45. <nant buildfile="OpenGridServices/OpenGrid.Framework.Manager/OpenGrid.Framework.Manager.dll.build" target="clean" />
  46. <nant buildfile="OpenGridServices/OpenGridServices.GridServer/OpenGridServices.GridServer.exe.build" target="clean" />
  47. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data.MSSQL/OpenGrid.Framework.Data.MSSQL.dll.build" target="clean" />
  48. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data/OpenGrid.Framework.Data.dll.build" target="clean" />
  49. <nant buildfile="OpenGridServices/OpenGridServices.InventoryServer/OpenGridServices.InventoryServer.exe.build" target="clean" />
  50. <nant buildfile="OpenGridServices/OpenGridServices.UserServer/OpenGridServices.UserServer.exe.build" target="clean" />
  51. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data.MySQL/OpenGrid.Framework.Data.MySQL.dll.build" target="clean" />
  52. </target>
  53. <target name="build" depends="init" description="">
  54. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data/OpenGrid.Framework.Data.dll.build" target="build" />
  55. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data.MySQL/OpenGrid.Framework.Data.MySQL.dll.build" target="build" />
  56. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data.DB4o/OpenGrid.Framework.Data.DB4o.dll.build" target="build" />
  57. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data.MSSQL/OpenGrid.Framework.Data.MSSQL.dll.build" target="build" />
  58. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data.SQLite/OpenGrid.Framework.Data.SQLite.dll.build" target="build" />
  59. <nant buildfile="OpenGridServices/OpenGrid.Framework.Manager/OpenGrid.Framework.Manager.dll.build" target="build" />
  60. <nant buildfile="OpenGridServices/ServiceManager/ServiceManager.exe.build" target="build" />
  61. <nant buildfile="OpenGridServices/OpenGridServices.GridServer/OpenGridServices.GridServer.exe.build" target="build" />
  62. <nant buildfile="OpenGridServices/OpenGridServices.AssetServer/OpenGridServices.AssetServer.exe.build" target="build" />
  63. <nant buildfile="OpenGridServices/OpenGridServices.InventoryServer/OpenGridServices.InventoryServer.exe.build" target="build" />
  64. <nant buildfile="OpenGridServices/OpenGridServices.UserServer/OpenGridServices.UserServer.exe.build" target="build" />
  65. <nant buildfile="OpenGridServices/OpenGrid.Config/GridConfigDb4o/OpenGrid.Config.GridConfigDb4o.dll.build" target="build" />
  66. <nant buildfile="OpenGridServices/OpenUser.Config/UserConfigDb4o/OpenUser.Config.UserConfigDb4o.dll.build" target="build" />
  67. </target>
  68. <target name="build-release" depends="Release, init, build" description="Builds in Release mode" />
  69. <target name="build-debug" depends="Debug, init, build" description="Builds in Debug mode" />
  70. <target name="package" depends="clean, doc" description="Builds all" />
  71. <target name="doc" depends="build-release">
  72. <echo message="Generating all documentation from all builds" />
  73. <nant buildfile="OpenGridServices/OpenUser.Config/UserConfigDb4o/OpenUser.Config.UserConfigDb4o.dll.build" target="doc" />
  74. <nant buildfile="OpenGridServices/OpenGridServices.AssetServer/OpenGridServices.AssetServer.exe.build" target="doc" />
  75. <nant buildfile="OpenGridServices/OpenGrid.Config/GridConfigDb4o/OpenGrid.Config.GridConfigDb4o.dll.build" target="doc" />
  76. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data.SQLite/OpenGrid.Framework.Data.SQLite.dll.build" target="doc" />
  77. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data.DB4o/OpenGrid.Framework.Data.DB4o.dll.build" target="doc" />
  78. <nant buildfile="OpenGridServices/ServiceManager/ServiceManager.exe.build" target="doc" />
  79. <nant buildfile="OpenGridServices/OpenGrid.Framework.Manager/OpenGrid.Framework.Manager.dll.build" target="doc" />
  80. <nant buildfile="OpenGridServices/OpenGridServices.GridServer/OpenGridServices.GridServer.exe.build" target="doc" />
  81. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data.MSSQL/OpenGrid.Framework.Data.MSSQL.dll.build" target="doc" />
  82. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data/OpenGrid.Framework.Data.dll.build" target="doc" />
  83. <nant buildfile="OpenGridServices/OpenGridServices.InventoryServer/OpenGridServices.InventoryServer.exe.build" target="doc" />
  84. <nant buildfile="OpenGridServices/OpenGridServices.UserServer/OpenGridServices.UserServer.exe.build" target="doc" />
  85. <nant buildfile="OpenGridServices/OpenGrid.Framework.Data.MySQL/OpenGrid.Framework.Data.MySQL.dll.build" target="doc" />
  86. </target>
  87. </project>