| OLD | NEW |
| (Empty) |
| 1 <?xml version="1.0" encoding="UTF-8"?> | |
| 2 <!-- | |
| 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 | |
| 5 found in the LICENSE file. | |
| 6 --> | |
| 7 | |
| 8 <project name="replaceme" default="debug" basedir="."> | |
| 9 | |
| 10 <description> | |
| 11 Building native test runner ChromeNativeTests_replaceme.apk | |
| 12 </description> | |
| 13 | |
| 14 <!-- | |
| 15 TODO(beverloo): Remove this property when all gyp files (also those in | |
| 16 WebKit) define the CHROMIUM_SRC property. This works because properties | |
| 17 in ant files are immutable. | |
| 18 --> | |
| 19 <property name="CHROMIUM_SRC" value="${PRODUCT_DIR}/../.." /> | |
| 20 | |
| 21 <import file="${CHROMIUM_SRC}/build/android/ant/common.xml"/> | |
| 22 | |
| 23 <!-- | |
| 24 TODO(yfriedman): Remove the need to specify this. We should generate the pac
kages in a way such | |
| 25 that it's not required. | |
| 26 --> | |
| 27 <property name="source.absolute.dir" value="java/src"/> | |
| 28 <path id="javac.custom.classpath"> | |
| 29 <pathelement location="${ANDROID_SDK}/android.jar" /> | |
| 30 </path> | |
| 31 <property name="target.abi" value="${APP_ABI}"/> | |
| 32 | |
| 33 <path id="native.libs.gdbserver"> | |
| 34 <fileset file="${android.gdbserver}"/> | |
| 35 </path> | |
| 36 | |
| 37 <!-- We expect PRODUCT_DIR to be set like the gyp var | |
| 38 (e.g. $ROOT/out/Debug) --> | |
| 39 <fail message="PRODUCT_DIR env var not set?"> | |
| 40 <condition> | |
| 41 <not> | |
| 42 <isset property="PRODUCT_DIR"/> | |
| 43 </not> | |
| 44 </condition> | |
| 45 </fail> | |
| 46 | |
| 47 <property name="out.dir" location="${PRODUCT_DIR}/replaceme_apk"/> | |
| 48 | |
| 49 <property name="resource.absolute.dir" value="res"/> | |
| 50 <property name="gen.absolute.dir" value="${out.dir}/gen"/> | |
| 51 | |
| 52 <path id="out.dex.jar.input.ref"> | |
| 53 <filelist files="${INPUT_JARS_PATHS}"/> | |
| 54 </path> | |
| 55 <condition property="java.compilerargs" | |
| 56 value="-classpath ${toString:out.dex.jar.input.ref}"> | |
| 57 <not> | |
| 58 <equals arg1="${toString:out.dex.jar.input.ref}" arg2=""/> | |
| 59 </not> | |
| 60 </condition> | |
| 61 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> | |
| 62 | |
| 63 <!-- Copy the below manifest file to a new directory because the project | |
| 64 base directory and output directory are the same and manifest merge | |
| 65 task takes the same file as source and target when doing copying. | |
| 66 Otherwise it'll generate an empty manifest file. --> | |
| 67 <copy file="AndroidManifest.xml" todir="${out.dir}/manifest"/> | |
| 68 <property name="manifest.abs.file" location="${out.dir}/manifest/AndroidManife
st.xml"/> | |
| 69 | |
| 70 <target name="-post-compile"> | |
| 71 <!-- copy gdbserver to main libs directory if building debug. --> | |
| 72 <if> | |
| 73 <condition> | |
| 74 <equals arg1="${build.target}" arg2="debug" /> | |
| 75 </condition> | |
| 76 <then> | |
| 77 <copy todir="${out.dir}/libs/${target.abi}"> | |
| 78 <path refid="native.libs.gdbserver"/> | |
| 79 </copy> | |
| 80 </then> | |
| 81 </if> | |
| 82 </target> | |
| 83 | |
| 84 <import file="${CHROMIUM_SRC}/build/android/ant/sdk-targets.xml"/> | |
| 85 <import file="${sdk.dir}/tools/ant/build.xml" /> | |
| 86 | |
| 87 </project> | |
| OLD | NEW |