mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 16:29:34 +00:00
56 lines
1.6 KiB
XML
56 lines
1.6 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-small.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 file="${cooja_avrora_jar}"/>
|
|
</target>
|
|
|
|
<target name="compile" depends="init">
|
|
<javac srcdir="${src}" destdir="${build}" debug="on">
|
|
<classpath>
|
|
<pathelement location="${avrora_jar}"/>
|
|
<pathelement location="${cooja_jar}"/>
|
|
<pathelement location="${cooja}/apps/mspsim/build"/>
|
|
</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>
|