Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Side by Side Diff: chrome/android/testshell/java/chromium_testshell_apk.xml

Issue 10959034: Make apks build from a single ant .xml template (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/java_apk.gypi ('k') | chrome/android/testshell/javatests/chromium_testshell_test_apk.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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="ChromiumTestShell" default="debug" basedir=".">
8 <description>
9 Building ChromiumTestShell.apk
10 </description>
11 <import file="../../../../build/android/ant/common.xml"/>
12
13 <property-value name="target.abi" value="${APP_ABI}"/>
14 <property-location name="out.dir" location="${PRODUCT_DIR}/chromium_testshell"
15 check-exists="false"/>
16 <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/>
17 <property name="gen.absolute.dir" value="${out.dir}/gen"/>
18
19 <path id="native.libs.gdbserver">
20 <fileset file="${android.gdbserver}"/>
21 </path>
22 <property name="native.libs.absolute.dir" location="${out.dir}/libs"/>
23 <property-location name="asset.absolute.dir" location="${PRODUCT_DIR}/../asset s/chrome"/>
24 <!-- Set the output directory for the final apk to the ${apks.dir}. -->
25 <property-location name="out.final.file"
26 location="${apks.dir}/${ant.project.name}-debug.apk"
27 check-exists="false"/>
28
29 <path id="javac.srcdirs.additional">
30 <filelist files="${ADDITIONAL_SRC_DIRS}"/>
31 <filelist files="${GENERATED_SRC_DIRS}"/>
32 </path>
33
34 <path id="out.dex.jar.input.ref">
35 <filelist files="${INPUT_JARS_PATHS}"/>
36 </path>
37
38 <!-- We expect PRODUCT_DIR to be set like the gyp var (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 <target name="-post-compile">
48 <!--
49 Copy gdbserver to main libs directory if building debug.
50 TODO(jrg): for now, Chrome on Android always builds native code
51 as Release and java/ant as Debug, which means we always install
52 gdbserver. Resolve this discrepancy, possibly by making this
53 Release Official build java/ant as Release.
54 -->
55 <if>
56 <condition>
57 <equals arg1="${build.target}" arg2="debug"/>
58 </condition>
59 <then>
60 <echo message="Copying gdbserver to the apk to enable native debugging" />
61 <copy todir="${out.dir}/libs/${target.abi}">
62 <path refid="native.libs.gdbserver"/>
63 </copy>
64 </then>
65 </if>
66
67 <!-- Package all the compiled .class files into a .jar. -->
68 <jar
69 jarfile="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar"
70 basedir="${out.classes.absolute.dir}"
71 />
72 </target>
73
74 <!-- Classpath for javac -->
75 <path id="javac.custom.classpath">
76 <path refid="out.dex.jar.input.ref"/>
77 </path>
78
79 <import file="../../../../build/android/ant/sdk-targets.xml"/>
80 <import file="${sdk.dir}/tools/ant/build.xml"/>
81 </project>
82
OLDNEW
« no previous file with comments | « build/java_apk.gypi ('k') | chrome/android/testshell/javatests/chromium_testshell_test_apk.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698