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

Side by Side Diff: build/config/android/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
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("//base/android/linker/config.gni") 5 import("//base/android/linker/config.gni")
6 import("//build/config/android/config.gni") 6 import("//build/config/android/config.gni")
7 import("//build/config/android/internal_rules.gni") 7 import("//build/config/android/internal_rules.gni")
8 import("//build/config/sanitizers/sanitizers.gni") 8 import("//build/config/sanitizers/sanitizers.gni")
9 import("//build/toolchain/toolchain.gni") 9 import("//build/toolchain/toolchain.gni")
10 import("//third_party/android_platform/config.gni") 10 import("//third_party/android_platform/config.gni")
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 deps = _native_libs_deps + _android_manifest_deps 1443 deps = _native_libs_deps + _android_manifest_deps
1444 if (defined(invoker.deps)) { 1444 if (defined(invoker.deps)) {
1445 deps += invoker.deps 1445 deps += invoker.deps
1446 } 1446 }
1447 1447
1448 if (defined(invoker.alternative_locale_resource_dep)) { 1448 if (defined(invoker.alternative_locale_resource_dep)) {
1449 deps += [ invoker.alternative_locale_resource_dep ] 1449 deps += [ invoker.alternative_locale_resource_dep ]
1450 has_alternative_locale_resource = true 1450 has_alternative_locale_resource = true
1451 } 1451 }
1452 1452
1453 # Added emma to the target's classpath via its .build_config.
1454 if (emma_coverage && !_emma_never_instrument) {
1455 deps += [ "//third_party/android_tools:emma_device" ]
1456 }
1457
1453 proguard_enabled = _proguard_enabled 1458 proguard_enabled = _proguard_enabled
1454 if (_proguard_enabled) { 1459 if (_proguard_enabled) {
1455 proguard_info = "$_proguard_jar_path.info" 1460 proguard_info = "$_proguard_jar_path.info"
1456 } 1461 }
1457 1462
1458 native_libs = _native_libs 1463 native_libs = _native_libs
1459 } 1464 }
1460 1465
1461 _final_deps = [] 1466 _final_deps = []
1462 1467
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 1674
1670 # All deps are already included in _dex_sources when proguard is used. 1675 # All deps are already included in _dex_sources when proguard is used.
1671 if (!_proguard_enabled) { 1676 if (!_proguard_enabled) {
1672 if (enable_multidex) { 1677 if (enable_multidex) {
1673 _dex_arg_key = "${_rebased_build_config}:dist_jar:dependency_jars" 1678 _dex_arg_key = "${_rebased_build_config}:dist_jar:dependency_jars"
1674 } else { 1679 } else {
1675 _dex_arg_key = "${_rebased_build_config}:final_dex:dependency_dex_files" 1680 _dex_arg_key = "${_rebased_build_config}:final_dex:dependency_dex_files"
1676 } 1681 }
1677 args = [ "--inputs=@FileArg($_dex_arg_key)" ] 1682 args = [ "--inputs=@FileArg($_dex_arg_key)" ]
1678 } 1683 }
1679
1680 if (emma_coverage && !_emma_never_instrument) {
1681 no_locals = true
1682 sources += [ "$android_sdk_root/tools/lib/emma_device.jar" ]
1683 }
1684 } 1684 }
1685 1685
1686 _native_libs_file_arg_dep = ":$build_config_target" 1686 _native_libs_file_arg_dep = ":$build_config_target"
1687 _native_libs_file_arg = "@FileArg($_rebased_build_config:native:libraries)" 1687 _native_libs_file_arg = "@FileArg($_rebased_build_config:native:libraries)"
1688 1688
1689 if (_native_libs != [] && _enable_relocation_packing) { 1689 if (_native_libs != [] && _enable_relocation_packing) {
1690 _prepare_native_target_name = "${_template_name}__prepare_native" 1690 _prepare_native_target_name = "${_template_name}__prepare_native"
1691 _native_libs_dir = "$gen_dir/packed-libs" 1691 _native_libs_dir = "$gen_dir/packed-libs"
1692 _native_libs_json = "$gen_dir/packed-libs/filelist.json" 1692 _native_libs_json = "$gen_dir/packed-libs/filelist.json"
1693 _rebased_native_libs_json = rebase_path(_native_libs_json, root_build_dir) 1693 _rebased_native_libs_json = rebase_path(_native_libs_json, root_build_dir)
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
2416 "--target", 2416 "--target",
2417 rebase_path(invoker.target, root_build_dir), 2417 rebase_path(invoker.target, root_build_dir),
2418 "--output-directory", 2418 "--output-directory",
2419 rebase_path(root_out_dir, root_build_dir), 2419 rebase_path(root_out_dir, root_build_dir),
2420 ] 2420 ]
2421 if (defined(invoker.flag_name)) { 2421 if (defined(invoker.flag_name)) {
2422 args += [ "--flag-name=${invoker.flag_name}" ] 2422 args += [ "--flag-name=${invoker.flag_name}" ]
2423 } 2423 }
2424 } 2424 }
2425 } 2425 }
OLDNEW
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | build/secondary/third_party/android_tools/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698