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

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

Issue 294833002: Mojo: more idiomatic C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 | Annotate | Revision Log
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 # Generate C++ and JavaScript source files from mojom files. 5 # Generate C++ and JavaScript source files from mojom files.
6 template("mojom") { 6 template("mojom") {
7 assert(defined(invoker.sources), 7 assert(defined(invoker.sources),
8 "\"sources\" must be defined for the $target_name template.") 8 "\"sources\" must be defined for the $target_name template.")
9 9
10 generator_root = "//mojo/public/tools/bindings" 10 generator_root = "//mojo/public/tools/bindings"
11 generator_script = "$generator_root/mojom_bindings_generator.py" 11 generator_script = "$generator_root/mojom_bindings_generator.py"
12 generator_sources = [ 12 generator_sources = [
13 generator_script, 13 generator_script,
14 "$generator_root/generators/cpp_templates/enum_declaration.tmpl", 14 "$generator_root/generators/cpp_templates/enum_declaration.tmpl",
15 "$generator_root/generators/cpp_templates/enum_traits.tmpl",
16 "$generator_root/generators/cpp_templates/interface_declaration.tmpl", 15 "$generator_root/generators/cpp_templates/interface_declaration.tmpl",
17 "$generator_root/generators/cpp_templates/interface_definition.tmpl", 16 "$generator_root/generators/cpp_templates/interface_definition.tmpl",
18 "$generator_root/generators/cpp_templates/interface_macros.tmpl", 17 "$generator_root/generators/cpp_templates/interface_macros.tmpl",
19 "$generator_root/generators/cpp_templates/interface_proxy_declaration.tmpl", 18 "$generator_root/generators/cpp_templates/interface_proxy_declaration.tmpl",
20 "$generator_root/generators/cpp_templates/interface_request_validator_declar ation.tmpl", 19 "$generator_root/generators/cpp_templates/interface_request_validator_declar ation.tmpl",
21 "$generator_root/generators/cpp_templates/interface_response_validator_decla ration.tmpl", 20 "$generator_root/generators/cpp_templates/interface_response_validator_decla ration.tmpl",
22 "$generator_root/generators/cpp_templates/interface_stub_declaration.tmpl", 21 "$generator_root/generators/cpp_templates/interface_stub_declaration.tmpl",
23 "$generator_root/generators/cpp_templates/module.cc.tmpl", 22 "$generator_root/generators/cpp_templates/module.cc.tmpl",
24 "$generator_root/generators/cpp_templates/module.h.tmpl", 23 "$generator_root/generators/cpp_templates/module.h.tmpl",
25 "$generator_root/generators/cpp_templates/module-internal.h.tmpl", 24 "$generator_root/generators/cpp_templates/module-internal.h.tmpl",
26 "$generator_root/generators/cpp_templates/params_definition.tmpl", 25 "$generator_root/generators/cpp_templates/params_definition.tmpl",
27 "$generator_root/generators/cpp_templates/struct_builder_definition.tmpl",
28 "$generator_root/generators/cpp_templates/struct_declaration.tmpl", 26 "$generator_root/generators/cpp_templates/struct_declaration.tmpl",
29 "$generator_root/generators/cpp_templates/struct_definition.tmpl", 27 "$generator_root/generators/cpp_templates/struct_definition.tmpl",
30 "$generator_root/generators/cpp_templates/struct_destructor.tmpl", 28 "$generator_root/generators/cpp_templates/struct_serialization_declaration.t mpl",
29 "$generator_root/generators/cpp_templates/struct_serialization_definition.tm pl",
31 "$generator_root/generators/cpp_templates/struct_macros.tmpl", 30 "$generator_root/generators/cpp_templates/struct_macros.tmpl",
32 "$generator_root/generators/cpp_templates/wrapper_class_declaration.tmpl", 31 "$generator_root/generators/cpp_templates/wrapper_class_declaration.tmpl",
32 "$generator_root/generators/cpp_templates/wrapper_class_definition.tmpl",
33 "$generator_root/generators/js_templates/enum_definition.tmpl", 33 "$generator_root/generators/js_templates/enum_definition.tmpl",
34 "$generator_root/generators/js_templates/interface_definition.tmpl", 34 "$generator_root/generators/js_templates/interface_definition.tmpl",
35 "$generator_root/generators/js_templates/module.js.tmpl", 35 "$generator_root/generators/js_templates/module.js.tmpl",
36 "$generator_root/generators/js_templates/struct_definition.tmpl", 36 "$generator_root/generators/js_templates/struct_definition.tmpl",
37 "$generator_root/generators/mojom_cpp_generator.py", 37 "$generator_root/generators/mojom_cpp_generator.py",
38 "$generator_root/generators/mojom_js_generator.py", 38 "$generator_root/generators/mojom_js_generator.py",
39 "$generator_root/pylib/mojom/__init__.py", 39 "$generator_root/pylib/mojom/__init__.py",
40 "$generator_root/pylib/mojom/error.py", 40 "$generator_root/pylib/mojom/error.py",
41 "$generator_root/pylib/mojom/generate/__init__.py", 41 "$generator_root/pylib/mojom/generate/__init__.py",
42 "$generator_root/pylib/mojom/generate/data.py", 42 "$generator_root/pylib/mojom/generate/data.py",
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 source_set(target_name) { 79 source_set(target_name) {
80 sources = process_file_template(invoker.sources, generator_cpp_outputs) 80 sources = process_file_template(invoker.sources, generator_cpp_outputs)
81 data = process_file_template(invoker.sources, generator_js_outputs) 81 data = process_file_template(invoker.sources, generator_js_outputs)
82 deps = [ 82 deps = [
83 ":$generator_target_name", 83 ":$generator_target_name",
84 "//mojo/public/cpp/bindings", 84 "//mojo/public/cpp/bindings",
85 ] 85 ]
86 } 86 }
87 } 87 }
88 88
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/generators/mojom_cpp_generator.py ('k') | mojo/public/tools/bindings/mojom_bindings_generator.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698