<?xml version="1.0"?>
<project name="PNUnitAgent" default="build" basedir=".">

  <patternset id="source-files">
        <include name="agent.cs"/>
        <include name="AgentConfig.cs"/>
        <include name="AssemblyInfo.cs"/>
        <include name="PNUnitTestRunner.cs"/>
  </patternset>

  <target name="build">

    <csc target="exe"
        output="${current.build.dir}/pnunit-agent.exe"
        debug="${build.debug}" 
        define="${build.defines}">
      <sources basedir=".">
        <patternset refid="source-files"/>
      </sources>
      <references>
        <include name="System.Runtime.Remoting.dll"/>
	<include name="${current.framework.dir}/pnunit.framework.dll"/>
        <include name="${current.lib.dir}/nunit.core.dll"/>
        <include name="${current.lib.dir}/nunit.core.interfaces.dll"/>
        <include name="${current.lib.dir}/nunit.util.dll"/>
        <include name="${current.lib.dir}/log4net.dll"/>
      </references>
    </csc>

    <copy file="Ship.config"
      tofile="${current.build.dir}/pnunit-agent.exe.config"/>

  </target>

  <target name="package">
    <copy todir="${package.src.dir}/PNUnit/agent">
      <fileset>
        <patternset refid="source-files"/>
        <include name="App.ico"/>
        <include name="App.config"/>
        <include name="Ship.config"/>
        <include name="pnunit-agent.csproj"/>
        <include name="pnunit-agent.build"/>
      </fileset>
    </copy>
  </target>

</project>
