<?xml version="1.0" ?>
<project name="OpenSim.RegionServer" default="build">
    <target name="build">
        <echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
        <mkdir dir="${project::get-base-directory()}/${build.dir}" />
        <copy todir="${project::get-base-directory()}/${build.dir}">
            <fileset basedir="${project::get-base-directory()}">
            </fileset>
        </copy>
        <csc target="library" debug="${build.debug}" unsafe="False" define="TRACE;DEBUG" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
            <resources prefix="OpenSim.RegionServer" dynamicprefix="true" >
            </resources>
            <sources failonempty="true">
                <include name="AgentAssetUpload.cs" />
                <include name="Grid.cs" />
                <include name="OpenSimMain.cs" />
                <include name="OpenSimNetworkHandler.cs" />
                <include name="PacketServer.cs" />
                <include name="QueItem.cs" />
                <include name="RegionInfo.cs" />
                <include name="SimClient.cs" />
                <include name="VersionInfo.cs" />
                <include name="Assets/AssetCache.cs" />
                <include name="Assets/InventoryCache.cs" />
                <include name="CAPS/AdminWebFront.cs" />
                <include name="types/Mesh.cs" />
                <include name="types/Triangle.cs" />
                <include name="world/Avatar.cs" />
                <include name="world/AvatarAnimations.cs" />
                <include name="world/AvatarClient.cs" />
                <include name="world/AvatarUpdate.cs" />
                <include name="world/Entity.cs" />
                <include name="world/Primitive.cs" />
                <include name="world/Primitive2.cs" />
                <include name="world/World.cs" />
                <include name="world/WorldPacketHandlers.cs" />
                <include name="world/WorldScripting.cs" />
                <include name="world/scripting/IScriptContext.cs" />
                <include name="world/scripting/IScriptEntity.cs" />
                <include name="world/scripting/IScriptHandler.cs" />
                <include name="world/scripting/Script.cs" />
                <include name="world/scripting/ScriptFactory.cs" />
                <include name="world/scripting/Scripts/FollowRandomAvatar.cs" />
            </sources>
            <references basedir="${project::get-base-directory()}">
                <lib>
                    <include name="${project::get-base-directory()}" />
                    <include name="${project::get-base-directory()}/${build.dir}" />
                </lib>
                <include name="System.dll" />
                <include name="System.Xml.dll" />
                <include name="../bin/libsecondlife.dll" />
                <include name="../bin/Axiom.MathLib.dll" />
                <include name="../bin/Db4objects.Db4o.dll" />
                <include name="../bin/OpenSim.Terrain.BasicTerrain.dll" />
                <include name="../bin/OpenSim.Framework.dll" />
                <include name="../bin/OpenSim.Framework.Console.dll" />
                <include name="../bin/OpenSim.GenericConfig.Xml.dll" />
                <include name="../bin/OpenSim.Physics.Manager.dll" />
                <include name="../bin/OpenSim.Servers.dll" />
                <include name="../bin/XMLRPC.dll" />
            </references>
        </csc>
        <echo message="Copying from [${project::get-base-directory()}/${build.dir}/] to [${project::get-base-directory()}/../bin/" />
        <mkdir dir="${project::get-base-directory()}/../bin/"/>
        <copy todir="${project::get-base-directory()}/../bin/">
            <fileset basedir="${project::get-base-directory()}/${build.dir}/" >
                <include name="*.dll"/>
                <include name="*.exe"/>
            </fileset>
        </copy>
    </target>
    <target name="clean">
        <delete dir="${bin.dir}" failonerror="false" />
        <delete dir="${obj.dir}" failonerror="false" />
    </target>
    <target name="doc" description="Creates documentation.">
    </target>
</project>