<?xml version="1.0"?>
<project name="Processing Net Library" default="build">
  
  <target name="clean" description="Clean the build directories">
    <delete dir="bin" />
    <delete dir="tool" />
<!--
    <delete file="tool/MovieMaker.jar" />
-->
  </target>

  <target name="compile" description="Compile sources">
<!--
    <condition property="core-built">
      <available file="../../../core/core.jar" />
    </condition>
    <fail unless="core-built" message="Please build the core library first and make sure it sits in ../../../core/core.jar" />
-->
    
    <mkdir dir="bin" />
    <javac target="1.5" 
	   source="1.5"
	   srcdir="src" 
	   destdir="bin" 
	   encoding="UTF-8"
	   includeAntRuntime="false"
	   classpath="../../../../app/bin" />
  </target>

  <target name="build" depends="compile" description="Build Movie Maker Tool">
    <mkdir dir="tool" />
    <jar basedir="bin" destfile="tool/MovieMaker.jar" />
  </target>
</project>
