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> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 <fileset dir="${external.jars.dir}" includes="*.jar"/> | 59 <fileset dir="${external.jars.dir}" includes="*.jar"/> |
60 </path> | 60 </path> |
61 <condition property="java.compilerargs" | 61 <condition property="java.compilerargs" |
62 value="-classpath ${toString:out.dex.jar.input.ref}"> | 62 value="-classpath ${toString:out.dex.jar.input.ref}"> |
63 <not> | 63 <not> |
64 <equals arg1="${external.jars.dir}" arg2=""/> | 64 <equals arg1="${external.jars.dir}" arg2=""/> |
65 </not> | 65 </not> |
66 </condition> | 66 </condition> |
67 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> | 67 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> |
68 | 68 |
| 69 <!-- Copy the below manifest file to a new directory because the project |
| 70 base directory and output directory are the same and manifest merge |
| 71 task takes the same file as source and target when doing copying. |
| 72 Otherwise it'll generate an empty manifest file. --> |
| 73 <copy file="AndroidManifest.xml" todir="${out.dir}/manifest"/> |
| 74 <property name="manifest.abs.file" location="${out.dir}/manifest/AndroidManife
st.xml"/> |
| 75 |
69 <target name="-post-compile"> | 76 <target name="-post-compile"> |
70 <!-- copy gdbserver to main libs directory if building debug. --> | 77 <!-- copy gdbserver to main libs directory if building debug. --> |
71 <if> | 78 <if> |
72 <condition> | 79 <condition> |
73 <equals arg1="${build.target}" arg2="debug" /> | 80 <equals arg1="${build.target}" arg2="debug" /> |
74 </condition> | 81 </condition> |
75 <then> | 82 <then> |
76 <echo message="Copying gdbserver to the apk to enable native debugging"/
> | 83 <echo message="Copying gdbserver to the apk to enable native debugging"/
> |
77 <copy todir="${out.dir}/libs/${target.abi}"> | 84 <copy todir="${out.dir}/libs/${target.abi}"> |
78 <path refid="native.libs.gdbserver"/> | 85 <path refid="native.libs.gdbserver"/> |
79 </copy> | 86 </copy> |
80 </then> | 87 </then> |
81 </if> | 88 </if> |
82 </target> | 89 </target> |
83 | 90 |
84 <import file="${sdk.dir}/tools/ant/build.xml" /> | 91 <import file="${sdk.dir}/tools/ant/build.xml" /> |
85 | 92 |
86 </project> | 93 </project> |
OLD | NEW |