<?xml version="1.0" ?>
<project name="OpenSim.Framework" 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.Framework" dynamicprefix="true" >
            </resources>
            <sources failonempty="true">
                <include name="AgentInventory.cs" />
                <include name="AuthenticateSessionBase.cs" />
                <include name="BlockingQueue.cs" />
                <include name="IRegionCommsListener.cs" />
                <include name="LoginService.cs" />
                <include name="RegionCommsListener.cs" />
                <include name="Remoting.cs" />
                <include name="SimProfile.cs" />
                <include name="UserProfile.cs" />
                <include name="Util.cs" />
                <include name="Interfaces/AuthenticateResponse.cs" />
                <include name="Interfaces/IAssetServer.cs" />
                <include name="Interfaces/IClientAPI.cs" />
                <include name="Interfaces/ILocalStorage.cs" />
                <include name="Interfaces/IUserServer.cs" />
                <include name="Interfaces/IWorld.cs" />
                <include name="Interfaces/Config/IGenericConfig.cs" />
                <include name="Interfaces/Config/IGridConfig.cs" />
                <include name="Interfaces/Config/IUserConfig.cs" />
                <include name="Properties/AssemblyInfo.cs" />
                <include name="Types/AgentCiruitData.cs" />
                <include name="Types/AgentWearable.cs" />
                <include name="Types/AssetBase.cs" />
                <include name="Types/AssetLandmark.cs" />
                <include name="Types/AssetStorage.cs" />
                <include name="Types/EstateSettings.cs" />
                <include name="Types/Login.cs" />
                <include name="Types/MapBlockData.cs" />
                <include name="Types/NeighbourInfo.cs" />
                <include name="Types/NetworkServersInfo.cs" />
                <include name="Types/ParcelData.cs" />
                <include name="Types/PrimData.cs" />
                <include name="Types/PrimitiveBaseShape.cs" />
                <include name="Types/RegionHandle.cs" />
                <include name="Types/RegionInfo.cs" />
                <include name="Types/UUID.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="../../../bin/Db4objects.Db4o.dll" />
                <include name="../../../bin/libsecondlife.dll" />
                <include name="../../../bin/OpenSim.Framework.Console.dll" />
                <include name="System.dll" />
                <include name="System.Xml.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>