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