OLD | NEW |
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 | 7 |
8 assert(is_android) | 8 assert(is_android) |
9 | 9 |
10 # These identify targets that have .build_config files (except for android_apk, | 10 # These identify targets that have .build_config files (except for android_apk, |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 ] | 694 ] |
695 foreach(c, _input_jars_paths) { | 695 foreach(c, _input_jars_paths) { |
696 args += [ "--classpath=" + rebase_path(c, root_build_dir) ] | 696 args += [ "--classpath=" + rebase_path(c, root_build_dir) ] |
697 } | 697 } |
698 if (proguard_verbose) { | 698 if (proguard_verbose) { |
699 args += [ "--verbose" ] | 699 args += [ "--verbose" ] |
700 } | 700 } |
701 if (defined(invoker.args)) { | 701 if (defined(invoker.args)) { |
702 args += invoker.args | 702 args += invoker.args |
703 } | 703 } |
| 704 if (defined(invoker.proguard_jar_path)) { |
| 705 # We assume that if we are using a different ProGuard, this new version |
| 706 # can handle the 'dangerous' optimizaions. |
| 707 args += [ "--enable-dangerous-optimizations" ] |
| 708 } |
704 } | 709 } |
705 } | 710 } |
706 | 711 |
707 template("findbugs") { | 712 template("findbugs") { |
708 action(target_name) { | 713 action(target_name) { |
709 forward_variables_from(invoker, | 714 forward_variables_from(invoker, |
710 [ | 715 [ |
711 "deps", | 716 "deps", |
712 "testonly", | 717 "testonly", |
713 ]) | 718 ]) |
(...skipping 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2540 outputs = [ | 2545 outputs = [ |
2541 depfile, | 2546 depfile, |
2542 invoker.out_manifest, | 2547 invoker.out_manifest, |
2543 ] | 2548 ] |
2544 inputs = [ | 2549 inputs = [ |
2545 invoker.main_manifest, | 2550 invoker.main_manifest, |
2546 ] | 2551 ] |
2547 } | 2552 } |
2548 } | 2553 } |
2549 } | 2554 } |
OLD | NEW |