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 | 7 |
8 <project name="replaceme" default="debug" basedir="."> | 8 <project name="replaceme" default="debug" basedir="."> |
9 | 9 |
10 <description> | 10 <description> |
11 Building native test runner ChromeNativeTests_replaceme.apk | 11 Building native test runner ChromeNativeTests_replaceme.apk |
12 </description> | 12 </description> |
13 | 13 |
14 <property environment="env"/> | 14 <property environment="env"/> |
15 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> | 15 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> |
16 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> | 16 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> |
17 <property name="toolchain.dir" location="${env.ANDROID_TOOLCHAIN}"/> | |
17 <property name="src" location="."/> | 18 <property name="src" location="."/> |
18 <property name="source.dir" location="java"/> | 19 <property name="source.dir" location="java"/> |
20 <property name="target.abi" value="${APP_ABI}"/> | |
19 | 21 |
20 <property name="target" value="android-${env.ANDROID_SDK_VERSION}"/> | 22 <property name="target" value="android-${env.ANDROID_SDK_VERSION}"/> |
23 <path id="native.libs.gdbserver"> | |
24 <fileset file="${toolchain.dir}/../../gdbserver"/> | |
25 </path> | |
21 | 26 |
22 <condition property="location.base" | 27 <condition property="location.base" |
23 value="${sdk.dir}" | 28 value="${sdk.dir}" |
24 else="${sdk.dir}/platforms/android-${sdk.version}"> | 29 else="${sdk.dir}/platforms/android-${sdk.version}"> |
25 <isset property="env.ANDROID_BUILD_TOP"/> | 30 <isset property="env.ANDROID_BUILD_TOP"/> |
26 </condition> | 31 </condition> |
27 | 32 |
28 <!-- We expect PRODUCT_DIR to be set like the gyp var | 33 <!-- We expect PRODUCT_DIR to be set like the gyp var |
29 (e.g. $ROOT/out/Debug) --> | 34 (e.g. $ROOT/out/Debug) --> |
30 <!-- TODO(jrg): ideally we need this to run before -build-setup, where | 35 <!-- TODO(jrg): ideally we need this to run before -build-setup, where |
(...skipping 19 matching lines...) Expand all Loading... | |
50 for placing jar outputs in new directory. | 55 for placing jar outputs in new directory. |
51 When we transition we'll probably also want to change | 56 When we transition we'll probably also want to change |
52 generate_native_test.py to copy the jars into java/libs, not | 57 generate_native_test.py to copy the jars into java/libs, not |
53 just libs (see line 124 or so). | 58 just libs (see line 124 or so). |
54 --> | 59 --> |
55 <!-- | 60 <!-- |
56 <property name="jar.libs.dir" value="${out.dir}/java/libs"/> | 61 <property name="jar.libs.dir" value="${out.dir}/java/libs"/> |
57 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> | 62 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> |
58 --> | 63 --> |
59 | 64 |
65 <target name="-post-compile"> | |
66 <!-- copy gdbserver to main libs directory if building debug. --> | |
67 <if> | |
68 <condition> | |
69 <equals arg1="${build.target}" arg2="debug" /> | |
70 </condition> | |
71 <then> | |
72 <echo message="Copying gdbserver to the apk to enable native debugging"/ > | |
bulach
2012/07/06 09:59:12
I don't know much about this, but... does it need
| |
73 <copy todir="${out.dir}/libs/${target.abi}"> | |
74 <path refid="native.libs.gdbserver"/> | |
75 </copy> | |
76 </then> | |
77 </if> | |
78 </target> | |
79 | |
60 <import file="${sdk.dir}/tools/ant/build.xml" /> | 80 <import file="${sdk.dir}/tools/ant/build.xml" /> |
61 | 81 |
62 </project> | 82 </project> |
OLD | NEW |