| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 generator_cpp_outputs = [] | 227 generator_cpp_outputs = [] |
| 228 generator_js_outputs = [] | 228 generator_js_outputs = [] |
| 229 generator_java_outputs = [] | 229 generator_java_outputs = [] |
| 230 variant_dash_suffix = "" | 230 variant_dash_suffix = "" |
| 231 if (defined(variant)) { | 231 if (defined(variant)) { |
| 232 variant_dash_suffix = "-${variant}" | 232 variant_dash_suffix = "-${variant}" |
| 233 } | 233 } |
| 234 generator_cpp_outputs += [ | 234 generator_cpp_outputs += [ |
| 235 "{{source_gen_dir}}/{{source_name_part}}.mojom${variant_dash_suffix}.cc"
, | 235 "{{source_gen_dir}}/{{source_name_part}}.mojom${variant_dash_suffix}.cc"
, |
| 236 "{{source_gen_dir}}/{{source_name_part}}.mojom${variant_dash_suffix}.h", | 236 "{{source_gen_dir}}/{{source_name_part}}.mojom${variant_dash_suffix}.h", |
| 237 "{{source_gen_dir}}/{{source_name_part}}.mojom${variant_dash_suffix}-int
ernal.h", | |
| 238 ] | 237 ] |
| 239 enabled_sources = [] | 238 enabled_sources = [] |
| 240 if (defined(bindings_configuration.blacklist)) { | 239 if (defined(bindings_configuration.blacklist)) { |
| 241 foreach(source, invoker.sources) { | 240 foreach(source, invoker.sources) { |
| 242 blacklisted = false | 241 blacklisted = false |
| 243 foreach(blacklisted_source, bindings_configuration.blacklist) { | 242 foreach(blacklisted_source, bindings_configuration.blacklist) { |
| 244 if (get_path_info(source, "abspath") == blacklisted_source) { | 243 if (get_path_info(source, "abspath") == blacklisted_source) { |
| 245 blacklisted = true | 244 blacklisted = true |
| 246 } | 245 } |
| 247 } | 246 } |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 if (defined(invoker.export_define)) { | 428 if (defined(invoker.export_define)) { |
| 430 defines += [ invoker.export_define ] | 429 defines += [ invoker.export_define ] |
| 431 } | 430 } |
| 432 if (defined(invoker.export_define_blink)) { | 431 if (defined(invoker.export_define_blink)) { |
| 433 defines += [ invoker.export_define_blink ] | 432 defines += [ invoker.export_define_blink ] |
| 434 } | 433 } |
| 435 if (enabled_sources != []) { | 434 if (enabled_sources != []) { |
| 436 sources = process_file_template(enabled_sources, generator_cpp_outputs) | 435 sources = process_file_template(enabled_sources, generator_cpp_outputs) |
| 437 } | 436 } |
| 438 deps = [ | 437 deps = [ |
| 439 ":$shared_cpp_sources_target_name", | |
| 440 "//mojo/public/cpp/bindings:struct_traits", | 438 "//mojo/public/cpp/bindings:struct_traits", |
| 441 "//mojo/public/interfaces/bindings:bindings__generator", | 439 "//mojo/public/interfaces/bindings:bindings__generator", |
| 440 "//mojo/public/interfaces/bindings:bindings_shared__generator", |
| 442 ] | 441 ] |
| 443 if (enabled_sources != []) { | 442 if (enabled_sources != []) { |
| 444 deps += [ ":$generator_target_name" ] | 443 deps += [ ":$generator_target_name" ] |
| 445 } | 444 } |
| 446 public_deps = [ | 445 public_deps = [ |
| 446 ":$shared_cpp_sources_target_name", |
| 447 "//base", | 447 "//base", |
| 448 ] | 448 ] |
| 449 foreach(d, all_deps) { | 449 foreach(d, all_deps) { |
| 450 # Resolve the name, so that a target //mojo/something becomes | 450 # Resolve the name, so that a target //mojo/something becomes |
| 451 # //mojo/something:something and we can append cpp_sources_suffix to | 451 # //mojo/something:something and we can append cpp_sources_suffix to |
| 452 # get the cpp dependency name. | 452 # get the cpp dependency name. |
| 453 full_name = get_label_info("$d", "label_no_toolchain") | 453 full_name = get_label_info("$d", "label_no_toolchain") |
| 454 public_deps += [ "${full_name}${variant_suffix}_${cpp_sources_suffix}" ] | 454 public_deps += [ "${full_name}${variant_suffix}_${cpp_sources_suffix}" ] |
| 455 } | 455 } |
| 456 foreach(typemap, active_typemaps) { | 456 foreach(typemap, active_typemaps) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 full_name = get_label_info(d, "label_no_toolchain") | 520 full_name = get_label_info(d, "label_no_toolchain") |
| 521 deps += [ "${full_name}_java" ] | 521 deps += [ "${full_name}_java" ] |
| 522 } | 522 } |
| 523 | 523 |
| 524 srcjar_deps = [ ":$java_srcjar_target_name" ] | 524 srcjar_deps = [ ":$java_srcjar_target_name" ] |
| 525 run_findbugs_override = false | 525 run_findbugs_override = false |
| 526 } | 526 } |
| 527 } | 527 } |
| 528 } | 528 } |
| 529 } | 529 } |
| OLD | NEW |