mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
2a113d9226
git-svn-id: https://zxing.googlecode.com/svn/trunk@20 59b500cc-1b3d-0410-9834-0bbf25fbcc57
64 lines
1.9 KiB
XML
64 lines
1.9 KiB
XML
<?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>
|
|
|
|
<unzip src="../core/core.jar" dest="build"/>
|
|
|
|
<mkdir dir="build-j2me"/>
|
|
<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"/>
|
|
</exec>
|
|
|
|
<copy todir="build-j2me">
|
|
<fileset dir=".">
|
|
<include name="res/**"/>
|
|
</fileset>
|
|
</copy>
|
|
|
|
<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>
|
|
|
|
</target>
|
|
|
|
<target name="clean">
|
|
<delete dir="build"/>
|
|
<delete dir="build-j2me"/>
|
|
<delete file="ZXingReader.jar"/>
|
|
<delete file="ZXingReader.jad"/>
|
|
</target>
|
|
|
|
</project>
|