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

Side by Side Diff: android_webview/java/android_webview_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 | « no previous file | android_webview/javatests/android_webview_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="AndroidWebView" default="debug" basedir=".">
8 <description>
9 Building AndroidWebView.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}/android_webview"
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="javac.srcdirs.additional">
37 <filelist files="${ADDITIONAL_SRC_DIRS}"/>
38 <filelist files="${GENERATED_SRC_DIRS}"/>
39 </path>
40
41 <path id="out.dex.jar.input.ref">
42 <filelist files="${INPUT_JARS_PATHS}"/>
43 </path>
44 <echo>resources: ${RESOURCE_DIR} classpath: ${toString:out.dex.jar.input.ref}< /echo>
45 <target name="-post-compile">
46 <!--
47 Copy gdbserver to main libs directory if building debug.
48 TODO(jrg): for now, Chrome on Android always builds native code
49 as Release and java/ant as Debug, which means we always install
50 gdbserver. Resolve this discrepancy, possibly by making this
51 Release Official build java/ant as Release.
52 -->
53 <if>
54 <condition>
55 <equals arg1="${build.target}" arg2="debug"/>
56 </condition>
57 <then>
58 <echo message="Copying gdbserver to the apk to enable native debugging"/ >
59 <copy todir="${out.dir}/libs/${target.abi}">
60 <path refid="native.libs.gdbserver"/>
61 </copy>
62 </then>
63 </if>
64 </target>
65
66 <!-- Classpath for javac -->
67 <path id="javac.custom.classpath">
68 <path refid="out.dex.jar.input.ref"/>
69 </path>
70
71 <import file="../../build/android/ant/sdk-targets.xml"/>
72 <import file="${sdk.dir}/tools/ant/build.xml"/>
73 </project>
OLDNEW
« no previous file with comments | « no previous file | android_webview/javatests/android_webview_test_apk.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698