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 # 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 Loading... |
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 } |
OLD | NEW |