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

Side by Side Diff: build/android/ant/sdk-targets.xml

Issue 10905138: Add test jar generation logic for ant builds. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 3 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/android/ant/create-test-jar.js ('k') | build/android/buildbot/buildbot_functions.sh » ('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) 2012 The Chromium Authors. All rights reserved. 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 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <project name="chrome_sdk_overrides" > 7 <project name="chrome_sdk_overrides" >
8 <!-- 8 <!--
9 Redefinition of targets used by SDK tools. 9 Redefinition of targets used by SDK tools.
10 Supported version: SDK tools revision 20. 10 Supported version: SDK tools revision 20.
11 11
12 SDK tools do not allow easy way of extending classpaths 12 SDK tools do not allow easy way of extending classpaths
13 for aidl and javac. This file defines targets which can be used to 13 for aidl and javac. This file defines targets which can be used to
14 override targets used by tools. 14 override targets used by tools.
15 --> 15 -->
16
17 <!-- 16 <!--
18 Override the -compile target. 17 Override the -compile target.
19 This target requires 'javac.custom.classpath' to be set to reference 18 This target requires 'javac.custom.classpath' to be set to reference
20 of classpath to be used for javac. Also accepts custom path for 19 of classpath to be used for javac. Also accepts custom path for
21 sources: 'javac.custom.sourcepath'. 20 sources: 'javac.custom.sourcepath'.
22 --> 21 -->
23 <target 22 <target
24 name="-compile" 23 name="-compile"
25 depends="-build-setup, -pre-build, -code-gen, -pre-compile"> 24 depends="-build-setup, -pre-build, -code-gen, -pre-compile">
26 <do-only-if-manifest-hasCode elseText="hasCode = false. Skipping..." > 25 <do-only-if-manifest-hasCode elseText="hasCode = false. Skipping..." >
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 metadatafile="${emma.coverage.absolute.file}" 84 metadatafile="${emma.coverage.absolute.file}"
86 mode="overwrite" 85 mode="overwrite"
87 outdir="${out.absolute.dir}/classes" 86 outdir="${out.absolute.dir}/classes"
88 verbosity="${verbosity}"> 87 verbosity="${verbosity}">
89 <filter excludes="${emma.default.filter}"/> 88 <filter excludes="${emma.default.filter}"/>
90 <filter value="${emma.filter}"/> 89 <filter value="${emma.filter}"/>
91 </instr> 90 </instr>
92 </emma> 91 </emma>
93 </then> 92 </then>
94 </if> 93 </if>
94 <!--
95 If the project needs a test jar then generate a jar containing
96 all compiled classes and referenced jars.
97 -->
98 <if condition="${generate.test.jar}">
99 <then>
100 <echo level="info">Creating test jar file:
101 ${ant.project.name}-debug.jar</echo>
102 <property-location name="create.test.jar.file"
103 location="${CHROMIUM_SRC}/build/android/ant/create-test-jar.js"/>
104 <script language="javascript" src="${create.test.jar.file}"/>
105 </then>
106 </if>
107
95 </do-only-if-manifest-hasCode> 108 </do-only-if-manifest-hasCode>
96 </target> 109 </target>
97 110
98 <!-- 111 <!--
99 For debug builds, the Android SDK tools create a key in ~/.android and sign the build with it. 112 For debug builds, the Android SDK tools create a key in ~/.android and sign the build with it.
100 This has caused all kinds of issues. Instead, the debug build should be sign ed with a key in 113 This has caused all kinds of issues. Instead, the debug build should be sign ed with a key in
101 build/android/ant. The SDK tools do not provide any support for overriding t hat behavior and so 114 build/android/ant. The SDK tools do not provide any support for overriding t hat behavior and so
102 instead one must use the hack below. 115 instead one must use the hack below.
103 --> 116 -->
104 117
105 <!-- Disables automatic signing. --> 118 <!-- Disables automatic signing. -->
106 <property name="build.is.signing.debug" value="false"/> 119 <property name="build.is.signing.debug" value="false"/>
107 120
108 <!-- TODO(cjhopman): Remove this property when all gyp files define the CHROMI UM_SRC property. --> 121 <!-- TODO(cjhopman): Remove this property when all gyp files define the CHROMI UM_SRC property. -->
109 <property name="CHROMIUM_SRC" value="${PRODUCT_DIR}/../.." /> 122 <property name="CHROMIUM_SRC" value="${PRODUCT_DIR}/../.." />
110 123
111 <property name="key.store" value="${CHROMIUM_SRC}/build/android/ant/chromium-d ebug.keystore"/> 124 <property name="key.store" value="${CHROMIUM_SRC}/build/android/ant/chromium-d ebug.keystore"/>
112 <property name="key.store.password" value="chromium"/> 125 <property name="key.store.password" value="chromium"/>
113 <property name="key.alias" value="chromiumdebugkey"/> 126 <property name="key.alias" value="chromiumdebugkey"/>
114 <property name="key.alias.password" value="chromium"/> 127 <property name="key.alias.password" value="chromium"/>
115 128
116 <!-- SDK tools assume that out.packaged.file is signed and name it "...-unalig ned" --> 129 <!-- SDK tools assume that out.packaged.file is signed and name it "...-unalig ned" -->
117 <property name="out.packaged.file" 130 <property name="out.packaged.file"
118 value="${out.dir}/${ant.project.name}-debug-unsigned.apk" /> 131 value="${apks.dir}/${ant.project.name}-debug-unsigned.apk" />
119 <property name="out.unaligned.file" 132 <property name="out.unaligned.file"
120 value="${out.dir}/${ant.project.name}-debug-unaligned.apk" /> 133 value="${apks.dir}/${ant.project.name}-debug-unaligned.apk" />
121 134
122 <!-- By default, the SDK tools build only aligns the APK in the -do-debug targ et. --> 135 <!-- By default, the SDK tools build only aligns the APK in the -do-debug targ et. -->
123 <target name="-do-debug" 136 <target name="-do-debug"
124 depends="-set-debug-mode, -debug-obfuscation-check, -package, -post-packag e"> 137 depends="-set-debug-mode, -debug-obfuscation-check, -package, -post-packag e">
125 <!-- only create apk if *not* a library project --> 138 <!-- only create apk if *not* a library project -->
126 <do-only-if-not-library elseText="Library project: do not create apk..." > 139 <do-only-if-not-library elseText="Library project: do not create apk..." >
127 <sequential> 140 <sequential>
128 <!-- Signs the APK --> 141 <!-- Signs the APK -->
129 <echo level="info">Signing final apk...</echo> 142 <echo level="info">Signing final apk...</echo>
130 <signapk 143 <signapk
131 input="${out.packaged.file}" 144 input="${out.packaged.file}"
132 output="${out.unaligned.file}" 145 output="${out.unaligned.file}"
133 keystore="${key.store}" 146 keystore="${key.store}"
134 storepass="${key.store.password}" 147 storepass="${key.store.password}"
135 alias="${key.alias}" 148 alias="${key.alias}"
136 keypass="${key.alias.password}"/> 149 keypass="${key.alias.password}"/>
137 150
138 <!-- Zip aligns the APK --> 151 <!-- Zip aligns the APK -->
139 <zipalign-helper 152 <zipalign-helper
140 in.package="${out.unaligned.file}" 153 in.package="${out.unaligned.file}"
141 out.package="${out.final.file}" /> 154 out.package="${out.final.file}" />
142 <echo level="info">Release Package: ${out.final.file}</echo> 155 <echo level="info">Release Package: ${out.final.file}</echo>
143 </sequential> 156 </sequential>
144 </do-only-if-not-library> 157 </do-only-if-not-library>
145 <record-build-info /> 158 <record-build-info />
146 </target> 159 </target>
147 </project> 160 </project>
OLDNEW
« no previous file with comments | « build/android/ant/create-test-jar.js ('k') | build/android/buildbot/buildbot_functions.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698