1 <?xml version="1.0" encoding="UTF-8"?>
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.
7 <project name="ContentShell" default="debug" basedir=".">
9 Building ContentShell.apk
11 <import file="../../../../build/android/ant/common.xml"/>
13 <!-- Convert the buildtype to lowercase. E.g Debug -> debug, Release -> release. -->
14 <script language="javascript">
15 project.setProperty("configuration.name",
16 project.getProperty("CONFIGURATION_NAME").toLowerCase())
18 <property-value name="target.abi" value="${APP_ABI}"/>
19 <property-location name="out.dir" location="${PRODUCT_DIR}/content_shell"
20 check-exists="false"/>
21 <property name="resource.absolute.dir" value="../res"/>
22 <property name="gen.absolute.dir" value="${out.dir}/gen"/>
23 <property name="jar.libs.dir" value="${out.dir}/java/libs"/>
24 <path id="native.libs.gdbserver">
25 <fileset file="${android.gdbserver}"/>
27 <property name="native.libs.absolute.dir" location="${out.dir}/libs"/>
28 <property name="asset.absolute.dir" location="${out.dir}/assets"/>
30 <path id="out.dex.jar.input.ref">
31 <filelist files="${INPUT_JARS_PATHS}"/>
33 <property name="java.compilerargs" value="-classpath ${toString:out.dex.jar.input.ref}"/>
35 <echo>classpath: ${toString:out.dex.jar.input.ref}</echo>
37 <!-- We expect PRODUCT_DIR to be set like the gyp var (e.g. $ROOT/out/Debug) -->
38 <fail message="PRODUCT_DIR env var not set?">
41 <isset property="PRODUCT_DIR"/>
46 <target name="-post-compile">
48 Copy gdbserver to main libs directory if building debug.
49 TODO(jrg): for now, Chrome on Android always builds native code
50 as Release and java/ant as Debug, which means we always install
51 gdbserver. Resolve this discrepancy, possibly by making this
52 Release Official build java/ant as Release.
56 <equals arg1="${build.target}" arg2="debug"/>
59 <echo message="Copying gdbserver to the apk to enable native debugging" />
60 <copy todir="${out.dir}/libs/${target.abi}">
61 <path refid="native.libs.gdbserver"/>
67 <!-- Classpath for javac -->
68 <path id="javac.custom.classpath">
69 <path refid="out.dex.jar.input.ref"/>
72 <import file="../../../../build/android/ant/sdk-targets.xml"/>
73 <import file="${sdk.dir}/tools/ant/build.xml"/>