OLD | NEW |
| 1 <!-- |
| 2 Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. |
| 5 --> |
1 <project name="net" default="dist" basedir="."> | 6 <project name="net" default="dist" basedir="."> |
2 <description> | 7 <description> |
3 Building net/ java source code with ant. | 8 Building net/ java source code with ant. |
4 </description> | 9 </description> |
5 <!-- Set global properties for this build --> | 10 <import file="../../../build/android/ant/chromium-jars.xml"/> |
6 <property name="src" location="src"/> | |
7 <property name="dist" location="dist"/> | |
8 <property name="out.dir" location="${PRODUCT_DIR}/lib.java"/> | |
9 <!-- TODO(jrg): establish a standard for the intermediate java | |
10 directories. Settle on a standard once ant/jar build files | |
11 like this are androidified --> | |
12 <property name="dest.dir" location="${PRODUCT_DIR}/java/net"/> | |
13 | 11 |
14 <target name="init"> | 12 <path id="javac.custom.classpath"> |
15 <!-- Create the time stamp --> | 13 <pathelement location="${ANDROID_SDK}/android.jar"/> |
16 <tstamp/> | 14 <pathelement location="${lib.dir}/chromium_base.jar"/> |
17 <!-- Create the build directory structure used by compile --> | 15 </path> |
18 <mkdir dir="${out.dir}"/> | |
19 <mkdir dir="${dest.dir}"/> | |
20 </target> | |
21 | |
22 <target name="compile" depends="init" | |
23 description="compile the source " > | |
24 <javac srcdir="${src}" destdir="${dest.dir}" debug="true" includeantruntime=
"false"> | |
25 <classpath> | |
26 <path location="${ANDROID_SDK}/android.jar"/> | |
27 <path location="${out.dir}/chromium_base.jar"/> | |
28 </classpath> | |
29 </javac> | |
30 </target> | |
31 | |
32 <target name="dist" depends="compile" | |
33 description="generate the distribution" > | |
34 <!-- Create the distribution directory --> | |
35 <mkdir dir="${dist}/lib"/> | |
36 | |
37 <jar jarfile="${out.dir}/chromium_net.jar" basedir="${dest.dir}"/> | |
38 </target> | |
39 | |
40 <target name="clean" | |
41 description="clean up" > | |
42 <delete dir="${dest.dir}"/> | |
43 <delete dir="${dist}"/> | |
44 </target> | |
45 </project> | 16 </project> |
OLD | NEW |