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

Unified Diff: mojo/public/tools/bindings/bindings.gyp

Issue 1572213002: Precompile mojom bindings generator jinja templates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/tools/bindings/BUILD.gn ('k') | mojo/public/tools/bindings/generators/mojom_cpp_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/bindings.gyp
diff --git a/mojo/public/tools/bindings/bindings.gyp b/mojo/public/tools/bindings/bindings.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..5e2b265a9888db25b9faa6c364bb03c6df3098b2
--- /dev/null
+++ b/mojo/public/tools/bindings/bindings.gyp
@@ -0,0 +1,69 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'includes': [
+ '../../../../third_party/mojo/mojom_bindings_generator_variables.gypi',
+ ],
+ 'targets': [
+ {
+ 'target_name': 'precompile_mojom_bindings_generator_templates',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'precompile_mojom_bindings_generator_templates',
+ 'inputs': [
+ '<@(mojom_bindings_generator_sources)',
+ 'generators/cpp_templates/enum_macros.tmpl',
+ 'generators/cpp_templates/interface_declaration.tmpl',
+ 'generators/cpp_templates/interface_definition.tmpl',
+ 'generators/cpp_templates/interface_macros.tmpl',
+ 'generators/cpp_templates/interface_proxy_declaration.tmpl',
+ 'generators/cpp_templates/interface_request_validator_declaration.tmpl',
+ 'generators/cpp_templates/interface_response_validator_declaration.tmpl',
+ 'generators/cpp_templates/interface_stub_declaration.tmpl',
+ 'generators/cpp_templates/module.cc.tmpl',
+ 'generators/cpp_templates/module.h.tmpl',
+ 'generators/cpp_templates/module-internal.h.tmpl',
+ 'generators/cpp_templates/struct_declaration.tmpl',
+ 'generators/cpp_templates/struct_definition.tmpl',
+ 'generators/cpp_templates/struct_macros.tmpl',
+ 'generators/cpp_templates/struct_serialization_definition.tmpl',
+ 'generators/cpp_templates/wrapper_class_declaration.tmpl',
+ 'generators/cpp_templates/wrapper_class_definition.tmpl',
+ 'generators/java_templates/constant_definition.tmpl',
+ 'generators/java_templates/constants.java.tmpl',
+ 'generators/java_templates/data_types_definition.tmpl',
+ 'generators/java_templates/enum_definition.tmpl',
+ 'generators/java_templates/enum.java.tmpl',
+ 'generators/java_templates/header.java.tmpl',
+ 'generators/java_templates/interface_definition.tmpl',
+ 'generators/java_templates/interface_internal.java.tmpl',
+ 'generators/java_templates/interface.java.tmpl',
+ 'generators/java_templates/struct.java.tmpl',
+ 'generators/java_templates/union.java.tmpl',
+ 'generators/js_templates/enum_definition.tmpl',
+ 'generators/js_templates/interface_definition.tmpl',
+ 'generators/js_templates/module_definition.tmpl',
+ 'generators/js_templates/module.amd.tmpl',
+ 'generators/js_templates/struct_definition.tmpl',
+ 'generators/js_templates/union_definition.tmpl',
+ 'generators/js_templates/validation_macros.tmpl',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/mojo/public/tools/bindings/cpp_templates.zip',
+ '<(SHARED_INTERMEDIATE_DIR)/mojo/public/tools/bindings/java_templates.zip',
+ '<(SHARED_INTERMEDIATE_DIR)/mojo/public/tools/bindings/js_templates.zip',
+ ],
+ 'action': [
+ 'python', '<@(mojom_bindings_generator)',
+ '--use_bundled_pylibs', 'precompile',
+ '-o', '<(SHARED_INTERMEDIATE_DIR)/mojo/public/tools/bindings',
+ ],
+ }
+ ],
+ },
+ ],
+}
+
« no previous file with comments | « mojo/public/tools/bindings/BUILD.gn ('k') | mojo/public/tools/bindings/generators/mojom_cpp_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698