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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
202 # //mojo/something:something and we can append shared_cpp_sources_suffix | 202 # //mojo/something:something and we can append shared_cpp_sources_suffix |
203 # to get the cpp dependency name. | 203 # to get the cpp dependency name. |
204 full_name = get_label_info("$d", "label_no_toolchain") | 204 full_name = get_label_info("$d", "label_no_toolchain") |
205 public_deps += [ "${full_name}_${shared_cpp_sources_suffix}" ] | 205 public_deps += [ "${full_name}_${shared_cpp_sources_suffix}" ] |
206 } | 206 } |
207 } | 207 } |
208 | 208 |
209 # Generate code for variants. | 209 # Generate code for variants. |
210 foreach(bindings_configuration, _bindings_configurations) { | 210 foreach(bindings_configuration, _bindings_configurations) { |
211 cpp_only = false | 211 cpp_only = false |
212 if (defined(invoker.cpp_only)) { | |
Ken Rockot(use gerrit already)
2016/09/28 20:06:44
Oh, I thought we had already exposed this. Can you
Reilly Grant (use Gerrit)
2016/09/29 06:44:50
Done.
| |
213 cpp_only = invoker.cpp_only | |
214 } | |
212 variant_suffix = "" | 215 variant_suffix = "" |
213 if (defined(bindings_configuration.variant)) { | 216 if (defined(bindings_configuration.variant)) { |
214 variant = bindings_configuration.variant | 217 variant = bindings_configuration.variant |
215 variant_suffix = "_${variant}" | 218 variant_suffix = "_${variant}" |
216 cpp_only = true | 219 cpp_only = true |
217 } | 220 } |
218 type_mappings_target_name = "${target_name}${variant_suffix}__type_mappings" | 221 type_mappings_target_name = "${target_name}${variant_suffix}__type_mappings" |
219 type_mappings_path = | 222 type_mappings_path = |
220 "$target_gen_dir/${target_name}${variant_suffix}__type_mappings" | 223 "$target_gen_dir/${target_name}${variant_suffix}__type_mappings" |
221 active_typemaps = [] | 224 active_typemaps = [] |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
526 full_name = get_label_info(d, "label_no_toolchain") | 529 full_name = get_label_info(d, "label_no_toolchain") |
527 deps += [ "${full_name}_java" ] | 530 deps += [ "${full_name}_java" ] |
528 } | 531 } |
529 | 532 |
530 srcjar_deps = [ ":$java_srcjar_target_name" ] | 533 srcjar_deps = [ ":$java_srcjar_target_name" ] |
531 run_findbugs_override = false | 534 run_findbugs_override = false |
532 } | 535 } |
533 } | 536 } |
534 } | 537 } |
535 } | 538 } |
OLD | NEW |