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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 if (defined(invoker.sources)) { | 263 if (defined(invoker.sources)) { |
264 common_generator_args = [ | 264 common_generator_args = [ |
265 "--use_bundled_pylibs", | 265 "--use_bundled_pylibs", |
266 "generate", | 266 "generate", |
267 "{{source}}", | 267 "{{source}}", |
268 "-d", | 268 "-d", |
269 rebase_path("//", root_build_dir), | 269 rebase_path("//", root_build_dir), |
270 "-I", | 270 "-I", |
271 rebase_path("//", root_build_dir), | 271 rebase_path("//", root_build_dir), |
272 "-o", | 272 "-o", |
273 rebase_path(root_gen_dir), | 273 rebase_path(root_gen_dir, root_build_dir), |
274 "--bytecode_path", | 274 "--bytecode_path", |
275 rebase_path("$root_gen_dir/mojo/public/tools/bindings"), | 275 rebase_path("$root_gen_dir/mojo/public/tools/bindings", root_build_dir), |
276 ] | 276 ] |
277 | 277 |
278 if (defined(invoker.import_dirs)) { | 278 if (defined(invoker.import_dirs)) { |
279 foreach(import_dir, invoker.import_dirs) { | 279 foreach(import_dir, invoker.import_dirs) { |
280 common_generator_args += [ | 280 common_generator_args += [ |
281 "-I", | 281 "-I", |
282 rebase_path(import_dir, root_build_dir), | 282 rebase_path(import_dir, root_build_dir), |
283 ] | 283 ] |
284 } | 284 } |
285 } | 285 } |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 script = generate_export_header_script | 371 script = generate_export_header_script |
372 outputs = [ | 372 outputs = [ |
373 get_path_info(generated_shared_export_header, "abspath"), | 373 get_path_info(generated_shared_export_header, "abspath"), |
374 ] | 374 ] |
375 args = [ | 375 args = [ |
376 "--export_macro", | 376 "--export_macro", |
377 shared_component_export_macro, | 377 shared_component_export_macro, |
378 "--impl_macro", | 378 "--impl_macro", |
379 shared_component_impl_macro, | 379 shared_component_impl_macro, |
380 "--output_file", | 380 "--output_file", |
381 generated_shared_export_header, | 381 rebase_path(generated_shared_export_header, root_build_dir), |
382 "--relative_path", | 382 "--relative_path", |
383 rebase_path(generated_shared_export_header, root_gen_dir), | 383 rebase_path(generated_shared_export_header, root_gen_dir), |
384 ] | 384 ] |
385 } | 385 } |
386 } | 386 } |
387 | 387 |
388 shared_cpp_sources_target_name = "${target_name}_shared_cpp_sources" | 388 shared_cpp_sources_target_name = "${target_name}_shared_cpp_sources" |
389 source_set(shared_cpp_sources_target_name) { | 389 source_set(shared_cpp_sources_target_name) { |
390 if (defined(invoker.testonly)) { | 390 if (defined(invoker.testonly)) { |
391 testonly = invoker.testonly | 391 testonly = invoker.testonly |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 script = generate_export_header_script | 525 script = generate_export_header_script |
526 outputs = [ | 526 outputs = [ |
527 get_path_info(generated_export_header, "abspath"), | 527 get_path_info(generated_export_header, "abspath"), |
528 ] | 528 ] |
529 args = [ | 529 args = [ |
530 "--export_macro", | 530 "--export_macro", |
531 "${invoker.component_macro_prefix}${bindings_configuration.component
_macro_suffix}_EXPORT", | 531 "${invoker.component_macro_prefix}${bindings_configuration.component
_macro_suffix}_EXPORT", |
532 "--impl_macro", | 532 "--impl_macro", |
533 "${invoker.component_macro_prefix}${bindings_configuration.component
_macro_suffix}_IMPL", | 533 "${invoker.component_macro_prefix}${bindings_configuration.component
_macro_suffix}_IMPL", |
534 "--output_file", | 534 "--output_file", |
535 generated_export_header, | 535 rebase_path(generated_export_header, root_build_dir), |
536 "--relative_path", | 536 "--relative_path", |
537 rebase_path(generated_export_header, root_gen_dir), | 537 rebase_path(generated_export_header, root_gen_dir), |
538 ] | 538 ] |
539 } | 539 } |
540 } | 540 } |
541 | 541 |
542 if (!cpp_only) { | 542 if (!cpp_only) { |
543 generator_js_outputs = | 543 generator_js_outputs = |
544 [ "{{source_gen_dir}}/{{source_name_part}}.mojom.js" ] | 544 [ "{{source_gen_dir}}/{{source_name_part}}.mojom.js" ] |
545 generator_java_outputs = | 545 generator_java_outputs = |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 forward_variables_from(invoker, | 870 forward_variables_from(invoker, |
871 "*", | 871 "*", |
872 [ | 872 [ |
873 "output_prefix", | 873 "output_prefix", |
874 "macro_prefix", | 874 "macro_prefix", |
875 ]) | 875 ]) |
876 component_output_prefix = invoker.output_prefix | 876 component_output_prefix = invoker.output_prefix |
877 component_macro_prefix = invoker.macro_prefix | 877 component_macro_prefix = invoker.macro_prefix |
878 } | 878 } |
879 } | 879 } |
OLD | NEW |