default.build 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0"?>
  2. <project name="UserServer" 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-UserServer" />
  33. <attribute type="AssemblyDescriptionAttribute" value="The core OGS User Server" />
  34. <attribute type="AssemblyCopyrightAttribute" value="Copyright © OGS development team 2007"/>
  35. </attributes>
  36. </asminfo>
  37. <csc target="exe" output="bin/UserServer.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="src/*.cs" />
  48. </sources>
  49. </csc>
  50. <copy todir="bin/">
  51. <fileset basedir="../common/bin">
  52. <include name="*.*" />
  53. </fileset>
  54. </copy>
  55. </target>
  56. </project>