<?xml version="1.0" ?>
<project name="SmartThreadPool" default="build">
	  <target name="build">
		  <echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
		  <mkdir dir="${project::get-base-directory()}/${build.dir}" />
		  <csc  target="library" debug="${build.debug}" platform="${build.platform}" unsafe="False" warnaserror="False" define="TRACE;DEBUG" nostdlib="False" main="" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.dll" noconfig="true">
			  <resources prefix="SmartThreadPool" dynamicprefix="true" >
			  </resources>
			  <sources failonempty="true">
				  <include name="CallerThreadContext.cs" />
				  <include name="CanceledWorkItemsGroup.cs" />
				  <include name="EventWaitHandle.cs" />
				  <include name="EventWaitHandleFactory.cs" />
				  <include name="Exceptions.cs" />
				  <include name="Interfaces.cs" />
				  <include name="InternalInterfaces.cs" />
				  <include name="PriorityQueue.cs" />
				  <include name="SLExt.cs" />
				  <include name="STPEventWaitHandle.cs" />
				  <include name="STPPerformanceCounter.cs" />
				  <include name="STPStartInfo.cs" />
				  <include name="SmartThreadPool.ThreadEntry.cs" />
				  <include name="SmartThreadPool.cs" />
				  <include name="SynchronizedDictionary.cs" />
				  <include name="WIGStartInfo.cs" />
				  <include name="WorkItem.WorkItemResult.cs" />
				  <include name="WorkItem.cs" />
				  <include name="WorkItemFactory.cs" />
				  <include name="WorkItemInfo.cs" />
				  <include name="WorkItemResultTWrapper.cs" />
				  <include name="WorkItemsGroup.cs" />
				  <include name="WorkItemsGroupBase.cs" />
				  <include name="WorkItemsQueue.cs" />
			  </sources>
			  <references basedir="${project::get-base-directory()}">
				  <lib>
					  <include name="${project::get-base-directory()}" />
					  <include name="${project::get-base-directory()}/../../bin" />
				  </lib>
                <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}'/>
                <include name="*.pdb" if='${build.debug}'/>
            </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>
