mirror of
https://github.com/zxing/zxing.git
synced 2024-11-13 14:34:08 -08:00
e57cf71874
git-svn-id: https://zxing.googlecode.com/svn/trunk@583 59b500cc-1b3d-0410-9834-0bbf25fbcc57
126 lines
3.6 KiB
XML
126 lines
3.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
Copyright 2007 ZXing authors
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<project name="rim" default="build">
|
|
|
|
<property file="../build.properties"/>
|
|
<property name="rim-api-jar" value="${BB-JDK-home}/lib/net_rim_api.jar"/>
|
|
|
|
<target name="init">
|
|
<tstamp/>
|
|
<fail message="Please set 'BB-JDK-home' in build.properties">
|
|
<condition>
|
|
<not>
|
|
<available file="${BB-JDK-home}" type="dir"/>
|
|
</not>
|
|
</condition>
|
|
</fail>
|
|
<fail message="Please set 'WTK-home' in build.properties">
|
|
<condition>
|
|
<not>
|
|
<available file="${WTK-home}" type="dir"/>
|
|
</not>
|
|
</condition>
|
|
</fail>
|
|
<fail message="Please build 'core' first">
|
|
<condition>
|
|
<not>
|
|
<available file="../core/core.jar" type="file"/>
|
|
</not>
|
|
</condition>
|
|
</fail>
|
|
<fail message="Please build 'javame' first">
|
|
<condition>
|
|
<not>
|
|
<available file="../javame/javame.jar" type="file"/>
|
|
</not>
|
|
</condition>
|
|
</fail>
|
|
</target>
|
|
|
|
<target name="build" depends="init">
|
|
|
|
<mkdir dir="build"/>
|
|
<javac srcdir="src"
|
|
destdir="build"
|
|
source="1.2"
|
|
target="1.2"
|
|
bootclasspath="${rim-api-jar}"
|
|
optimize="true"
|
|
debug="true"
|
|
deprecation="true"
|
|
fork="true">
|
|
<classpath>
|
|
<pathelement location="../core/core.jar"/>
|
|
<pathelement location="../javame/javame.jar"/>
|
|
</classpath>
|
|
</javac>
|
|
|
|
<unzip src="../core/core.jar" dest="build"/>
|
|
<unzip src="../javame/javame.jar" dest="build"/>
|
|
|
|
<mkdir dir="build-j2me"/>
|
|
<exec executable="${WTK-home}/bin/preverify1.1" failonerror="true">
|
|
<arg line="-classpath '${rim-api-jar}' -d build-j2me build"/>
|
|
</exec>
|
|
|
|
<copy todir="build-j2me">
|
|
<fileset dir=".">
|
|
<include name="res/**"/>
|
|
</fileset>
|
|
</copy>
|
|
|
|
<copy file="BarcodeReader.jad.template" tofile="BarcodeReader.jad" overwrite="true">
|
|
<filterset>
|
|
<filter token="VERSION" value="${version}"/>
|
|
</filterset>
|
|
</copy>
|
|
<copy file="BarcodeReader.alx.template" tofile="BarcodeReader.alx" overwrite="true">
|
|
<filterset>
|
|
<filter token="VERSION" value="${version}"/>
|
|
</filterset>
|
|
</copy>
|
|
|
|
<jar jarfile="temp.jar" basedir="build-j2me"/>
|
|
<java jar="${BB-JDK-home}/bin/rapc.jar" fork="true">
|
|
<arg value="-quiet"/>
|
|
<arg value="import=${rim-api-jar}"/>
|
|
<arg value="jad=BarcodeReader.jad"/>
|
|
<arg value="codename=BarcodeReader"/>
|
|
<arg value="temp.jar"/>
|
|
</java>
|
|
|
|
<echo>Remember to sign the .cod file!</echo>
|
|
|
|
</target>
|
|
|
|
<target name="clean">
|
|
<delete dir="build"/>
|
|
<delete dir="build-j2me"/>
|
|
<delete file="temp.jar"/>
|
|
<delete file="BarcodeReader.cod"/>
|
|
<delete file="BarcodeReader.csl"/>
|
|
<delete file="BarcodeReader.cso"/>
|
|
<delete file="BarcodeReader.debug"/>
|
|
<delete file="BarcodeReader.jad"/>
|
|
<delete file="BarcodeReader.jar"/>
|
|
<delete file="LogFile.txt"/>
|
|
</target>
|
|
|
|
</project>
|