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="out.dir" location="${PRODUCT_DIR}/content_shell"/> | 18 <property name="out.dir" location="${PRODUCT_DIR}/content_shell"/> |
19 <property name="resource.absolute.dir" value="res"/> | 19 <property name="resource.absolute.dir" value="res"/> |
20 <property name="gen.absolute.dir" value="${out.dir}/gen"/> | 20 <property name="gen.absolute.dir" value="${out.dir}/gen"/> |
21 <property name="jar.libs.dir" value="${out.dir}/java/libs"/> | 21 <property name="jar.libs.dir" value="${out.dir}/java/libs"/> |
22 <path id="native.libs.gdbserver"> | 22 <path id="native.libs.gdbserver"> |
23 <fileset file="${toolchain.dir}/../../gdbserver"/> | 23 <fileset file="${toolchain.dir}/../../gdbserver"/> |
24 </path> | 24 </path> |
25 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> | 25 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> |
| 26 <!-- If your app crashes when referencing java from a different .jar |
| 27 (e.g. java.lang.NoClassDefFoundError: |
| 28 org.chromium.content.browser.CommandLine), And if |
| 29 chromium_content.jar is in fact in your java/libs directory (as |
| 30 placed by a gyp 'cp'), the following line will make sure it |
| 31 gets added to the classes.dex file. --> |
| 32 <property name="out.classes.absolute.dir" location="${jar.libs.dir}" /> |
26 | 33 |
27 <!-- We expect PRODUCT_DIR to be set like the gyp var | 34 <!-- We expect PRODUCT_DIR to be set like the gyp var |
28 (e.g. $ROOT/out/Debug) --> | 35 (e.g. $ROOT/out/Debug) --> |
29 <!-- TODO(satish): ideally we need this to run before -build-setup, where | 36 <!-- TODO(satish): ideally we need this to run before -build-setup, where |
30 directories are made based on this variable. --> | 37 directories are made based on this variable. --> |
31 <target name="-pre-build"> | 38 <target name="-pre-build"> |
32 <if> | 39 <if> |
33 <condition> | 40 <condition> |
34 <isset property="PRODUCT_DIR" /> | 41 <isset property="PRODUCT_DIR" /> |
35 </condition> | 42 </condition> |
(...skipping 18 matching lines...) Expand all Loading... |
54 <copy todir="${out.dir}/libs/armeabi"> | 61 <copy todir="${out.dir}/libs/armeabi"> |
55 <path refid="native.libs.gdbserver"/> | 62 <path refid="native.libs.gdbserver"/> |
56 </copy> | 63 </copy> |
57 </then> | 64 </then> |
58 </if> | 65 </if> |
59 </target> | 66 </target> |
60 | 67 |
61 <import file="${sdk.dir}/tools/ant/build.xml" /> | 68 <import file="${sdk.dir}/tools/ant/build.xml" /> |
62 | 69 |
63 </project> | 70 </project> |
OLD | NEW |