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

Side by Side Diff: build/android/ant/apk-package.xml

Issue 22870021: [Android] Makes GYP changes for EMMA coverage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverts accidental change in common.gypi, moves emma_device_jar to gyp Created 7 years, 4 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 | build/android/dex_action.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- 2 <!--
3 Copyright (C) 2005-2008 The Android Open Source Project 3 Copyright (C) 2005-2008 The Android Open Source Project
4 4
5 Licensed under the Apache License, Version 2.0 (the "License"); 5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License. 6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at 7 You may obtain a copy of the License at
8 8
9 http://www.apache.org/licenses/LICENSE-2.0 9 http://www.apache.org/licenses/LICENSE-2.0
10 10
11 Unless required by applicable law or agreed to in writing, software 11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS, 12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and 14 See the License for the specific language governing permissions and
15 limitations under the License. 15 limitations under the License.
16 --> 16 -->
17 17
18 <project default="-package"> 18 <project default="-package">
19 <property name="verbose" value="false" /> 19 <property name="verbose" value="false" />
20 <property name="out.dir" location="${OUT_DIR}" /> 20 <property name="out.dir" location="${OUT_DIR}" />
21 <property name="out.absolute.dir" location="${out.dir}" /> 21 <property name="out.absolute.dir" location="${out.dir}" />
22 22
23 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/> 23 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/>
24 <property name="emma.device.jar" location="${EMMA_DEVICE_JAR}" />
25
26 <condition property="emma.enabled" value="true" else="false">
27 <equals arg1="${EMMA_INSTRUMENT}" arg2="1"/>
28 </condition>
24 29
25 <!-- jar file from where the tasks are loaded --> 30 <!-- jar file from where the tasks are loaded -->
26 <path id="android.antlibs"> 31 <path id="android.antlibs">
27 <pathelement path="${sdk.dir}/tools/lib/ant-tasks.jar" /> 32 <pathelement path="${sdk.dir}/tools/lib/ant-tasks.jar" />
28 </path> 33 </path>
29 34
30 <!-- Custom tasks --> 35 <!-- Custom tasks -->
31 <taskdef resource="anttasks.properties" classpathref="android.antlibs" /> 36 <taskdef resource="anttasks.properties" classpathref="android.antlibs" />
32 37
33 <condition property="build.target" value="release" else="debug"> 38 <condition property="build.target" value="release" else="debug">
(...skipping 13 matching lines...) Expand all
47 52
48 <!-- Intermediate files --> 53 <!-- Intermediate files -->
49 <property name="resource.package.file.name" value="${APK_NAME}.ap_" /> 54 <property name="resource.package.file.name" value="${APK_NAME}.ap_" />
50 55
51 <property name="dex.file.name" value="classes.dex" /> 56 <property name="dex.file.name" value="classes.dex" />
52 <property name="intermediate.dex.file" location="${out.absolute.dir}/${dex.fil e.name}" /> 57 <property name="intermediate.dex.file" location="${out.absolute.dir}/${dex.fil e.name}" />
53 58
54 <property name="source.dir" value="${SOURCE_DIR}" /> 59 <property name="source.dir" value="${SOURCE_DIR}" />
55 <property name="source.absolute.dir" location="${source.dir}" /> 60 <property name="source.absolute.dir" location="${source.dir}" />
56 61
62 <!-- Macro that enables passing a variable list of external jar files
63 to ApkBuilder. -->
64 <macrodef name="package-helper">
65 <element name="extra-jars" optional="yes" />
66 <sequential>
67 <apkbuilder
68 outfolder="${out.absolute.dir}"
69 resourcefile="${resource.package.file.name}"
70 apkfilepath="${out.packaged.file}"
71 debugpackaging="${build.is.packaging.debug}"
72 debugsigning="${build.is.signing.debug}"
73 verbose="${verbose}"
74 hascode="true"
75 previousBuildType="/"
76 buildType="${build.is.packaging.debug}/${build.is.signing.debug}">
77 <dex path="${intermediate.dex.file}"/>
78 <sourcefolder path="${source.absolute.dir}"/>
79 <nativefolder path="${native.libs.absolute.dir}" />
80 <extra-jars/>
81 </apkbuilder>
82 </sequential>
83 </macrodef>
84
85
57 <!-- Packages the application. --> 86 <!-- Packages the application. -->
58 <target name="-package"> 87 <target name="-package">
59 <apkbuilder 88 <if condition="${emma.enabled}">
60 outfolder="${out.absolute.dir}" 89 <then>
61 resourcefile="${resource.package.file.name}" 90 <package-helper>
62 apkfilepath="${out.packaged.file}" 91 <extra-jars>
63 debugpackaging="${build.is.packaging.debug}" 92 <jarfile path="${emma.device.jar}" />
64 debugsigning="${build.is.signing.debug}" 93 </extra-jars>
65 verbose="${verbose}" 94 </package-helper>
66 hascode="true" 95 </then>
67 previousBuildType="/" 96 <else>
68 buildType="${build.is.packaging.debug}/${build.is.signing.debug}"> 97 <package-helper />
69 <dex path="${intermediate.dex.file}"/> 98 </else>
70 <sourcefolder path="${source.absolute.dir}"/> 99 </if>
71 <nativefolder path="${native.libs.absolute.dir}" />
72 </apkbuilder>
73 </target> 100 </target>
74 </project> 101 </project>
OLDNEW
« no previous file with comments | « no previous file | build/android/dex_action.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698