aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ogs/userserver/default.build
blob: a56f92538e593f0ae1a85d7f327f902e14cfaba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0"?>
    <project name="UserServer" default="build" basedir="./">
        <property name="debug" value="true" overwrite="false" />
        <target name="clean" description="remove all generated files">
		<delete>
			<fileset failonempty="false">
				<include name="bin/*.dll" />
				<include name="bin/*.exe" />
				<include name="bin/*.mdb" />
			</fileset>
		</delete>
	</target>

	<target name="svnupdate" description="updates to latest SVN">
		<exec program="svn">
			<arg value="update" />
		</exec>
	</target>

	<target name="upgrade" description="updates from SVN and then builds" depends="clean,svnupdate,build">
		
	</target>
	
	<target name="build" description="compiles the source code">
	
	<loadfile file="../VERSION" property="svnver"/>
	<asminfo output="src/AssemblyInfo.cs" language="CSharp">
		<imports>
			<import namespace="System" />
			<import namespace="System.Reflection" />
			<import namespace="System.Runtime.InteropServices" />
		</imports>
		<attributes>
			<attribute type="ComVisibleAttribute" value="false" />
			<attribute type="CLSCompliantAttribute" value="false" />
			<attribute type="AssemblyVersionAttribute" value="${svnver}" />
			<attribute type="AssemblyTitleAttribute" value="ogs-UserServer" />
			<attribute type="AssemblyDescriptionAttribute" value="The core OGS User Server" />
			<attribute type="AssemblyCopyrightAttribute" value="Copyright © OGS development team 2007"/>
		</attributes>
	</asminfo>

	<csc target="exe" output="bin/UserServer.exe" debug="${debug}" verbose="true" warninglevel="4">
			<references failonempty="true">
				<include name="System" />
				<include name="System.Xml" />
				<include name="../common/bin/ServerConsole.dll" />
				<include name="../common/bin/libsecondlife.dll" />
			</references>
			<sources>
				<include name="../common/src/VersionInfo.cs" />
				<include name="../common/src/OGS-Console.cs" />
				<include name="src/*.cs" />
			</sources>
	</csc>
	
	<copy todir="bin/">
    		<fileset basedir="../common/bin">
        		<include name="*.*" />
    		</fileset>
	</copy>
	</target>
</project>