2007-10-23 12:12:27 -07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project name="javame" default="build">
|
|
|
|
|
|
|
|
<property name="WTK-home" value="/usr/local/WTK2.5.2"/>
|
|
|
|
<property name="JDK1.4-home" value="/usr/lib/jvm/j2sdk1.4.2_16"/>
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<tstamp/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="build" depends="init">
|
|
|
|
<mkdir dir="build"/>
|
|
|
|
<javac srcdir="src"
|
|
|
|
destdir="build"
|
|
|
|
source="1.4"
|
|
|
|
target="1.4"
|
|
|
|
bootclasspath="${JDK1.4-home}/jre/lib/rt.jar"
|
|
|
|
optimize="true"
|
|
|
|
debug="true"
|
|
|
|
deprecation="true"
|
|
|
|
fork="true">
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="${WTK-home}/lib/cldcapi11.jar"/>
|
|
|
|
<pathelement location="${WTK-home}/lib/midpapi20.jar"/>
|
|
|
|
<pathelement location="${WTK-home}/lib/mmapi.jar"/>
|
|
|
|
<pathelement location="../core/core.jar"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
|
2007-11-07 13:56:22 -08:00
|
|
|
<unzip src="../core/core.jar" dest="build"/>
|
|
|
|
|
2007-10-23 12:12:27 -07:00
|
|
|
<mkdir dir="build-j2me"/>
|
2007-11-07 13:56:22 -08:00
|
|
|
<exec executable="${WTK-home}/bin/preverify1.1">
|
|
|
|
<arg line="-classpath ${WTK-home}/lib/cldcapi11.jar:${WTK-home}/lib/midpapi20.jar:${WTK-home}/lib/mmapi.jar:${WTK-home}/lib/satsa-apdu.jar -d build-j2me build"/>
|
2007-10-23 12:12:27 -07:00
|
|
|
</exec>
|
|
|
|
|
2007-11-07 15:02:50 -08:00
|
|
|
<copy todir="build-j2me">
|
|
|
|
<fileset dir=".">
|
|
|
|
<include name="res/**"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
|
2007-11-07 13:56:22 -08:00
|
|
|
<jar jarfile="ZXingReader.jar" basedir="build-j2me" manifest="src/com/google/zxing/client/j2me/MANIFEST.MF"/>
|
|
|
|
|
|
|
|
<exec executable="sh" outputproperty="jar-size">
|
|
|
|
<arg line="-c "wc -c ZXingReader.jar | cut -d' ' -f1""/>
|
|
|
|
</exec>
|
|
|
|
<copy file="ZXingReader.jad.template" tofile="ZXingReader.jad">
|
|
|
|
<filterset>
|
|
|
|
<filter token="JAR_SIZE" value="${jar-size}"/>
|
|
|
|
</filterset>
|
|
|
|
</copy>
|
2007-10-23 12:12:27 -07:00
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="build"/>
|
|
|
|
<delete dir="build-j2me"/>
|
2007-11-07 13:56:22 -08:00
|
|
|
<delete file="ZXingReader.jar"/>
|
|
|
|
<delete file="ZXingReader.jad"/>
|
2007-10-23 12:12:27 -07:00
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|