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

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

Issue 1000793002: [Android] Incorporate findbugs into android builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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("//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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 "--processed-config-path", 55 "--processed-config-path",
56 rebase_path(config_path, root_build_dir), 56 rebase_path(config_path, root_build_dir),
57 "--result-path", 57 "--result-path",
58 rebase_path(result_path, root_build_dir), 58 rebase_path(result_path, root_build_dir),
59 "--java-files=$rebased_java_files", 59 "--java-files=$rebased_java_files",
60 "--enable", 60 "--enable",
61 ] 61 ]
62 } 62 }
63 } 63 }
64 64
65 template("findbugs") {
66 jar_path = invoker.jar_path
67
68 build_config = invoker.build_config
69
70 action(target_name) {
71 script = "//build/android/findbugs_diff.py"
72 depfile = "$target_gen_dir/$target_name.d"
73 result_path = "$target_gen_dir/$target_name/result.xml"
74 exclusions_file = "//build/android/findbugs_filter/findbugs_exclude.xml"
75
76 rebased_build_config = rebase_path(build_config, root_build_dir)
77
78 inputs = [
79 "//build/android/pylib/utils/findbugs.py",
80 exclusions_file,
81 jar_path,
82 ]
83
84 outputs = [
85 result_path,
86 ]
87
88 args = [
89 "--depfile",
90 rebase_path(depfile, root_build_dir),
91 "--auxclasspath-gyp",
92 "@FileArg($rebased_build_config:javac:classpath)",
93 "--output-file",
94 rebase_path(result_path, root_build_dir),
95 rebase_path(jar_path, root_build_dir),
96 ]
97 }
98 }
99
65 template("dex") { 100 template("dex") {
66 set_sources_assignment_filter([]) 101 set_sources_assignment_filter([])
67 if (defined(invoker.testonly)) { 102 if (defined(invoker.testonly)) {
68 testonly = invoker.testonly 103 testonly = invoker.testonly
69 } 104 }
70 105
71 assert(defined(invoker.output)) 106 assert(defined(invoker.output))
72 action(target_name) { 107 action(target_name) {
73 script = "//build/android/gyp/dex.py" 108 script = "//build/android/gyp/dex.py"
74 depfile = "$target_gen_dir/$target_name.d" 109 depfile = "$target_gen_dir/$target_name.d"
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 ] 1127 ]
1093 output = invoker.dex_path 1128 output = invoker.dex_path
1094 dex_arg_key = "${rebased_build_config}:final_dex:dependency_dex_files" 1129 dex_arg_key = "${rebased_build_config}:final_dex:dependency_dex_files"
1095 args = [ "--inputs=@FileArg($dex_arg_key)" ] 1130 args = [ "--inputs=@FileArg($dex_arg_key)" ]
1096 if (defined(invoker.excluded_jars)) { 1131 if (defined(invoker.excluded_jars)) {
1097 excluded_jars = rebase_path(invoker.excluded_jars, root_build_dir) 1132 excluded_jars = rebase_path(invoker.excluded_jars, root_build_dir)
1098 args += [ "--excluded-paths=${excluded_jars}" ] 1133 args += [ "--excluded-paths=${excluded_jars}" ]
1099 } 1134 }
1100 } 1135 }
1101 } 1136 }
OLDNEW
« no previous file with comments | « build/android/pylib/utils/findbugs.py ('k') | build/java.gypi » ('j') | build/java.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698