Chromium Code Reviews| Index: mojo/public/tools/bindings/BUILD.gn |
| diff --git a/mojo/public/tools/bindings/BUILD.gn b/mojo/public/tools/bindings/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7d192013a5de5067dc5b173dd0212ab18bb8fe70 |
| --- /dev/null |
| +++ b/mojo/public/tools/bindings/BUILD.gn |
| @@ -0,0 +1,66 @@ |
| +# Copyright 2015 The Chromium Authors. All rights reserved. |
|
yzshen1
2016/01/14 01:32:47
2016, time flies! :) (here and other new files)
Sam McNally
2016/01/14 02:58:18
Done.
|
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import("mojom.gni") |
|
yzshen1
2016/01/14 01:32:47
nit: please use absolute path.
https://chromium.g
Sam McNally
2016/01/14 02:58:18
Done.
|
| + |
| +action("precompile_templates") { |
| + sources = mojom_generator_sources |
| + sources += [ |
| + "$mojom_generator_root/generators/cpp_templates/enum_macros.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/interface_declaration.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/interface_definition.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/interface_macros.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/interface_proxy_declaration.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/interface_request_validator_declaration.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/interface_response_validator_declaration.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/interface_stub_declaration.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/module-internal.h.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/module.cc.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/module.h.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/struct_declaration.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/struct_definition.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/struct_macros.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/struct_serialization_declaration.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/struct_serialization_definition.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/union_declaration.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/union_definition.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/union_serialization_declaration.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/union_serialization_definition.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/validation_macros.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/wrapper_class_declaration.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/wrapper_class_definition.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/wrapper_union_class_declaration.tmpl", |
| + "$mojom_generator_root/generators/cpp_templates/wrapper_union_class_definition.tmpl", |
| + "$mojom_generator_root/generators/java_templates/constant_definition.tmpl", |
| + "$mojom_generator_root/generators/java_templates/constants.java.tmpl", |
| + "$mojom_generator_root/generators/java_templates/data_types_definition.tmpl", |
| + "$mojom_generator_root/generators/java_templates/enum.java.tmpl", |
| + "$mojom_generator_root/generators/java_templates/enum_definition.tmpl", |
| + "$mojom_generator_root/generators/java_templates/header.java.tmpl", |
| + "$mojom_generator_root/generators/java_templates/interface.java.tmpl", |
| + "$mojom_generator_root/generators/java_templates/interface_definition.tmpl", |
| + "$mojom_generator_root/generators/java_templates/interface_internal.java.tmpl", |
| + "$mojom_generator_root/generators/java_templates/struct.java.tmpl", |
| + "$mojom_generator_root/generators/java_templates/union.java.tmpl", |
| + "$mojom_generator_root/generators/js_templates/enum_definition.tmpl", |
| + "$mojom_generator_root/generators/js_templates/interface_definition.tmpl", |
| + "$mojom_generator_root/generators/js_templates/module.amd.tmpl", |
| + "$mojom_generator_root/generators/js_templates/module_definition.tmpl", |
| + "$mojom_generator_root/generators/js_templates/struct_definition.tmpl", |
| + "$mojom_generator_root/generators/js_templates/union_definition.tmpl", |
| + "$mojom_generator_root/generators/js_templates/validation_macros.tmpl", |
| + ] |
| + script = mojom_generator_script |
| + outputs = [ |
| + "$target_gen_dir/cpp_templates.zip", |
| + "$target_gen_dir/java_templates.zip", |
| + "$target_gen_dir/js_templates.zip", |
| + ] |
| + args = [ |
| + "--use_bundled_pylibs", |
| + "precompile", |
| + "-o", |
| + rebase_path(target_gen_dir), |
| + ] |
| +} |