Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: mojo/public/tools/bindings/mojom.gni

Issue 917333003: Mojo C++ bindings templates: use the same templates for user-defined structs and method params. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/public/tools/bindings/generators/cpp_templates/struct_macros.tmpl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("../../mojo_sdk.gni") 5 import("../../mojo_sdk.gni")
6 6
7 # Generate C++ and JavaScript source files from mojom files. The output files 7 # Generate C++ and JavaScript source files from mojom files. The output files
8 # will go under the generated file directory tree with the same path as each 8 # will go under the generated file directory tree with the same path as each
9 # input file. 9 # input file.
10 # 10 #
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 "$generator_root/generators/cpp_templates/interface_declaration.tmpl", 53 "$generator_root/generators/cpp_templates/interface_declaration.tmpl",
54 "$generator_root/generators/cpp_templates/interface_definition.tmpl", 54 "$generator_root/generators/cpp_templates/interface_definition.tmpl",
55 "$generator_root/generators/cpp_templates/interface_macros.tmpl", 55 "$generator_root/generators/cpp_templates/interface_macros.tmpl",
56 "$generator_root/generators/cpp_templates/interface_proxy_declaration.tmpl", 56 "$generator_root/generators/cpp_templates/interface_proxy_declaration.tmpl",
57 "$generator_root/generators/cpp_templates/interface_request_validator_declar ation.tmpl", 57 "$generator_root/generators/cpp_templates/interface_request_validator_declar ation.tmpl",
58 "$generator_root/generators/cpp_templates/interface_response_validator_decla ration.tmpl", 58 "$generator_root/generators/cpp_templates/interface_response_validator_decla ration.tmpl",
59 "$generator_root/generators/cpp_templates/interface_stub_declaration.tmpl", 59 "$generator_root/generators/cpp_templates/interface_stub_declaration.tmpl",
60 "$generator_root/generators/cpp_templates/module.cc.tmpl", 60 "$generator_root/generators/cpp_templates/module.cc.tmpl",
61 "$generator_root/generators/cpp_templates/module.h.tmpl", 61 "$generator_root/generators/cpp_templates/module.h.tmpl",
62 "$generator_root/generators/cpp_templates/module-internal.h.tmpl", 62 "$generator_root/generators/cpp_templates/module-internal.h.tmpl",
63 "$generator_root/generators/cpp_templates/params_definition.tmpl",
64 "$generator_root/generators/cpp_templates/serialization_macros.tmpl", 63 "$generator_root/generators/cpp_templates/serialization_macros.tmpl",
65 "$generator_root/generators/cpp_templates/struct_declaration.tmpl", 64 "$generator_root/generators/cpp_templates/struct_declaration.tmpl",
66 "$generator_root/generators/cpp_templates/struct_definition.tmpl", 65 "$generator_root/generators/cpp_templates/struct_definition.tmpl",
67 "$generator_root/generators/cpp_templates/struct_serialization_definition.tm pl", 66 "$generator_root/generators/cpp_templates/struct_serialization_definition.tm pl",
68 "$generator_root/generators/cpp_templates/struct_macros.tmpl", 67 "$generator_root/generators/cpp_templates/struct_macros.tmpl",
69 "$generator_root/generators/cpp_templates/wrapper_class_declaration.tmpl", 68 "$generator_root/generators/cpp_templates/wrapper_class_declaration.tmpl",
70 "$generator_root/generators/cpp_templates/wrapper_class_definition.tmpl", 69 "$generator_root/generators/cpp_templates/wrapper_class_definition.tmpl",
71 "$generator_root/generators/cpp_templates/union_declaration.tmpl", 70 "$generator_root/generators/cpp_templates/union_declaration.tmpl",
72 "$generator_root/generators/cpp_templates/union_definition.tmpl", 71 "$generator_root/generators/cpp_templates/union_definition.tmpl",
73 "$generator_root/generators/cpp_templates/union_serialization_definition.tmp l", 72 "$generator_root/generators/cpp_templates/union_serialization_definition.tmp l",
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 # //mojo/something:something and we can append "_java" to get the java 344 # //mojo/something:something and we can append "_java" to get the java
346 # dependency name. 345 # dependency name.
347 full_name = get_label_info(d, "label_no_toolchain") 346 full_name = get_label_info(d, "label_no_toolchain")
348 deps += [ "${full_name}_java" ] 347 deps += [ "${full_name}_java" ]
349 } 348 }
350 349
351 srcjars = process_file_template(invoker.sources, generator_java_outputs) 350 srcjars = process_file_template(invoker.sources, generator_java_outputs)
352 } 351 }
353 } 352 }
354 } 353 }
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/generators/cpp_templates/struct_macros.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698