-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.xml
111 lines (97 loc) · 4.12 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0" encoding="UTF-8"?>
<project name="javacard-ndef"
default="build"
basedir=".">
<description>JavaCard implementation of an NDEF Type 4 tag</description>
<property name="ext.ant-javacard" value="ext/ant-javacard"/>
<property name="sdk.globalplatform" value="ext/globalplatform-exports"/>
<property name="sdk.jc222" value="ext/javacard-sdks/jc222_kit"/>
<!-- Cleanup target -->
<target name="clean" description="Delete build output">
<delete dir="build"/>
</target>
<!-- Prepare build tools and directories -->
<target name="prepare" description="Prepare build">
<ant dir="ext/ant-javacard"/>
<taskdef name="javacard"
classpath="${ext.ant-javacard}/ant-javacard.jar"
classname="pro.javacard.ant.JavaCard"/>
<mkdir dir="build/javacard"/>
<mkdir dir="build/classes/advanced"/>
<mkdir dir="build/classes/full"/>
<mkdir dir="build/classes/stub"/>
<mkdir dir="build/classes/tiny"/>
</target>
<!-- Build-all target -->
<target name="build" description="Build everything" depends="prepare">
<antcall target="build-advanced"/>
<antcall target="build-full"/>
<antcall target="build-tiny"/>
<antcall target="build-stub"/>
</target>
<!-- Dummy test target -->
<target name="test" description="Run tests" depends="build"/>
<!-- Target for updating in-repository prebuilt files -->
<target name="prebuilt"
description="Update prebuilt files"
depends="build">
<delete dir="prebuilt"/>
<copy todir="prebuilt">
<fileset dir="build/javacard"/>
</copy>
</target>
<target name="build-advanced">
<javacard jckit="${sdk.jc222}">
<cap output="build/javacard/openjavacard-ndef-advanced.cap"
jar="build/javacard/openjavacard-ndef-advanced.jar"
classes="build/classes/advanced"
sources="applet-advanced/src/main/java"
aid="D276000177100211040001"
version="0.0">
<applet aid="D27600017710021104000101"
class="org.openjavacard.ndef.advanced.NdefApplet"/>
<import jar="${sdk.globalplatform}/org.globalplatform-1.1/gpapi-globalplatform.jar"
exps="${sdk.globalplatform}/org.globalplatform-1.1/exports"/>
</cap>
</javacard>
</target>
<target name="build-full">
<javacard jckit="${sdk.jc222}">
<cap output="build/javacard/openjavacard-ndef-full.cap"
jar="build/javacard/openjavacard-ndef-full.jar"
classes="build/classes/full"
sources="applet-full/src/main/java"
aid="D276000177100211010001"
version="0.0">
<applet aid="D27600017710021101000101"
class="org.openjavacard.ndef.full.NdefApplet"/>
</cap>
</javacard>
</target>
<target name="build-tiny">
<javacard jckit="${sdk.jc222}">
<cap output="build/javacard/openjavacard-ndef-tiny.cap"
jar="build/javacard/openjavacard-ndef-tiny.jar"
classes="build/classes/tiny"
sources="applet-tiny/src/main/java"
aid="D276000177100211030001"
version="0.0">
<applet aid="D27600017710021103000101"
class="org.openjavacard.ndef.tiny.NdefApplet"/>
</cap>
</javacard>
</target>
<target name="build-stub">
<javacard jckit="${sdk.jc222}">
<cap output="build/javacard/openjavacard-ndef-stub.cap"
jar="build/javacard/openjavacard-ndef-stub.jar"
classes="build/classes/stub"
sources="applet-stub/src/main/java"
aid="D276000177100211020001"
version="0.0">
<applet aid="D27600017710021102000101"
class="org.openjavacard.ndef.stub.NdefApplet"/>
</cap>
</javacard>
</target>
</project>