Files
Tippy/build.xml
Julien Lengrand-Lambert e89264db54 Adds documentation generation.
Adds automatic project cleaning. 

TODO :
Function to simply draw histograms. 
Fucntion to create simple overlays. 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrandlambert.fr>
2011-12-05 22:20:40 +01:00

43 lines
1.3 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>
<!-- 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>