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

Side by Side Diff: build/config/android/internal_rules.gni

Issue 1096793003: Make test apks exclude dex files in tested apk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 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/gyp/write_build_config.py ('k') | build/config/android/rules.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 6
7 assert(is_android) 7 assert(is_android)
8 8
9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) 9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir)
10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) 10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir)
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 if (defined(invoker.deps)) { 219 if (defined(invoker.deps)) {
220 deps += invoker.deps 220 deps += invoker.deps
221 } 221 }
222 222
223 possible_deps_configs = [] 223 possible_deps_configs = []
224 foreach(d, deps) { 224 foreach(d, deps) {
225 dep_gen_dir = get_label_info(d, "target_gen_dir") 225 dep_gen_dir = get_label_info(d, "target_gen_dir")
226 dep_name = get_label_info(d, "name") 226 dep_name = get_label_info(d, "name")
227 possible_deps_configs += [ "$dep_gen_dir/$dep_name.build_config" ] 227 possible_deps_configs += [ "$dep_gen_dir/$dep_name.build_config" ]
228 } 228 }
229 rebase_possible_deps_configs = rebase_path(possible_deps_configs) 229 rebase_possible_deps_configs =
230 rebase_path(possible_deps_configs, root_build_dir)
230 231
231 outputs = [ 232 outputs = [
232 depfile, 233 depfile,
233 build_config, 234 build_config,
234 ] 235 ]
235 236
236 args = [ 237 args = [
237 "--type", 238 "--type",
238 type, 239 type,
239 "--depfile", 240 "--depfile",
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 args += [ "--supports-android" ] 282 args += [ "--supports-android" ]
282 } 283 }
283 if (requires_android) { 284 if (requires_android) {
284 args += [ "--requires-android" ] 285 args += [ "--requires-android" ]
285 } 286 }
286 if (defined(invoker.bypass_platform_checks) && 287 if (defined(invoker.bypass_platform_checks) &&
287 invoker.bypass_platform_checks) { 288 invoker.bypass_platform_checks) {
288 args += [ "--bypass-platform-checks" ] 289 args += [ "--bypass-platform-checks" ]
289 } 290 }
290 291
292 if (defined(invoker.apk_under_test)) {
293 deps += [ invoker.apk_under_test ]
294 apk_under_test_gen_dir =
295 get_label_info(invoker.apk_under_test, "target_gen_dir")
296 apk_under_test_name = get_label_info(invoker.apk_under_test, "name")
297 apk_under_test_config =
298 "$apk_under_test_gen_dir/$apk_under_test_name.build_config"
299 args += [
300 "--tested-apk-config",
301 rebase_path(apk_under_test_config, root_build_dir),
302 ]
303 }
304
291 if (is_android_resources || is_apk) { 305 if (is_android_resources || is_apk) {
292 assert(defined(invoker.resources_zip)) 306 assert(defined(invoker.resources_zip))
293 args += [ 307 args += [
294 "--resources-zip", 308 "--resources-zip",
295 rebase_path(invoker.resources_zip, root_build_dir), 309 rebase_path(invoker.resources_zip, root_build_dir),
296 ] 310 ]
297 if (defined(invoker.android_manifest)) { 311 if (defined(invoker.android_manifest)) {
298 inputs += [ invoker.android_manifest ] 312 inputs += [ invoker.android_manifest ]
299 args += [ 313 args += [
300 "--android-manifest", 314 "--android-manifest",
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 ] 1152 ]
1139 output = invoker.dex_path 1153 output = invoker.dex_path
1140 dex_arg_key = "${rebased_build_config}:final_dex:dependency_dex_files" 1154 dex_arg_key = "${rebased_build_config}:final_dex:dependency_dex_files"
1141 args = [ "--inputs=@FileArg($dex_arg_key)" ] 1155 args = [ "--inputs=@FileArg($dex_arg_key)" ]
1142 if (defined(invoker.excluded_jars)) { 1156 if (defined(invoker.excluded_jars)) {
1143 excluded_jars = rebase_path(invoker.excluded_jars, root_build_dir) 1157 excluded_jars = rebase_path(invoker.excluded_jars, root_build_dir)
1144 args += [ "--excluded-paths=${excluded_jars}" ] 1158 args += [ "--excluded-paths=${excluded_jars}" ]
1145 } 1159 }
1146 } 1160 }
1147 } 1161 }
OLDNEW
« no previous file with comments | « build/android/gyp/write_build_config.py ('k') | build/config/android/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698