Index: mojo/mojom_bindings_generator_explicit.gypi |
diff --git a/mojo/mojom_bindings_generator_explicit.gypi b/mojo/mojom_bindings_generator_explicit.gypi |
index ea484de7c6fe782885c082cd24b5c182b3531311..06e831040ae18f9b13122e90d983188402cc3476 100644 |
--- a/mojo/mojom_bindings_generator_explicit.gypi |
+++ b/mojo/mojom_bindings_generator_explicit.gypi |
@@ -8,12 +8,35 @@ |
], |
'variables': { |
'variables': { |
- 'mojom_variant%': 'none', |
+ 'variables': { |
+ 'for_blink%': 'false', |
+ }, |
'for_blink%': 'false', |
+ 'conditions': [ |
+ ['for_blink=="true"', { |
+ 'mojom_output_languages%': 'c++', |
+ 'mojom_variant%': 'blink', |
+ 'mojom_generator_wtf_arg%': [ |
+ '--for_blink', |
+ ], |
+ 'wtf_dependencies%': [ |
+ '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings_wtf_support', |
+ '<(DEPTH)/third_party/WebKit/Source/wtf/wtf.gyp:wtf', |
+ ], |
+ }, { |
+ 'mojom_output_languages%': 'c++,javascript,java', |
+ 'mojom_variant%': 'none', |
+ 'mojom_generator_wtf_arg%': [], |
+ 'wtf_dependencies%': [], |
+ }], |
+ ], |
}, |
+ 'for_blink%': '<(for_blink)', |
'mojom_variant%': '<(mojom_variant)', |
+ 'mojom_generator_wtf_arg%': '<(mojom_generator_wtf_arg)', |
+ 'wtf_dependencies%': '<(wtf_dependencies)', |
+ 'mojom_output_languages%': '<(mojom_output_languages)', |
'mojom_typemaps%': [], |
- 'for_blink%': '<(for_blink)', |
'mojom_base_output_dir': |
'<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', |
'mojom_generated_outputs': [ |
@@ -22,25 +45,6 @@ |
'generated_typemap_file': '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(_target_name)_type_mappings', |
'mojom_include_path%': '<(DEPTH)', |
'require_interface_bindings%': 1, |
- 'conditions': [ |
- ['mojom_variant=="none"', { |
- 'mojom_output_languages%': 'c++,javascript,java', |
- }, { |
- 'mojom_output_languages%': 'c++', |
- }], |
- ['for_blink=="true"', { |
- 'mojom_generator_wtf_arg%': [ |
- '--for_blink', |
- ], |
- 'wtf_dependencies%': [ |
- '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings_wtf_support', |
- '<(DEPTH)/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 |
# exported to another target (via dependent_settings) to be compiled. This |