| 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 declare_args() { | 5 declare_args() { |
| 6 # Indicates whether typemapping should be supported in this build | 6 # Indicates whether typemapping should be supported in this build |
| 7 # configuration. This may be disabled when building external projects which | 7 # configuration. This may be disabled when building external projects which |
| 8 # depend on //mojo but which do not need/want all of the Chromium tree | 8 # depend on //mojo but which do not need/want all of the Chromium tree |
| 9 # dependencies that come with typemapping. | 9 # dependencies that come with typemapping. |
| 10 # | 10 # |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 deps = [ | 252 deps = [ |
| 253 "//mojo/public/tools/bindings:precompile_templates", | 253 "//mojo/public/tools/bindings:precompile_templates", |
| 254 ] | 254 ] |
| 255 outputs = generator_shared_cpp_outputs | 255 outputs = generator_shared_cpp_outputs |
| 256 args = common_generator_args | 256 args = common_generator_args |
| 257 args += [ | 257 args += [ |
| 258 "--generate_non_variant_code", | 258 "--generate_non_variant_code", |
| 259 "-g", | 259 "-g", |
| 260 "c++", | 260 "c++", |
| 261 ] | 261 ] |
| 262 depfile = "{{source_gen_dir}}/${generator_shared_target_name}_{{source_nam
e_part}}.d" |
| 263 args += [ |
| 264 "--depfile", |
| 265 depfile, |
| 266 "--depfile_target", |
| 267 "{{source_gen_dir}}/{{source_name_part}}.mojom-shared-internal.h", |
| 268 ] |
| 262 } | 269 } |
| 263 } | 270 } |
| 264 | 271 |
| 265 shared_cpp_sources_suffix = "shared_cpp_sources" | 272 shared_cpp_sources_suffix = "shared_cpp_sources" |
| 266 shared_cpp_sources_target_name = "${target_name}_${shared_cpp_sources_suffix}" | 273 shared_cpp_sources_target_name = "${target_name}_${shared_cpp_sources_suffix}" |
| 267 source_set(shared_cpp_sources_target_name) { | 274 source_set(shared_cpp_sources_target_name) { |
| 268 if (defined(invoker.testonly)) { | 275 if (defined(invoker.testonly)) { |
| 269 testonly = invoker.testonly | 276 testonly = invoker.testonly |
| 270 } | 277 } |
| 271 deps = [] | 278 deps = [] |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 "c++,javascript,java", | 388 "c++,javascript,java", |
| 382 ] | 389 ] |
| 383 } | 390 } |
| 384 | 391 |
| 385 if (defined(bindings_configuration.variant)) { | 392 if (defined(bindings_configuration.variant)) { |
| 386 args += [ | 393 args += [ |
| 387 "--variant", | 394 "--variant", |
| 388 bindings_configuration.variant, | 395 bindings_configuration.variant, |
| 389 ] | 396 ] |
| 390 } | 397 } |
| 398 depfile = |
| 399 "{{source_gen_dir}}/${generator_target_name}_{{source_name_part}}.d" |
| 400 args += [ |
| 401 "--depfile", |
| 402 depfile, |
| 403 "--depfile_target", |
| 404 "{{source_gen_dir}}/{{source_name_part}}.mojom${variant_dash_suffix}.c
c", |
| 405 ] |
| 391 | 406 |
| 392 args += [ | 407 args += [ |
| 393 "--typemap", | 408 "--typemap", |
| 394 rebase_path(type_mappings_path, root_build_dir), | 409 rebase_path(type_mappings_path, root_build_dir), |
| 395 ] | 410 ] |
| 396 | 411 |
| 397 if (defined(bindings_configuration.for_blink) && | 412 if (defined(bindings_configuration.for_blink) && |
| 398 bindings_configuration.for_blink) { | 413 bindings_configuration.for_blink) { |
| 399 args += [ "--for_blink" ] | 414 args += [ "--for_blink" ] |
| 400 if (defined(invoker.export_class_attribute_blink)) { | 415 if (defined(invoker.export_class_attribute_blink)) { |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 full_name = get_label_info(d, "label_no_toolchain") | 640 full_name = get_label_info(d, "label_no_toolchain") |
| 626 deps += [ "${full_name}_java" ] | 641 deps += [ "${full_name}_java" ] |
| 627 } | 642 } |
| 628 | 643 |
| 629 srcjar_deps = [ ":$java_srcjar_target_name" ] | 644 srcjar_deps = [ ":$java_srcjar_target_name" ] |
| 630 run_findbugs_override = false | 645 run_findbugs_override = false |
| 631 } | 646 } |
| 632 } | 647 } |
| 633 } | 648 } |
| 634 } | 649 } |
| OLD | NEW |