forked from LedgerHQ/ledger-u2f-javacard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
27 lines (22 loc) · 865 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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="buildcap" name="U2F-Applet">
<!-- Applet building dependencies -->
<property name="JC301" value="extlibs/jc303_kit"/>
<!-- ant-javacard task from javacard.pro -->
<taskdef name="javacard" classname="pro.javacard.ant.JavaCard" classpath="tools/ant-javacard.jar"/>
<!-- CCU2F applet on Sm@rtCafe Expert 7 C3-->
<target name="buildcap">
<delete file="cap/u2f.cap"/>
<javacard jckit="${JC301}">
<cap output="cap/u2f.cap" aid="A000000647" sources="src">
<applet class="de.asdfjkl.u2f.javacard.U2FApplet" aid="A0000006472F0001"/>
</cap>
</javacard>
</target>
<!-- Install Applet -->
<target name="install" depends="buildcap">
<exec executable="cmd">
<arg value="scripts/install+personalize.bat"/>
</exec>
</target>
</project>