| 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 <project name="ContentShell" default="debug" basedir="."> | |
| 8 <description> | |
| 9 Building ContentShell.apk | |
| 10 </description> | |
| 11 <import file="../../../../build/android/ant/common.xml"/> | |
| 12 | |
| 13 <!-- | |
| 14 Convert the buildtype to lowercase. E.g Debug -> debug, | |
| 15 Release -> release. | |
| 16 --> | |
| 17 <script language="javascript"> | |
| 18 project.setProperty("configuration.name", | |
| 19 project.getProperty("CONFIGURATION_NAME").toLowerCase()) | |
| 20 </script> | |
| 21 <property-value name="target.abi" value="${APP_ABI}"/> | |
| 22 <property-location name="out.dir" location="${PRODUCT_DIR}/content_shell" | |
| 23 check-exists="false"/> | |
| 24 <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/> | |
| 25 <property name="gen.absolute.dir" value="${out.dir}/gen"/> | |
| 26 <path id="native.libs.gdbserver"> | |
| 27 <fileset file="${android.gdbserver}"/> | |
| 28 </path> | |
| 29 <property name="native.libs.absolute.dir" location="${out.dir}/libs"/> | |
| 30 <property name="asset.absolute.dir" location="${out.dir}/assets"/> | |
| 31 <!-- Set the output directory for the final apk to the ${apks.dir}. --> | |
| 32 <property-location name="out.final.file" | |
| 33 location="${apks.dir}/${ant.project.name}-debug.apk" | |
| 34 check-exists="false"/> | |
| 35 | |
| 36 <path id="out.dex.jar.input.ref"> | |
| 37 <filelist files="${INPUT_JARS_PATHS}"/> | |
| 38 </path> | |
| 39 <echo>resources: ${RESOURCE_DIR} classpath: ${toString:out.dex.jar.input.ref}<
/echo> | |
| 40 <target name="-post-compile"> | |
| 41 <!-- | |
| 42 Copy gdbserver to main libs directory if building debug. | |
| 43 TODO(jrg): for now, Chrome on Android always builds native code | |
| 44 as Release and java/ant as Debug, which means we always install | |
| 45 gdbserver. Resolve this discrepancy, possibly by making this | |
| 46 Release Official build java/ant as Release. | |
| 47 --> | |
| 48 <if> | |
| 49 <condition> | |
| 50 <equals arg1="${build.target}" arg2="debug"/> | |
| 51 </condition> | |
| 52 <then> | |
| 53 <echo message="Copying gdbserver to the apk to enable native debugging"/
> | |
| 54 <copy todir="${out.dir}/libs/${target.abi}"> | |
| 55 <path refid="native.libs.gdbserver"/> | |
| 56 </copy> | |
| 57 </then> | |
| 58 </if> | |
| 59 | |
| 60 <!-- Package all the compiled .class files into a .jar. --> | |
| 61 <jar | |
| 62 jarfile="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar" | |
| 63 basedir="${out.classes.absolute.dir}" | |
| 64 /> | |
| 65 </target> | |
| 66 | |
| 67 <!-- Classpath for javac --> | |
| 68 <path id="javac.custom.classpath"> | |
| 69 <path refid="out.dex.jar.input.ref"/> | |
| 70 </path> | |
| 71 | |
| 72 <import file="../../../../build/android/ant/sdk-targets.xml"/> | |
| 73 <import file="${sdk.dir}/tools/ant/build.xml"/> | |
| 74 </project> | |
| OLD | NEW |