OLD | NEW |
| (Empty) |
1 <!-- Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 | |
3 Use of this source code is governed by a BSD-style license that can be | |
4 found in the LICENSE file. | |
5 --> | |
6 <project name="ContentJavaTests" default="dist" basedir="."> | |
7 <description> | |
8 building content-only instrumentation tests with ant | |
9 </description> | |
10 <!-- set global properties for this build --> | |
11 <property name="src" location="src"/> | |
12 <property name="out.dir" location="${PRODUCT_DIR}/lib.java"/> | |
13 <property name="classes.dir" location="${PRODUCT_DIR}/java/${PACKAGE_NAME}"/> | |
14 <property name="jar.dir" location="${out.dir}"/> | |
15 | |
16 <target name="init"> | |
17 <!-- Create the time stamp --> | |
18 <tstamp/> | |
19 <!-- Create the build directory structure used by compile --> | |
20 <mkdir dir="${out.dir}"/> | |
21 </target> | |
22 | |
23 <target name="compile" depends="init" | |
24 description="compile the source " > | |
25 <!-- Create the classes output directory --> | |
26 <mkdir dir="${classes.dir}"/> | |
27 | |
28 <!-- Compile the java code from ${src} into ${classes.dir} --> | |
29 <!-- Gyp target should have compiled aidl files into java source files in | |
30 lib.jar (see content.gyp:common_aidl). --> | |
31 <javac srcdir="${src}" destdir="${classes.dir}" debug="true" includeantrunti
me="false"> | |
32 <classpath> | |
33 <pathelement path="${ANDROID_SDK}/android.jar" /> | |
34 <pathelement path="${jar.dir}/chromium_base.jar" /> | |
35 <pathelement path="${jar.dir}/chromium_base_javatests.jar" /> | |
36 <pathelement path="${jar.dir}/chromium_content.jar" /> | |
37 </classpath> | |
38 </javac> | |
39 </target> | |
40 | |
41 <target name="dist" depends="compile" | |
42 description="generate the distribution" > | |
43 <!-- Create the distribution directory --> | |
44 <mkdir dir="${jar.dir}"/> | |
45 | |
46 <!-- Put everything in ${classes.dir} into the chromium_content_tests.jar fi
le --> | |
47 <jar jarfile="${jar.dir}/chromium_${PACKAGE_NAME}.jar" basedir="${classes.di
r}"/> | |
48 </target> | |
49 | |
50 <target name="clean" description="clean up" > | |
51 <!-- Delete the generated content --> | |
52 <delete dir="${classes.dir}"/> | |
53 <delete file="${jar.dir}/chromium_${PACKAGE_NAME}.jar"/> | |
54 </target> | |
55 </project> | |
OLD | NEW |