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 mojom_generator_root = "//mojo/public/tools/bindings" | 5 mojom_generator_root = "//mojo/public/tools/bindings" |
6 mojom_generator_script = "$mojom_generator_root/mojom_bindings_generator.py" | 6 mojom_generator_script = "$mojom_generator_root/mojom_bindings_generator.py" |
7 mojom_generator_sources = [ | 7 mojom_generator_sources = [ |
8 "$mojom_generator_root/generators/mojom_cpp_generator.py", | 8 "$mojom_generator_root/generators/mojom_cpp_generator.py", |
9 "$mojom_generator_root/generators/mojom_js_generator.py", | 9 "$mojom_generator_root/generators/mojom_js_generator.py", |
10 "$mojom_generator_root/generators/mojom_java_generator.py", | 10 "$mojom_generator_root/generators/mojom_java_generator.py", |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 deps += [ ":$generator_target_name" ] | 314 deps += [ ":$generator_target_name" ] |
315 } | 315 } |
316 public_deps = [ | 316 public_deps = [ |
317 "//base", | 317 "//base", |
318 ] | 318 ] |
319 foreach(d, all_deps) { | 319 foreach(d, all_deps) { |
320 # Resolve the name, so that a target //mojo/something becomes | 320 # Resolve the name, so that a target //mojo/something becomes |
321 # //mojo/something:something and we can append cpp_sources_suffix to | 321 # //mojo/something:something and we can append cpp_sources_suffix to |
322 # get the cpp dependency name. | 322 # get the cpp dependency name. |
323 full_name = get_label_info("$d", "label_no_toolchain") | 323 full_name = get_label_info("$d", "label_no_toolchain") |
324 deps += [ "${full_name}${variant_suffix}_${cpp_sources_suffix}" ] | 324 public_deps += [ "${full_name}${variant_suffix}_${cpp_sources_suffix}" ] |
325 } | 325 } |
326 foreach(typemap, active_typemaps) { | 326 foreach(typemap, active_typemaps) { |
327 if (defined(typemap.public_headers)) { | 327 if (defined(typemap.public_headers)) { |
328 sources += typemap.public_headers | 328 sources += typemap.public_headers |
329 } | 329 } |
330 if (defined(typemap.traits_headers)) { | 330 if (defined(typemap.traits_headers)) { |
331 sources += typemap.traits_headers | 331 sources += typemap.traits_headers |
332 } | 332 } |
333 if (defined(typemap.sources)) { | 333 if (defined(typemap.sources)) { |
334 sources += typemap.sources | 334 sources += typemap.sources |
335 } | 335 } |
| 336 if (defined(typemap.public_deps)) { |
| 337 public_deps += typemap.public_deps |
| 338 } |
336 if (defined(typemap.deps)) { | 339 if (defined(typemap.deps)) { |
337 deps += typemap.deps | 340 deps += typemap.deps |
338 } | 341 } |
339 } | 342 } |
340 if (defined(bindings_configuration.for_blink) && | 343 if (defined(bindings_configuration.for_blink) && |
341 bindings_configuration.for_blink) { | 344 bindings_configuration.for_blink) { |
342 public_deps += [ "//mojo/public/cpp/bindings:wtf_support" ] | 345 public_deps += [ "//mojo/public/cpp/bindings:wtf_support" ] |
343 } | 346 } |
344 } | 347 } |
345 | 348 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 full_name = get_label_info(d, "label_no_toolchain") | 390 full_name = get_label_info(d, "label_no_toolchain") |
388 deps += [ "${full_name}_java" ] | 391 deps += [ "${full_name}_java" ] |
389 } | 392 } |
390 | 393 |
391 srcjar_deps = [ ":$java_srcjar_target_name" ] | 394 srcjar_deps = [ ":$java_srcjar_target_name" ] |
392 run_findbugs_override = false | 395 run_findbugs_override = false |
393 } | 396 } |
394 } | 397 } |
395 } | 398 } |
396 } | 399 } |
OLD | NEW |