aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/opensim.build
blob: a08a4865251b66a46893ed37e5ee5b3651358710 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0"?>
    <project name="OpenSim" default="build" basedir=".">
        <description>nant buildfile for OpenSim</description>
        <property name="debug" value="true" overwrite="false" />
        <target name="clean" description="remove all generated files">
            <delete file="bin/OpenSim.exe" failonerror="false" />
	    <delete file="bin/OpenSim.pdb" failonerror="false" />
        </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">

	<exec program="genvers.sh" />
	<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="opensim" />
			<attribute type="AssemblyDescriptionAttribute" value="The C# implementation of the simulator portion of OGS" />
			<attribute type="AssemblyCopyrightAttribute" value="Copyright © OGS development team 2007"/>
		</attributes>
	</asminfo>

	<nant>
    		<buildfiles>
        		<include name="src/GridInterfaces/default.build" />
			<include name="src/ServerConsole/default.build" />
			<include name="src/LocalServers/default.build" />
			<include name="src/RemoteServers/default.build" />
			<include name="src/physics/default.build" />
			<include name="src/physics/plugins/default.build" />
			<include name="src/LocalStorage/default.build" />
		</buildfiles>
	</nant>

	<csc target="exe" output="bin/OpenSim.exe" debug="${debug}" verbose="true" warninglevel="4">
			<references basedir="bin/" failonempty="true">
				<include name="System" />
				<include name="System.Data" />
				<include name="System.Xml" />
				<include name="Axiom.MathLib.dll" />
				<include name="libsecondlife.dll" />
				<include name="log4net.dll" />
				<include name="Db4objects.Db4o.dll" />
				<include name="ServerConsole.dll" />
				<include name="GridInterfaces.dll" />
				<include name="PhysicsManager.dll" />
			</references>
			<sources basedir="src/">
				<include name="*.cs" />
				<include name="types/*.cs" />
				<include name="world/*.cs" />
				<include name="GridServers/*.cs" />
				<include name="Assets/*.cs" />
				<include name="CAPS/*.cs" />
			</sources>
		</csc>

	<nant>
		<buildfiles>
			<include name="src/Config/default.build" />
		</buildfiles>
	</nant>
	</target>
</project>