Added small android-integration module
[zxing.git] / android-integration / build.xml
diff --git a/android-integration/build.xml b/android-integration/build.xml
new file mode 100644 (file)
index 0000000..a805d67
--- /dev/null
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Copyright 2009 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="android-integration" default="build">
+
+  <property file="../build.properties"/>
+
+  <target name="init">
+    <tstamp/>
+  </target>
+
+  <target name="build" depends="init">
+    <mkdir dir="build"/>
+    <javac srcdir="src"
+           destdir="build"
+           source="1.5"
+           target="1.5"
+           optimize="true"
+           debug="true"
+           deprecation="true">
+      <classpath>
+        <pathelement location="${android-home}/android.jar"/>
+      </classpath>
+    </javac>
+    <jar jarfile="android-integration.jar" basedir="build"/>
+  </target>
+
+  <target name="clean">
+    <delete dir="build"/>
+    <delete file="android-integration.jar"/>
+  </target>
+
+</project>