opensim.build 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0"?>
  2. <project name="OpenSim" default="build" basedir=".">
  3. <description>First nant buildfile for OpenSim</description>
  4. <property name="debug" value="true" overwrite="false" />
  5. <target name="clean" description="remove all generated files">
  6. <delete file="bin/OpenSim.exe" failonerror="false" />
  7. <delete file="bin/OpenSim.pdb" failonerror="false" />
  8. </target>
  9. <target name="svnupdate" description="updates to latest SVN">
  10. <exec program="svn">
  11. <arg value="update" />
  12. </exec>
  13. </target>
  14. <target name="upgrade" description="updates from SVN and then builds" depends="clean,svnupdate,build">
  15. </target>
  16. <target name="build" description="compiles the source code">
  17. <exec program="genvers.sh" />
  18. <loadfile file="VERSION" property="svnver"/>
  19. <asminfo output="src/AssemblyInfo.cs" language="CSharp">
  20. <imports>
  21. <import namespace="System" />
  22. <import namespace="System.Reflection" />
  23. <import namespace="System.Runtime.InteropServices" />
  24. </imports>
  25. <attributes>
  26. <attribute type="ComVisibleAttribute" value="false" />
  27. <attribute type="CLSCompliantAttribute" value="false" />
  28. <attribute type="AssemblyVersionAttribute" value="${svnver}" />
  29. <attribute type="AssemblyTitleAttribute" value="opensim" />
  30. <attribute type="AssemblyDescriptionAttribute" value="The C# implementation of the simulator portion of OGS" />
  31. <attribute type="AssemblyCopyrightAttribute" value="Copyright © OGS development team 2007"/>
  32. </attributes>
  33. </asminfo>
  34. <nant>
  35. <buildfiles>
  36. <include name="**/default.build" />
  37. <exclude name="${project::get-buildfile-path()}" />
  38. </buildfiles>
  39. </nant>
  40. <csc target="exe" output="bin/OpenSim.exe" debug="${debug}" verbose="true" warninglevel="4">
  41. <references basedir="bin/" failonempty="true">
  42. <include name="System" />
  43. <include name="System.Data" />
  44. <include name="System.Xml" />
  45. <include name="Axiom.MathLib.dll" />
  46. <include name="libsecondlife.dll" />
  47. <include name="log4net.dll" />
  48. <include name="Db4objects.Db4o.dll" />
  49. </references>
  50. <sources basedir="src/">
  51. <include name="AssemblyInfo.cs" />
  52. <include name="Config.cs" />
  53. <include name="VersionInfo.cs" />
  54. <include name="Util.cs" />
  55. <include name="types/*.cs" />
  56. <include name="world/*.cs" />
  57. <include name="OpenSimClient.cs" />
  58. <include name="Main.cs" />
  59. </sources>
  60. </csc>
  61. </target>
  62. </project>