<?xml version="1.0" ?>
<project name="OpenSim.Data" 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}" flatten="true">
            <fileset basedir="${project::get-base-directory()}">
            </fileset>
        </copy>
        <copy todir="${project::get-base-directory()}/${build.dir}">
            <fileset basedir=".">
            </fileset>
        </copy>
        <csc target="library" debug="${build.debug}" unsafe="False" warnaserror="False" define="TRACE;DEBUG" main="" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll">
            <resources prefix="OpenSim.Data" dynamicprefix="true" >
            </resources>
            <sources failonempty="true">
                <include name="AssetDataBase.cs" />
                <include name="DataStoreBase.cs" />
                <include name="GridDataBase.cs" />
                <include name="IGridData.cs" />
                <include name="ILogData.cs" />
                <include name="IniConfig.cs" />
                <include name="InventoryDataBase.cs" />
                <include name="Migration.cs" />
                <include name="OpenSimDataReader.cs" />
                <include name="OpenSimDatabaseConnector.cs" />
                <include name="OpenSimObjectFieldMapper.cs" />
                <include name="OpenSimTableMapper.cs" />
                <include name="PrimitiveBaseShapeTableMapper.cs" />
                <include name="RegionProfileData.cs" />
                <include name="ReservationData.cs" />
                <include name="UserDataBase.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/log4net.dll" />
                <include name="../../bin/Mono.Addins.dll" />
                <include name="../../bin/OpenMetaverse.dll" />
                <include name="../../bin/OpenMetaverseTypes.dll" />
                <include name="../../bin/OpenSim.Data.Base.dll" />
                <include name="../../bin/OpenSim.Framework.dll" />
                <include name="System.dll" />
                <include name="System.Data.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"/>
                <include name="*.mdb" if='${build.debug}'/>
            </fileset>
        </copy>
    </target>
    <target name="clean">
        <delete dir="${obj.dir}" failonerror="false" />
        <delete dir="${bin.dir}" failonerror="false" />
    </target>
    <target name="doc" description="Creates documentation.">
    </target>
</project>
