OLD | NEW |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 <project name="ContentShell" default="debug" basedir="."> | 7 <project name="ContentShell" default="debug" basedir="."> |
8 <description> | 8 <description> |
9 Building ContentShell.apk | 9 Building ContentShell.apk |
10 </description> | 10 </description> |
11 <import file="../../../../build/android/ant/common.xml"/> | 11 <import file="../../../../build/android/ant/common.xml"/> |
12 | 12 |
13 <!-- Convert the buildtype to lowercase. E.g Debug -> debug, Release -> releas e. --> | 13 <!-- |
14 Convert the buildtype to lowercase. E.g Debug -> debug, | |
15 Release -> release. | |
16 --> | |
cjhopman
2012/09/18 21:40:20
No need to change this to multiline (100 columns f
| |
14 <script language="javascript"> | 17 <script language="javascript"> |
15 project.setProperty("configuration.name", | 18 project.setProperty("configuration.name", |
16 project.getProperty("CONFIGURATION_NAME").toLowerCase()) | 19 project.getProperty("CONFIGURATION_NAME").toLowerCase()) |
17 </script> | 20 </script> |
18 <property-value name="target.abi" value="${APP_ABI}"/> | 21 <property-value name="target.abi" value="${APP_ABI}"/> |
19 <property-location name="out.dir" location="${PRODUCT_DIR}/content_shell" | 22 <property-location name="out.dir" location="${PRODUCT_DIR}/content_shell" |
20 check-exists="false"/> | 23 check-exists="false"/> |
21 <property name="resource.absolute.dir" value="../res"/> | 24 <property name="resource.absolute.dir" value="../res"/> |
22 <property name="gen.absolute.dir" value="${out.dir}/gen"/> | 25 <property name="gen.absolute.dir" value="${out.dir}/gen"/> |
23 <property name="jar.libs.dir" value="${out.dir}/java/libs"/> | |
24 <path id="native.libs.gdbserver"> | 26 <path id="native.libs.gdbserver"> |
25 <fileset file="${android.gdbserver}"/> | 27 <fileset file="${android.gdbserver}"/> |
26 </path> | 28 </path> |
27 <property name="native.libs.absolute.dir" location="${out.dir}/libs"/> | 29 <property name="native.libs.absolute.dir" location="${out.dir}/libs"/> |
28 <property name="asset.absolute.dir" location="${out.dir}/assets"/> | 30 <property name="asset.absolute.dir" location="${out.dir}/assets"/> |
31 <!-- Set the output directory for the final apk to the ${apks.dir}. --> | |
32 <property-location name="out.final.file" | |
33 location="${apks.dir}/${ant.project.name}-debug.apk" | |
34 check-exists="false"/> | |
29 | 35 |
30 <path id="out.dex.jar.input.ref"> | 36 <path id="out.dex.jar.input.ref"> |
31 <filelist files="${INPUT_JARS_PATHS}"/> | 37 <filelist files="${INPUT_JARS_PATHS}"/> |
32 </path> | 38 </path> |
33 <property name="java.compilerargs" value="-classpath ${toString:out.dex.jar.in put.ref}"/> | |
34 | |
35 <echo>classpath: ${toString:out.dex.jar.input.ref}</echo> | |
36 | |
37 <!-- We expect PRODUCT_DIR to be set like the gyp var (e.g. $ROOT/out/Debug) - -> | |
38 <fail message="PRODUCT_DIR env var not set?"> | |
39 <condition> | |
40 <not> | |
41 <isset property="PRODUCT_DIR"/> | |
42 </not> | |
43 </condition> | |
44 </fail> | |
45 | |
46 <target name="-post-compile"> | 39 <target name="-post-compile"> |
47 <!-- | 40 <!-- |
48 Copy gdbserver to main libs directory if building debug. | 41 Copy gdbserver to main libs directory if building debug. |
49 TODO(jrg): for now, Chrome on Android always builds native code | 42 TODO(jrg): for now, Chrome on Android always builds native code |
50 as Release and java/ant as Debug, which means we always install | 43 as Release and java/ant as Debug, which means we always install |
51 gdbserver. Resolve this discrepancy, possibly by making this | 44 gdbserver. Resolve this discrepancy, possibly by making this |
52 Release Official build java/ant as Release. | 45 Release Official build java/ant as Release. |
53 --> | 46 --> |
54 <if> | 47 <if> |
55 <condition> | 48 <condition> |
56 <equals arg1="${build.target}" arg2="debug"/> | 49 <equals arg1="${build.target}" arg2="debug"/> |
57 </condition> | 50 </condition> |
58 <then> | 51 <then> |
59 <echo message="Copying gdbserver to the apk to enable native debugging" /> | 52 <echo message="Copying gdbserver to the apk to enable native debugging"/ > |
60 <copy todir="${out.dir}/libs/${target.abi}"> | 53 <copy todir="${out.dir}/libs/${target.abi}"> |
61 <path refid="native.libs.gdbserver"/> | 54 <path refid="native.libs.gdbserver"/> |
62 </copy> | 55 </copy> |
63 </then> | 56 </then> |
64 </if> | 57 </if> |
65 </target> | 58 </target> |
66 | 59 |
67 <!-- Classpath for javac --> | 60 <!-- Classpath for javac --> |
68 <path id="javac.custom.classpath"> | 61 <path id="javac.custom.classpath"> |
69 <path refid="out.dex.jar.input.ref"/> | 62 <path refid="out.dex.jar.input.ref"/> |
70 </path> | 63 </path> |
71 | 64 |
72 <import file="../../../../build/android/ant/sdk-targets.xml"/> | 65 <import file="../../../../build/android/ant/sdk-targets.xml"/> |
73 <import file="${sdk.dir}/tools/ant/build.xml"/> | 66 <import file="${sdk.dir}/tools/ant/build.xml"/> |
74 </project> | 67 </project> |
OLD | NEW |