<?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="AgentCiruitData.cs" />
                <include name="AgentInventory.cs" />
                <include name="AssetBase.cs" />
                <include name="BlockingQueue.cs" />
                <include name="HeightMapGenHills.cs" />
                <include name="IAssetServer.cs" />
                <include name="IConfig.cs" />
                <include name="IGenericConfig.cs" />
                <include name="IGridConfig.cs" />
                <include name="IGridServer.cs" />
                <include name="ILocalStorage.cs" />
                <include name="IScriptAPI.cs" />
                <include name="IScriptEngine.cs" />
                <include name="IUserConfig.cs" />
                <include name="IUserServer.cs" />
                <include name="LocalGridBase.cs" />
                <include name="Login.cs" />
                <include name="LoginService.cs" />
                <include name="NeighbourInfo.cs" />
                <include name="OSVector3.cs" />
                <include name="PrimData.cs" />
                <include name="RemoteGridBase.cs" />
                <include name="SimProfile.cs" />
                <include name="SimProfileBase.cs" />
                <include name="UserProfile.cs" />
                <include name="UserProfileManager.cs" />
                <include name="UserProfileManagerBase.cs" />
                <include name="Util.cs" />
                <include name="Properties/AssemblyInfo.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/Db4objects.Db4o.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>