mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-24 22:32:23 +00:00
55 lines
1.5 KiB
XML
55 lines
1.5 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<project name="Avrora COOJA support" default="jar" basedir=".">
|
|
<property name="src" location="src"/>
|
|
<property name="build" location="build"/>
|
|
<property name="lib" location="lib"/>
|
|
<property name="javadoc" location="javadoc"/>
|
|
<property name="cooja" location="../.."/>
|
|
|
|
<property name="cooja_jar" value="${cooja}/dist/cooja.jar"/>
|
|
<property name="avrora_jar" value="${lib}/avrora.jar"/>
|
|
<property name="cooja_avrora_jar" value="${lib}/cooja_avrora.jar"/>
|
|
|
|
<target name="init">
|
|
<tstamp/>
|
|
<mkdir dir="${build}"/>
|
|
<mkdir dir="${lib}"/>
|
|
</target>
|
|
|
|
<target name="clean">
|
|
<delete dir="${build}"/>
|
|
<delete dir="${lib}"/>
|
|
</target>
|
|
|
|
<target name="compile" depends="init">
|
|
<javac srcdir="${src}" destdir="${build}" debug="on">
|
|
<classpath>
|
|
<pathelement location="${avrora_jar}"/>
|
|
<pathelement location="${cooja_jar}"/>
|
|
</classpath>
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="javadoc" depends="compile">
|
|
<delete dir="${javadoc}" quiet="true"/>
|
|
<mkdir dir="${javadoc}/"/>
|
|
<javadoc destdir="${javadoc}">
|
|
<fileset dir="${src}/" includes="**/*.java"/>
|
|
<classpath>
|
|
<pathelement location="${avrora_jar}"/>
|
|
<pathelement location="${cooja_jar}"/>
|
|
</classpath>
|
|
</javadoc>
|
|
</target>
|
|
|
|
<target name="jar" depends="init, compile">
|
|
<jar destfile="${cooja_avrora_jar}" basedir="${build}">
|
|
<manifest>
|
|
<attribute name="Class-Path" value="."/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
</project>
|