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 | 8 |
9 <description> | 9 <description> |
10 Building ContentShell.apk | 10 Building ContentShell.apk |
11 </description> | 11 </description> |
12 | 12 |
13 <property environment="env"/> | 13 <property environment="env"/> |
14 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> | 14 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> |
15 <property name="toolchain.dir" location="${env.ANDROID_TOOLCHAIN}"/> | 15 <property name="toolchain.dir" location="${env.ANDROID_TOOLCHAIN}"/> |
16 <property name="source.dir" location="java"/> | 16 <property name="source.dir" location="java"/> |
17 <property name="target" value="android-14"/> | 17 <property name="target" value="android-14"/> |
| 18 <property name="target.abi" value="${APP_ABI}"/> |
18 <property name="out.dir" location="${PRODUCT_DIR}/content_shell"/> | 19 <property name="out.dir" location="${PRODUCT_DIR}/content_shell"/> |
19 <property name="resource.absolute.dir" value="res"/> | 20 <property name="resource.absolute.dir" value="res"/> |
20 <property name="gen.absolute.dir" value="${out.dir}/gen"/> | 21 <property name="gen.absolute.dir" value="${out.dir}/gen"/> |
21 <property name="jar.libs.dir" value="${out.dir}/java/libs"/> | 22 <property name="jar.libs.dir" value="${out.dir}/java/libs"/> |
22 <path id="native.libs.gdbserver"> | 23 <path id="native.libs.gdbserver"> |
23 <fileset file="${toolchain.dir}/../../gdbserver"/> | 24 <fileset file="${toolchain.dir}/../../gdbserver"/> |
24 </path> | 25 </path> |
25 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> | 26 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> |
26 <!-- If your app crashes when referencing java from a different .jar | 27 <!-- If your app crashes when referencing java from a different .jar |
27 (e.g. java.lang.NoClassDefFoundError: | 28 (e.g. java.lang.NoClassDefFoundError: |
(...skipping 23 matching lines...) Expand all Loading... |
51 TODO(jrg): for now, Chrome on Android always builds native code | 52 TODO(jrg): for now, Chrome on Android always builds native code |
52 as Release and java/ant as Debug, which means we always install | 53 as Release and java/ant as Debug, which means we always install |
53 gdbserver. Resolve this discrepancy, possibly by making this | 54 gdbserver. Resolve this discrepancy, possibly by making this |
54 Release Official build java/ant as Release. --> | 55 Release Official build java/ant as Release. --> |
55 <if> | 56 <if> |
56 <condition> | 57 <condition> |
57 <equals arg1="${build.target}" arg2="debug" /> | 58 <equals arg1="${build.target}" arg2="debug" /> |
58 </condition> | 59 </condition> |
59 <then> | 60 <then> |
60 <echo message="Copying gdbserver to the apk to enable native debugging"/
> | 61 <echo message="Copying gdbserver to the apk to enable native debugging"/
> |
61 <copy todir="${out.dir}/libs/armeabi"> | 62 <copy todir="${out.dir}/libs/${target.abi}"> |
62 <path refid="native.libs.gdbserver"/> | 63 <path refid="native.libs.gdbserver"/> |
63 </copy> | 64 </copy> |
64 </then> | 65 </then> |
65 </if> | 66 </if> |
66 </target> | 67 </target> |
67 | 68 |
68 <import file="${sdk.dir}/tools/ant/build.xml" /> | 69 <import file="${sdk.dir}/tools/ant/build.xml" /> |
69 | 70 |
70 </project> | 71 </project> |
OLD | NEW |