-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
31 lines (26 loc) · 995 Bytes
/
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
<project name="SecureBitcoinWalletJavaCardApplet" default="build" basedir=".">
<description>
Creates the .cap file of this applet
</description>
<taskdef name="javacard" classname="pro.javacard.ant.JavaCard" classpath="lib/ant-javacard.jar"/>
<target name="init">
<mkdir dir="./bin"/>
<mkdir dir="./bin/cap"/>
</target>
<target name="build" depends="init"
description="compile the source and build the .cap file">
<javacard>
<cap jckit="/opt/oracle/JCDK3.0.4_ClassicEdition" aid="01020304050607080900" output="./bin/cap/javacard.cap" sources="./src/">
<applet class="de.tum.in.securebitcoinwallet.javacardapplet.SecureBitcoinWalletJavaCardApplet" aid="0102030405060708090000"/>
</cap>
</javacard>
</target>
<target name="clean"
description="clean up">
<delete dir="./bin"/>
</target>
<!-- Trigger reinstall -->
<target name="upload" depends="build">
<exec executable="./scripts/reinstall"/>
</target>
</project>