Files
Tippy/build.xml
Julien Lengrand-Lambert 18d90b8f7e Adds run example target in Ant
2011-12-06 13:40:35 +01:00

49 lines
1.5 KiB
XML

<project name="Tippy" default="tests" basedir=".">
<taskdef resource="pyAntTasks.properties"/>
<property name="base.dir" value="."/>
<property name="src.dir" value="tippy"/>
<property name="ex.dir" value="examples"/>
<property name="tests.dir" value="tippy/tests"/>
<property name="doc.dir" value="doc"/>
<!--Clean Project -->
<target name="clean project">
<delete>
<fileset dir="${doc.dir}" includes="**/*"/>
</delete>
</target>
<!--Compiling sources -->
<target name="compile all">
<py-compile dir="${src.dir}" pythonpath="${src.dir}" optimize="0"/>
</target>
<target name="compile examples">
<py-compile dir="${ex.dir}" pythonpath="${ex.dir}" optimize="0"/>
</target>
<target name="compile tests">
<py-compile dir="${tests.dir}" pythonpath="${tests.dir}" optimize="0"/>
</target>
<!--Run all tests -->
<target name="tests">
<py-test pythonpath="${base.dir}" dir="${src.dir}">
<fileset dir="${src.dir}">
<include name="*/test_*"/>
</fileset>
</py-test>
</target>
<!--Run all examples -->
<target name="run examples">
<!--TODO -->
<py-run script="${ex.dir}/region_growing.py" pythonpath="${base.dir}" optimize="0">
</py-run>
</target>
<!-- Generate Documentation -->
<target name="pydoc generation">
<py-doc pythonpath="${base.dir}" destdir="${doc.dir}">
<fileset dir="${base.dir}">
<include name="**/*"/>
</fileset>
</py-doc>
</target>
<!-- Build Executable -->
<!--TODO -->
</project>