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

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

Issue 1711253002: Make _incremental targets work with emma_coverage=true (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 4 years, 10 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/incremental_install/BUILD.gn ('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 import("//build/config/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 import("//build/config/zip.gni") 7 import("//build/config/zip.gni")
8 import("//third_party/ijar/ijar.gni") 8 import("//third_party/ijar/ijar.gni")
9 9
10 assert(is_android) 10 assert(is_android)
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 "--android-sdk-tools", 303 "--android-sdk-tools",
304 rebased_android_sdk_build_tools, 304 rebased_android_sdk_build_tools,
305 "--dex-path", 305 "--dex-path",
306 rebased_output, 306 rebased_output,
307 ] 307 ]
308 308
309 if (enable_incremental_dx) { 309 if (enable_incremental_dx) {
310 args += [ "--incremental" ] 310 args += [ "--incremental" ]
311 } 311 }
312 312
313 if (defined(invoker.no_locals) && invoker.no_locals) { 313 # EMMA requires --no-locals.
314 if (emma_coverage) {
314 args += [ "--no-locals=1" ] 315 args += [ "--no-locals=1" ]
315 } 316 }
316 317
317 if (_enable_multidex) { 318 if (_enable_multidex) {
318 args += [ 319 args += [
319 "--multi-dex", 320 "--multi-dex",
320 "--main-dex-list-path", 321 "--main-dex-list-path",
321 rebase_path(_main_dex_list_path, root_build_dir), 322 rebase_path(_main_dex_list_path, root_build_dir),
322 ] 323 ]
323 deps += [ ":${_main_dex_list_target_name}" ] 324 deps += [ ":${_main_dex_list_target_name}" ]
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 } 1737 }
1737 } 1738 }
1738 } 1739 }
1739 1740
1740 _final_deps += [ ":${_template_name}__dex" ] 1741 _final_deps += [ ":${_template_name}__dex" ]
1741 dex("${_template_name}__dex") { 1742 dex("${_template_name}__dex") {
1742 sources = [ 1743 sources = [
1743 _jar_path, 1744 _jar_path,
1744 ] 1745 ]
1745 output = _dex_path 1746 output = _dex_path
1746 no_locals = _emma_instrument
1747 deps = [ 1747 deps = [
1748 ":$_compile_java_target", 1748 ":$_compile_java_target",
1749 ] 1749 ]
1750 } 1750 }
1751 } 1751 }
1752 1752
1753 group(target_name) { 1753 group(target_name) {
1754 forward_variables_from(invoker, [ "visibility" ]) 1754 forward_variables_from(invoker, [ "visibility" ])
1755 public_deps = _final_deps 1755 public_deps = _final_deps
1756 data_deps = _final_datadeps 1756 data_deps = _final_datadeps
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
2159 ] 2159 ]
2160 args = [ 2160 args = [
2161 "--depfile", 2161 "--depfile",
2162 rebase_path(depfile, root_build_dir), 2162 rebase_path(depfile, root_build_dir),
2163 "--script-output-path", 2163 "--script-output-path",
2164 rebase_path(generated_script, root_build_dir), 2164 rebase_path(generated_script, root_build_dir),
2165 ] 2165 ]
2166 args += test_runner_args 2166 args += test_runner_args
2167 } 2167 }
2168 } 2168 }
OLDNEW
« no previous file with comments | « build/android/incremental_install/BUILD.gn ('k') | build/config/android/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698