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="ContentShellTest" default="debug" basedir="."> | 7 <project name="ContentShellTest" default="debug" basedir="."> |
8 | 8 |
9 <description> | 9 <description> |
10 Building ContentShellTest.apk | 10 Building ContentShellTest.apk |
(...skipping 15 matching lines...) Expand all Loading... |
26 <property name="asset.absolute.dir" location="${out.dir}/assets" /> | 26 <property name="asset.absolute.dir" location="${out.dir}/assets" /> |
27 | 27 |
28 <path id="out.dex.jar.input.ref"> | 28 <path id="out.dex.jar.input.ref"> |
29 <fileset dir="${PRODUCT_DIR}/content_shell/java/libs"/> | 29 <fileset dir="${PRODUCT_DIR}/content_shell/java/libs"/> |
30 <pathelement location="${PRODUCT_DIR}/content_shell/classes"/> | 30 <pathelement location="${PRODUCT_DIR}/content_shell/classes"/> |
31 </path> | 31 </path> |
32 <property name="java.compilerargs" value="-classpath ${toString:out.dex.jar.in
put.ref}"/> | 32 <property name="java.compilerargs" value="-classpath ${toString:out.dex.jar.in
put.ref}"/> |
33 | 33 |
34 <!-- We expect PRODUCT_DIR to be set like the gyp var | 34 <!-- We expect PRODUCT_DIR to be set like the gyp var |
35 (e.g. $ROOT/out/Debug) --> | 35 (e.g. $ROOT/out/Debug) --> |
36 <!-- TODO(satish): ideally we need this to run before -build-setup, where | 36 <fail message="PRODUCT_DIR env var not set?"> |
37 directories are made based on this variable. --> | 37 <condition> |
38 <target name="-pre-build"> | 38 <not> |
39 <if> | 39 <isset property="PRODUCT_DIR"/> |
40 <condition> | 40 </not> |
41 <isset property="PRODUCT_DIR" /> | 41 </condition> |
42 </condition> | 42 </fail> |
43 <else> | |
44 <fail message="PRODUCT_DIR env var not set?" /> | |
45 </else> | |
46 </if> | |
47 </target> | |
48 | 43 |
49 <target name="-post-compile"> | 44 <target name="-post-compile"> |
50 <!-- copy gdbserver to main libs directory if building debug. | 45 <!-- copy gdbserver to main libs directory if building debug. |
51 TODO(jrg): for now, Chrome on Android always builds native code | 46 TODO(jrg): for now, Chrome on Android always builds native code |
52 as Release and java/ant as Debug, which means we always install | 47 as Release and java/ant as Debug, which means we always install |
53 gdbserver. Resolve this discrepancy, possibly by making this | 48 gdbserver. Resolve this discrepancy, possibly by making this |
54 Release Official build java/ant as Release. --> | 49 Release Official build java/ant as Release. --> |
55 <if> | 50 <if> |
56 <condition> | 51 <condition> |
57 <equals arg1="${build.target}" arg2="debug" /> | 52 <equals arg1="${build.target}" arg2="debug" /> |
58 </condition> | 53 </condition> |
59 <then> | 54 <then> |
60 <echo message="Copying gdbserver to the apk to enable native debugging"/
> | 55 <echo message="Copying gdbserver to the apk to enable native debugging"/
> |
61 <copy todir="${out.dir}/libs/${target.abi}"> | 56 <copy todir="${out.dir}/libs/${target.abi}"> |
62 <path refid="native.libs.gdbserver"/> | 57 <path refid="native.libs.gdbserver"/> |
63 </copy> | 58 </copy> |
64 </then> | 59 </then> |
65 </if> | 60 </if> |
66 </target> | 61 </target> |
67 | 62 |
68 <import file="${sdk.dir}/tools/ant/build.xml" /> | 63 <import file="${sdk.dir}/tools/ant/build.xml" /> |
69 | 64 |
70 </project> | 65 </project> |
OLD | NEW |