988025ccbea2be5333dd6c19bd64b3590accb513
[zxing.git] / android-integration / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4  Copyright 2009 ZXing authors
5
6  Licensed under the Apache License, Version 2.0 (the "License");
7  you may not use this file except in compliance with the License.
8  You may obtain a copy of the License at
9
10       http://www.apache.org/licenses/LICENSE-2.0
11
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  See the License for the specific language governing permissions and
16  limitations under the License.
17 -->
18
19 <project name="android-integration" default="build">
20
21   <property file="../build.properties"/>
22
23   <target name="init">
24     <tstamp/>
25   </target>
26
27   <target name="build" depends="init">
28     <mkdir dir="build"/>
29     <javac srcdir="src"
30            destdir="build"
31            source="1.5"
32            target="1.5"
33            optimize="true"
34            debug="true"
35            deprecation="true">
36       <classpath>
37         <pathelement location="${android-home}/platforms/android-1.5/android.jar"/>
38       </classpath>
39     </javac>
40     <jar jarfile="android-integration.jar" basedir="build"/>
41   </target>
42
43   <target name="clean">
44     <delete dir="build"/>
45     <delete file="android-integration.jar"/>
46   </target>
47
48 </project>