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

Side by Side Diff: mojo/public/tools/bindings/mojom.gni

Issue 1529093004: [mojo] Suppress findbugs errors on generated bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 # Generate C++/JavaScript/Java source files from mojom files. The output files 5 # Generate C++/JavaScript/Java source files from mojom files. The output files
6 # will go under the generated file directory tree with the same path as each 6 # will go under the generated file directory tree with the same path as each
7 # input file. 7 # input file.
8 # 8 #
9 # Parameters: 9 # Parameters:
10 # 10 #
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 "--output=$rebase_output", 243 "--output=$rebase_output",
244 ] 244 ]
245 deps = [ 245 deps = [
246 ":$generator_target_name", 246 ":$generator_target_name",
247 ] 247 ]
248 } 248 }
249 249
250 java_target_name = target_name + "_java" 250 java_target_name = target_name + "_java"
251 android_library(java_target_name) { 251 android_library(java_target_name) {
252 deps = [ 252 deps = [
253 "//base:base_java",
253 "//mojo/public/java:bindings", 254 "//mojo/public/java:bindings",
254 "//mojo/public/java:system", 255 "//mojo/public/java:system",
255 ] 256 ]
256 257
257 foreach(d, all_deps) { 258 foreach(d, all_deps) {
258 # Resolve the name, so that a target //mojo/something becomes 259 # Resolve the name, so that a target //mojo/something becomes
259 # //mojo/something:something and we can append "_java" to get the java 260 # //mojo/something:something and we can append "_java" to get the java
260 # dependency name. 261 # dependency name.
261 full_name = get_label_info(d, "label_no_toolchain") 262 full_name = get_label_info(d, "label_no_toolchain")
262 deps += [ "${full_name}_java" ] 263 deps += [ "${full_name}_java" ]
263 } 264 }
264 265
265 srcjar_deps = [ ":$java_srcjar_target_name" ] 266 srcjar_deps = [ ":$java_srcjar_target_name" ]
266 } 267 }
267 } 268 }
268 } 269 }
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/generators/java_templates/header.java.tmpl ('k') | third_party/mojo/mojo_public.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698