build-system: import build system from HelloSTK2
The current build system (Makefile) uses a very old java SDK that is no longer available on modern platforms. There is a community supported project HelloSTK2 (maintained by Merlin Chlosta, see also [1]) that uses not only a comfortable ANT based approach. It also uses more modern Java SDKs which are automatically downloaded using .gitmodules. All this makes it very comfortable to use and also lowers the barrier for beginners. Let's take this approach as an example and use it in our hello-stk.git as well. [1] https://github.com/mrlnc/HelloSTK2.git Related: OS#6069 Change-Id: Ic1828b7ccaf3bf953c0f4889fa1c3f21b80a1b73
This commit is contained in:
committed by
Philipp Maier
parent
d3d776e26c
commit
f08edf94f9
24
build.xml
Normal file
24
build.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="HelloSTK" default="dist" basedir=".">
|
||||
<description>Builds the project.</description>
|
||||
<target name="dist" description="generate the distribution">
|
||||
<tstamp/>
|
||||
<get src="https://github.com/martinpaljak/ant-javacard/releases/latest/download/ant-javacard.jar" dest="." skipexisting="true"/>
|
||||
<!-- Create the distribution directory -->
|
||||
<taskdef name="javacard" classname="pro.javacard.ant.JavaCard" classpath="ant-javacard.jar"/>
|
||||
<javacard>
|
||||
<cap targetsdk="oracle_javacard_sdks/jc221_kit" jckit="oracle_javacard_sdks/jc305u3_kit" output="build/HelloSTK.cap" sources="hello-stk" classes="build/classes" version="1.0">
|
||||
<applet class="org.toorcamp.HelloSTK.HelloSTK" aid="d0:70:02:CA:44:90:01:01"/>
|
||||
<import exps="exp" jar="lib/sim.jar"/>
|
||||
</cap>
|
||||
<cap targetsdk="oracle_javacard_sdks/jc221_kit" jckit="oracle_javacard_sdks/jc305u3_kit" output="build/ImsiChange.cap" sources="imsi-change" excludes="src/**/Test*.java" classes="build/classes" version="1.0">
|
||||
<applet class="org.osmocom.IMSIChange.IMSIChange" aid="d0:70:02:CA:44:90:01:02"/>
|
||||
<import exps="exp" jar="lib/sim.jar"/>
|
||||
</cap>
|
||||
</javacard>
|
||||
</target>
|
||||
<target name="clean" description="clean up">
|
||||
<!-- Delete the built applet -->
|
||||
<delete dir="HelloSTK.cap"/>
|
||||
</target>
|
||||
</project>
|
||||
Reference in New Issue
Block a user