<?xml version="1.0" ?>
<project name="OpenSim.Region.ScriptEngine.Shared.YieldProlog" 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.Region.ScriptEngine.Shared.YieldProlog" dynamicprefix="true" >
            </resources>
            <sources failonempty="true">
                <include name="Atom.cs" />
                <include name="BagofAnswers.cs" />
                <include name="FindallAnswers.cs" />
                <include name="Functor.cs" />
                <include name="Functor1.cs" />
                <include name="Functor2.cs" />
                <include name="Functor3.cs" />
                <include name="IndexedAnswers.cs" />
                <include name="ListPair.cs" />
                <include name="Parser.cs" />
                <include name="PrologException.cs" />
                <include name="UndefinedPredicateException.cs" />
                <include name="Variable.cs" />
                <include name="YP.cs" />
                <include name="YPCompiler.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/Nini.dll" />
                <include name="../../../../../../../bin/Nini.dll" />
                <include name="../../../../../../../bin/OpenMetaverseTypes.dll" />
                <include name="../../../../../../../bin/OpenSim.exe" />
                <include name="../../../../../../../bin/OpenSim.Framework.dll" />
                <include name="../../../../../../../bin/OpenSim.Framework.Communications.dll" />
                <include name="../../../../../../../bin/OpenSim.Framework.Console.dll" />
                <include name="../../../../../../../bin/OpenSim.Region.Environment.dll" />
                <include name="../../../../../../../bin/OpenSim.Region.ScriptEngine.Shared.dll" />
                <include name="../../../../../../../bin/RAIL.dll" />
                <include name="System.dll" />
                <include name="System.Data.dll" />
                <include name="System.Web.dll" />
                <include name="System.Xml.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>
