Index: third_party/mojo/mojom_bindings_generator_explicit.gypi |
diff --git a/third_party/mojo/mojom_bindings_generator_explicit.gypi b/third_party/mojo/mojom_bindings_generator_explicit.gypi |
index 3d2d80b6f348beae428a4d39d0bd3509a99b758e..6f129b52e915394152a1dd9e75fd8e60ebe5ad6b 100644 |
--- a/third_party/mojo/mojom_bindings_generator_explicit.gypi |
+++ b/third_party/mojo/mojom_bindings_generator_explicit.gypi |
@@ -12,6 +12,7 @@ |
'mojom_generated_outputs': [ |
'<!@(python <(DEPTH)/third_party/mojo/src/mojo/public/tools/bindings/mojom_list_outputs.py --basedir <(mojom_base_output_dir) <@(mojom_files))', |
], |
+ 'require_interface_bindings%': 1, |
}, |
# Given mojom files as inputs, generate sources. These sources will be |
# exported to another target (via dependent_settings) to be compiled. This |
@@ -65,6 +66,13 @@ |
'message': 'Generating Mojo bindings from <@(mojom_files)', |
} |
], |
+ 'conditions': [ |
+ ['require_interface_bindings==1', { |
+ 'dependencies': [ |
+ '<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_interface_bindings_generation', |
+ ], |
+ }], |
+ ], |
# Prevent the generated sources from being injected into the "all" target by |
# preventing the code generator from being directly depended on by the "all" |
# target. |
@@ -102,6 +110,7 @@ |
'<@(mojom_bindings_generator_sources)', |
'<@(mojom_files)', |
], |
+ 'mojom_generated_sources': [ '<@(mojom_generated_outputs)' ], |
}, |
} |
}, |