OpenSim.build 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?xml version="1.0" ?>
  2. <project name="OpenSim" 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="Servers/OpenSim.Servers.dll.build" target="clean" />
  40. <nant buildfile="OpenSim.Framework.Console/OpenSim.Framework.Console.dll.build" target="clean" />
  41. <nant buildfile="OpenSim.Config/SimConfigDb4o/OpenSim.Config.SimConfigDb4o.dll.build" target="clean" />
  42. <nant buildfile="OpenGridServices.UserServer/OpenGridServices.UserServer.exe.build" target="clean" />
  43. <nant buildfile="OpenSim.GridInterfaces/Remote/OpenSim.GridInterfaces.Remote.dll.build" target="clean" />
  44. <nant buildfile="OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build" target="clean" />
  45. <nant buildfile="OpenSim.Framework/OpenSim.Framework.dll.build" target="clean" />
  46. <nant buildfile="OpenGridServices.GridServer/OpenGridServices.GridServer.exe.build" target="clean" />
  47. <nant buildfile="OpenSim.Physics/OdePlugin/OpenSim.Physics.OdePlugin.dll.build" target="clean" />
  48. <nant buildfile="OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.dll.build" target="clean" />
  49. <nant buildfile="OpenSim/OpenSim.exe.build" target="clean" />
  50. <nant buildfile="OpenSim.RegionServer/OpenSim.RegionServer.dll.build" target="clean" />
  51. <nant buildfile="OpenSim.Physics/Manager/OpenSim.Physics.Manager.dll.build" target="clean" />
  52. <nant buildfile="OpenSim.GridInterfaces/Local/OpenSim.GridInterfaces.Local.dll.build" target="clean" />
  53. <nant buildfile="OpenSim.Physics/PhysXPlugin/OpenSim.Physics.PhysXPlugin.dll.build" target="clean" />
  54. </target>
  55. <target name="build" depends="init" description="">
  56. <nant buildfile="OpenSim.Framework/OpenSim.Framework.dll.build" target="build" />
  57. <nant buildfile="OpenSim.Framework.Console/OpenSim.Framework.Console.dll.build" target="build" />
  58. <nant buildfile="OpenSim.Framework/OpenSim.Framework.dll.build" target="build" />
  59. <nant buildfile="Servers/OpenSim.Servers.dll.build" target="build" />
  60. <nant buildfile="OpenGridServices.GridServer/OpenGridServices.GridServer.exe.build" target="build" />
  61. <nant buildfile="OpenGridServices.UserServer/OpenGridServices.UserServer.exe.build" target="build" />
  62. <nant buildfile="OpenSim.Physics/Manager/OpenSim.Physics.Manager.dll.build" target="build" />
  63. <nant buildfile="OpenSim.Config/SimConfigDb4o/OpenSim.Config.SimConfigDb4o.dll.build" target="build" />
  64. <nant buildfile="OpenSim.GridInterfaces/Local/OpenSim.GridInterfaces.Local.dll.build" target="build" />
  65. <nant buildfile="OpenSim.GridInterfaces/Remote/OpenSim.GridInterfaces.Remote.dll.build" target="build" />
  66. <nant buildfile="OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.dll.build" target="build" />
  67. <nant buildfile="OpenSim.Physics/PhysXPlugin/OpenSim.Physics.PhysXPlugin.dll.build" target="build" />
  68. <nant buildfile="OpenSim.Physics/OdePlugin/OpenSim.Physics.OdePlugin.dll.build" target="build" />
  69. <nant buildfile="OpenSim.RegionServer/OpenSim.RegionServer.dll.build" target="build" />
  70. <nant buildfile="OpenSim/OpenSim.exe.build" target="build" />
  71. <nant buildfile="OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build" target="build" />
  72. </target>
  73. <target name="build-release" depends="Release, init, build" description="Builds in Release mode" />
  74. <target name="build-debug" depends="Debug, init, build" description="Builds in Debug mode" />
  75. <target name="package" depends="clean, doc" description="Builds all" />
  76. <target name="doc" depends="build-release">
  77. <echo message="Generating all documentation from all builds" />
  78. <nant buildfile="Servers/OpenSim.Servers.dll.build" target="doc" />
  79. <nant buildfile="OpenSim.Framework.Console/OpenSim.Framework.Console.dll.build" target="doc" />
  80. <nant buildfile="OpenSim.Config/SimConfigDb4o/OpenSim.Config.SimConfigDb4o.dll.build" target="doc" />
  81. <nant buildfile="OpenGridServices.UserServer/OpenGridServices.UserServer.exe.build" target="doc" />
  82. <nant buildfile="OpenSim.GridInterfaces/Remote/OpenSim.GridInterfaces.Remote.dll.build" target="doc" />
  83. <nant buildfile="OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build" target="doc" />
  84. <nant buildfile="OpenSim.Framework/OpenSim.Framework.dll.build" target="doc" />
  85. <nant buildfile="OpenGridServices.GridServer/OpenGridServices.GridServer.exe.build" target="doc" />
  86. <nant buildfile="OpenSim.Physics/OdePlugin/OpenSim.Physics.OdePlugin.dll.build" target="doc" />
  87. <nant buildfile="OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.dll.build" target="doc" />
  88. <nant buildfile="OpenSim/OpenSim.exe.build" target="doc" />
  89. <nant buildfile="OpenSim.RegionServer/OpenSim.RegionServer.dll.build" target="doc" />
  90. <nant buildfile="OpenSim.Physics/Manager/OpenSim.Physics.Manager.dll.build" target="doc" />
  91. <nant buildfile="OpenSim.GridInterfaces/Local/OpenSim.GridInterfaces.Local.dll.build" target="doc" />
  92. <nant buildfile="OpenSim.Physics/PhysXPlugin/OpenSim.Physics.PhysXPlugin.dll.build" target="doc" />
  93. </target>
  94. </project>