| 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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 generator_sources = [ | 54 generator_sources = [ |
| 55 generator_script, | 55 generator_script, |
| 56 "$generator_root/generators/cpp_templates/enum_declaration.tmpl", | 56 "$generator_root/generators/cpp_templates/enum_declaration.tmpl", |
| 57 "$generator_root/generators/cpp_templates/interface_declaration.tmpl", | 57 "$generator_root/generators/cpp_templates/interface_declaration.tmpl", |
| 58 "$generator_root/generators/cpp_templates/interface_definition.tmpl", | 58 "$generator_root/generators/cpp_templates/interface_definition.tmpl", |
| 59 "$generator_root/generators/cpp_templates/interface_macros.tmpl", | 59 "$generator_root/generators/cpp_templates/interface_macros.tmpl", |
| 60 "$generator_root/generators/cpp_templates/interface_proxy_declaration.tmpl
", | 60 "$generator_root/generators/cpp_templates/interface_proxy_declaration.tmpl
", |
| 61 "$generator_root/generators/cpp_templates/interface_request_validator_decl
aration.tmpl", | 61 "$generator_root/generators/cpp_templates/interface_request_validator_decl
aration.tmpl", |
| 62 "$generator_root/generators/cpp_templates/interface_response_validator_dec
laration.tmpl", | 62 "$generator_root/generators/cpp_templates/interface_response_validator_dec
laration.tmpl", |
| 63 "$generator_root/generators/cpp_templates/interface_stub_declaration.tmpl"
, | 63 "$generator_root/generators/cpp_templates/interface_stub_declaration.tmpl"
, |
| 64 "$generator_root/generators/cpp_templates/module-internal.h.tmpl", |
| 64 "$generator_root/generators/cpp_templates/module.cc.tmpl", | 65 "$generator_root/generators/cpp_templates/module.cc.tmpl", |
| 65 "$generator_root/generators/cpp_templates/module.h.tmpl", | 66 "$generator_root/generators/cpp_templates/module.h.tmpl", |
| 66 "$generator_root/generators/cpp_templates/module-internal.h.tmpl", | |
| 67 "$generator_root/generators/cpp_templates/serialization_macros.tmpl", | |
| 68 "$generator_root/generators/cpp_templates/struct_declaration.tmpl", | 67 "$generator_root/generators/cpp_templates/struct_declaration.tmpl", |
| 69 "$generator_root/generators/cpp_templates/struct_definition.tmpl", | 68 "$generator_root/generators/cpp_templates/struct_definition.tmpl", |
| 69 "$generator_root/generators/cpp_templates/struct_macros.tmpl", |
| 70 "$generator_root/generators/cpp_templates/struct_serialization_declaration
.tmpl", |
| 70 "$generator_root/generators/cpp_templates/struct_serialization_definition.
tmpl", | 71 "$generator_root/generators/cpp_templates/struct_serialization_definition.
tmpl", |
| 71 "$generator_root/generators/cpp_templates/struct_macros.tmpl", | 72 "$generator_root/generators/cpp_templates/union_declaration.tmpl", |
| 73 "$generator_root/generators/cpp_templates/union_definition.tmpl", |
| 74 "$generator_root/generators/cpp_templates/union_serialization_declaration.
tmpl", |
| 75 "$generator_root/generators/cpp_templates/union_serialization_definition.t
mpl", |
| 76 "$generator_root/generators/cpp_templates/validation_macros.tmpl", |
| 72 "$generator_root/generators/cpp_templates/wrapper_class_declaration.tmpl", | 77 "$generator_root/generators/cpp_templates/wrapper_class_declaration.tmpl", |
| 73 "$generator_root/generators/cpp_templates/wrapper_class_definition.tmpl", | 78 "$generator_root/generators/cpp_templates/wrapper_class_definition.tmpl", |
| 74 "$generator_root/generators/cpp_templates/union_declaration.tmpl", | |
| 75 "$generator_root/generators/cpp_templates/union_definition.tmpl", | |
| 76 "$generator_root/generators/cpp_templates/union_serialization_definition.t
mpl", | |
| 77 "$generator_root/generators/cpp_templates/validation_macros.tmpl", | |
| 78 "$generator_root/generators/cpp_templates/wrapper_union_class_declaration.
tmpl", | 79 "$generator_root/generators/cpp_templates/wrapper_union_class_declaration.
tmpl", |
| 79 "$generator_root/generators/cpp_templates/wrapper_union_class_definition.t
mpl", | 80 "$generator_root/generators/cpp_templates/wrapper_union_class_definition.t
mpl", |
| 80 "$generator_root/generators/dart_templates/enum_definition.tmpl", | 81 "$generator_root/generators/dart_templates/enum_definition.tmpl", |
| 81 "$generator_root/generators/dart_templates/interface_definition.tmpl", | 82 "$generator_root/generators/dart_templates/interface_definition.tmpl", |
| 82 "$generator_root/generators/dart_templates/module.lib.tmpl", | 83 "$generator_root/generators/dart_templates/module.lib.tmpl", |
| 83 "$generator_root/generators/dart_templates/module_definition.tmpl", | 84 "$generator_root/generators/dart_templates/module_definition.tmpl", |
| 84 "$generator_root/generators/dart_templates/struct_definition.tmpl", | 85 "$generator_root/generators/dart_templates/struct_definition.tmpl", |
| 85 "$generator_root/generators/go_templates/enum.tmpl", | 86 "$generator_root/generators/go_templates/enum.tmpl", |
| 86 "$generator_root/generators/go_templates/interface.tmpl", | 87 "$generator_root/generators/go_templates/interface.tmpl", |
| 87 "$generator_root/generators/go_templates/source.tmpl", | 88 "$generator_root/generators/go_templates/source.tmpl", |
| 88 "$generator_root/generators/go_templates/struct.tmpl", | 89 "$generator_root/generators/go_templates/struct.tmpl", |
| 89 "$generator_root/generators/java_templates/constant_definition.tmpl", | 90 "$generator_root/generators/java_templates/constant_definition.tmpl", |
| 90 "$generator_root/generators/java_templates/constants.java.tmpl", | 91 "$generator_root/generators/java_templates/constants.java.tmpl", |
| 91 "$generator_root/generators/java_templates/enum.java.tmpl", | 92 "$generator_root/generators/java_templates/enum.java.tmpl", |
| 92 "$generator_root/generators/java_templates/enum_definition.tmpl", | 93 "$generator_root/generators/java_templates/enum_definition.tmpl", |
| 93 "$generator_root/generators/java_templates/header.java.tmpl", | 94 "$generator_root/generators/java_templates/header.java.tmpl", |
| 94 "$generator_root/generators/java_templates/interface.java.tmpl", | 95 "$generator_root/generators/java_templates/interface.java.tmpl", |
| 95 "$generator_root/generators/java_templates/interface_definition.tmpl", | 96 "$generator_root/generators/java_templates/interface_definition.tmpl", |
| 96 "$generator_root/generators/java_templates/interface_internal.java.tmpl", | 97 "$generator_root/generators/java_templates/interface_internal.java.tmpl", |
| 97 "$generator_root/generators/java_templates/struct.java.tmpl", | 98 "$generator_root/generators/java_templates/struct.java.tmpl", |
| 98 "$generator_root/generators/java_templates/struct_definition.tmpl", | 99 "$generator_root/generators/java_templates/struct_definition.tmpl", |
| 99 "$generator_root/generators/js_templates/enum_definition.tmpl", | 100 "$generator_root/generators/js_templates/enum_definition.tmpl", |
| 100 "$generator_root/generators/js_templates/interface_definition.tmpl", | 101 "$generator_root/generators/js_templates/interface_definition.tmpl", |
| 101 "$generator_root/generators/js_templates/module.amd.tmpl", | 102 "$generator_root/generators/js_templates/module.amd.tmpl", |
| 102 "$generator_root/generators/js_templates/module_definition.tmpl", | 103 "$generator_root/generators/js_templates/module_definition.tmpl", |
| 103 "$generator_root/generators/js_templates/struct_definition.tmpl", | 104 "$generator_root/generators/js_templates/struct_definition.tmpl", |
| 105 "$generator_root/generators/python_templates/module.py.tmpl", |
| 104 "$generator_root/generators/python_templates/module_macros.tmpl", | 106 "$generator_root/generators/python_templates/module_macros.tmpl", |
| 105 "$generator_root/generators/python_templates/module.py.tmpl", | |
| 106 "$generator_root/generators/mojom_cpp_generator.py", | 107 "$generator_root/generators/mojom_cpp_generator.py", |
| 107 "$generator_root/generators/mojom_dart_generator.py", | 108 "$generator_root/generators/mojom_dart_generator.py", |
| 108 "$generator_root/generators/mojom_go_generator.py", | 109 "$generator_root/generators/mojom_go_generator.py", |
| 109 "$generator_root/generators/mojom_js_generator.py", | 110 "$generator_root/generators/mojom_js_generator.py", |
| 110 "$generator_root/generators/mojom_java_generator.py", | 111 "$generator_root/generators/mojom_java_generator.py", |
| 111 "$generator_root/generators/mojom_python_generator.py", | 112 "$generator_root/generators/mojom_python_generator.py", |
| 112 "$generator_root/pylib/mojom/__init__.py", | 113 "$generator_root/pylib/mojom/__init__.py", |
| 113 "$generator_root/pylib/mojom/error.py", | 114 "$generator_root/pylib/mojom/error.py", |
| 114 "$generator_root/pylib/mojom/generate/__init__.py", | 115 "$generator_root/pylib/mojom/generate/__init__.py", |
| 115 "$generator_root/pylib/mojom/generate/data.py", | 116 "$generator_root/pylib/mojom/generate/data.py", |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 full_name = get_label_info(d, "label_no_toolchain") | 378 full_name = get_label_info(d, "label_no_toolchain") |
| 378 deps += [ "${full_name}_java" ] | 379 deps += [ "${full_name}_java" ] |
| 379 } | 380 } |
| 380 | 381 |
| 381 if (defined(invoker.sources)) { | 382 if (defined(invoker.sources)) { |
| 382 srcjars = process_file_template(invoker.sources, generator_java_outputs) | 383 srcjars = process_file_template(invoker.sources, generator_java_outputs) |
| 383 } | 384 } |
| 384 } | 385 } |
| 385 } | 386 } |
| 386 } | 387 } |
| OLD | NEW |