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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 _typemap_config = typemap.config | 61 _typemap_config = typemap.config |
62 read_file(_typemap_config.mojom, "") | 62 read_file(_typemap_config.mojom, "") |
63 } | 63 } |
64 if (is_mac && defined(configuration.typemaps_mac)) { | 64 if (is_mac && defined(configuration.typemaps_mac)) { |
65 foreach(typemap, configuration.typemaps_mac) { | 65 foreach(typemap, configuration.typemaps_mac) { |
66 _typemap_config = { | 66 _typemap_config = { |
67 } | 67 } |
68 _typemap_config = typemap.config | 68 _typemap_config = typemap.config |
69 read_file(_typemap_config.mojom, "") | 69 read_file(_typemap_config.mojom, "") |
70 } | 70 } |
| 71 } else if (is_chromeos && defined(configuration.typemaps_chromeos)) { |
| 72 foreach(typemap, configuration.typemaps_chromeos) { |
| 73 _typemap_config = { |
| 74 } |
| 75 _typemap_config = typemap.config |
| 76 read_file(_typemap_config.mojom, "") |
| 77 } |
71 } | 78 } |
72 } | 79 } |
73 } else { | 80 } else { |
74 _bindings_configuration_files = [] | 81 _bindings_configuration_files = [] |
75 _bindings_configurations = [ | 82 _bindings_configurations = [ |
76 { | 83 { |
77 typemaps = [] | 84 typemaps = [] |
78 component_macro_suffix = "" | 85 component_macro_suffix = "" |
79 }, | 86 }, |
80 { | 87 { |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 } | 494 } |
488 if (is_mac && defined(bindings_configuration.typemaps_mac)) { | 495 if (is_mac && defined(bindings_configuration.typemaps_mac)) { |
489 foreach(typemap, bindings_configuration.typemaps_mac) { | 496 foreach(typemap, bindings_configuration.typemaps_mac) { |
490 _typemap_config = { | 497 _typemap_config = { |
491 } | 498 } |
492 _typemap_config = typemap.config | 499 _typemap_config = typemap.config |
493 if (get_path_info(source, "abspath") == _typemap_config.mojom) { | 500 if (get_path_info(source, "abspath") == _typemap_config.mojom) { |
494 active_typemaps += [ typemap ] | 501 active_typemaps += [ typemap ] |
495 } | 502 } |
496 } | 503 } |
| 504 } else if (is_chromeos && |
| 505 defined(bindings_configuration.typemaps_chromeos)) { |
| 506 foreach(typemap, bindings_configuration.typemaps_chromeos) { |
| 507 _typemap_config = { |
| 508 } |
| 509 _typemap_config = typemap.config |
| 510 if (get_path_info(source, "abspath") == _typemap_config.mojom) { |
| 511 active_typemaps += [ typemap ] |
| 512 } |
| 513 } |
497 } | 514 } |
498 } | 515 } |
499 | 516 |
500 if (defined(invoker.component_macro_prefix)) { | 517 if (defined(invoker.component_macro_prefix)) { |
501 export_header_generator_target_name = | 518 export_header_generator_target_name = |
502 "${target_name}${variant_suffix}__generate_export_header" | 519 "${target_name}${variant_suffix}__generate_export_header" |
503 generated_export_header = | 520 generated_export_header = |
504 rebase_path("${target_name}${variant_suffix}_export.h", | 521 rebase_path("${target_name}${variant_suffix}_export.h", |
505 "", | 522 "", |
506 target_gen_dir) | 523 target_gen_dir) |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 forward_variables_from(invoker, | 870 forward_variables_from(invoker, |
854 "*", | 871 "*", |
855 [ | 872 [ |
856 "output_prefix", | 873 "output_prefix", |
857 "macro_prefix", | 874 "macro_prefix", |
858 ]) | 875 ]) |
859 component_output_prefix = invoker.output_prefix | 876 component_output_prefix = invoker.output_prefix |
860 component_macro_prefix = invoker.macro_prefix | 877 component_macro_prefix = invoker.macro_prefix |
861 } | 878 } |
862 } | 879 } |
OLD | NEW |