default.build 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0"?>
  2. <project name="GridServer" default="build" basedir="./">
  3. <property name="debug" value="true" overwrite="false" />
  4. <target name="clean" description="remove all generated files">
  5. <delete>
  6. <fileset failonempty="false">
  7. <include name="bin/*.dll" />
  8. <include name="bin/*.exe" />
  9. <include name="bin/*.mdb" />
  10. </fileset>
  11. </delete>
  12. </target>
  13. <target name="svnupdate" description="updates to latest SVN">
  14. <exec program="svn">
  15. <arg value="update" />
  16. </exec>
  17. </target>
  18. <target name="upgrade" description="updates from SVN and then builds" depends="clean,svnupdate,build">
  19. </target>
  20. <target name="build" description="compiles the source code">
  21. <loadfile file="../VERSION" property="svnver"/>
  22. <asminfo output="src/AssemblyInfo.cs" language="CSharp">
  23. <imports>
  24. <import namespace="System" />
  25. <import namespace="System.Reflection" />
  26. <import namespace="System.Runtime.InteropServices" />
  27. </imports>
  28. <attributes>
  29. <attribute type="ComVisibleAttribute" value="false" />
  30. <attribute type="CLSCompliantAttribute" value="false" />
  31. <attribute type="AssemblyVersionAttribute" value="${svnver}" />
  32. <attribute type="AssemblyTitleAttribute" value="ogs-GridServer" />
  33. <attribute type="AssemblyDescriptionAttribute" value="The core OGS Grid Server" />
  34. <attribute type="AssemblyCopyrightAttribute" value="Copyright © OGS development team 2007"/>
  35. </attributes>
  36. </asminfo>
  37. <csc target="exe" output="bin/GridServer.exe" debug="${debug}" verbose="true" warninglevel="4">
  38. <references failonempty="true">
  39. <include name="System" />
  40. <include name="System.Xml" />
  41. <include name="../common/bin/ServerConsole.dll" />
  42. <include name="../common/bin/libsecondlife.dll" />
  43. </references>
  44. <sources>
  45. <include name="../common/src/VersionInfo.cs" />
  46. <include name="../common/src/OGS-Console.cs" />
  47. <include name="../common/src/Util.cs" />
  48. <include name="src/*.cs" />
  49. </sources>
  50. </csc>
  51. <copy todir="bin/">
  52. <fileset basedir="../common/bin">
  53. <include name="*.*" />
  54. </fileset>
  55. </copy>
  56. </target>
  57. </project>