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

Unified Diff: third_party/mojo/mojom_bindings_generator.gypi

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
Index: third_party/mojo/mojom_bindings_generator.gypi
diff --git a/third_party/mojo/mojom_bindings_generator.gypi b/third_party/mojo/mojom_bindings_generator.gypi
index 830495ca5d76a22bb5f6ccd9990d9b62fdfdd1fe..9dca06b6705d7ce2d20a2199b7eb7406b1e5b0e3 100644
--- a/third_party/mojo/mojom_bindings_generator.gypi
+++ b/third_party/mojo/mojom_bindings_generator.gypi
@@ -57,6 +57,9 @@
'inputs': [
'<@(mojom_bindings_generator_sources)',
'<(stamp_filename)',
+ '<(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',
],
'conditions': [
['mojom_variant=="none"', {
@@ -76,8 +79,8 @@
],
'action': [
'python', '<@(mojom_bindings_generator)',
+ '--use_bundled_pylibs', 'generate',
'./<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom',
- '--use_bundled_pylibs',
'-d', '<(DEPTH)',
'<@(mojom_import_args)',
'-o', '<(SHARED_INTERMEDIATE_DIR)',
@@ -85,6 +88,8 @@
'--variant', '<(mojom_variant)',
'-g', '<(mojom_output_languages)',
'<@(mojom_extra_generator_args)',
+ '--bytecode_path',
+ '<(SHARED_INTERMEDIATE_DIR)/mojo/public/tools/bindings',
],
'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom',
'process_outputs_as_sources': 1,
@@ -92,6 +97,7 @@
],
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/mojo/public/tools/bindings/bindings.gyp:precompile_mojom_bindings_generator_templates',
'<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_interface_bindings_generation',
],
'include_dirs': [

Powered by Google App Engine
This is Rietveld 408576698