-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
31 lines (29 loc) · 1.32 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="dist" name="ant-javacard build">
<!-- Build and load the JavaCard task -->
<target name="jcpro">
<tempfile property="jcpro.tmp" destdir="${java.io.tmpdir}" prefix="jcpro" deleteonexit="true"/>
<mkdir dir="${jcpro.tmp}"/>
<javac srcdir="src/pro/javacard/ant" destdir="${jcpro.tmp}" includeantruntime="true" target="1.7" source="1.7">
<compilerarg value="-Xlint:all"/>
</javac>
<!-- Load the fresh task -->
<taskdef name="javacard" classname="pro.javacard.ant.JavaCard" classpath="${jcpro.tmp}"/>
</target>
<!-- Package it into a JAR -->
<target name="dist" depends="jcpro">
<jar destfile="ant-javacard.jar" basedir="${jcpro.tmp}"/>
<!-- Now this JAR can be used in your build.xml by placing the jar to -->
<!-- lib folder and having the following in your target: -->
<!-- <taskdef name="javacard" classname="pro.javacard.ant.JavaCard" classpath="lib/ant-javacard.jar"/> -->
</target>
<property name="JC304" value="ext/jc304_kit/"/>
<!-- Build test applets -->
<target name="curve" depends="jcpro">
<javacard>
<cap jckit="${JC304}" output="curve25519.cap" sources="src/curve25519">
<applet class="curve25519.Curve25519Test" aid="c1c2c3c4c5c6c7c8"/>
</cap>
</javacard>
</target>
</project>