Index: mojo/mojom_bindings_generator_explicit.gypi |
diff --git a/mojo/mojom_bindings_generator_explicit.gypi b/mojo/mojom_bindings_generator_explicit.gypi |
index 319c4ff17e5ae7e2bd1d268ddb7ad1090cb36f09..0ca10c68347b764c1fd19b60ed27121696eba325 100644 |
--- a/mojo/mojom_bindings_generator_explicit.gypi |
+++ b/mojo/mojom_bindings_generator_explicit.gypi |
@@ -9,8 +9,10 @@ |
'variables': { |
'variables': { |
'mojom_variant%': 'none', |
+ 'for_blink%': 'false', |
}, |
'mojom_variant%': '<(mojom_variant)', |
+ 'for_blink%': '<(for_blink)', |
'mojom_base_output_dir': |
'<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', |
'mojom_generated_outputs': [ |
@@ -25,6 +27,18 @@ |
}, { |
'mojom_output_languages%': 'c++', |
}], |
+ ['for_blink=="true"', { |
+ 'mojom_generator_wtf_arg%': [ |
+ '--for_blink', |
+ ], |
+ 'wtf_dependencies%': [ |
+ 'mojo_public.gyp:mojo_cpp_bindings_wtf_support', |
+ '../third_party/WebKit/Source/wtf/wtf.gyp:wtf', |
+ ], |
+ }, { |
+ 'mojom_generator_wtf_arg%': [], |
+ 'wtf_dependencies%': [], |
+ }], |
], |
}, |
# Given mojom files as inputs, generate sources. These sources will be |
@@ -83,6 +97,7 @@ |
'--variant', '<(mojom_variant)', |
'-g', '<(mojom_output_languages)', |
'<@(mojom_extra_generator_args)', |
+ '<@(mojom_generator_wtf_arg)', |
'--bytecode_path', |
'<(SHARED_INTERMEDIATE_DIR)/mojo/public/tools/bindings', |
], |
@@ -99,6 +114,10 @@ |
], |
'dependencies': [ |
'<(DEPTH)/mojo/public/tools/bindings/bindings.gyp:precompile_mojom_bindings_generator_templates', |
+ '<@(wtf_dependencies)', |
+ ], |
+ 'export_dependent_settings': [ |
+ '<@(wtf_dependencies)', |
], |
# Prevent the generated sources from being injected into the "all" target by |
# preventing the code generator from being directly depended on by the "all" |