Index: mojo/mojom_bindings_generator.gypi |
diff --git a/mojo/mojom_bindings_generator.gypi b/mojo/mojom_bindings_generator.gypi |
index dea11695dd144989709f9985df5cba5885df90fb..c8c5f150877a97a33a7621112897488d678fb6bd 100644 |
--- a/mojo/mojom_bindings_generator.gypi |
+++ b/mojo/mojom_bindings_generator.gypi |
@@ -10,8 +10,10 @@ |
'variables': { |
'variables': { |
'for_blink%': 'false', |
+ 'use_new_wrapper_types%': 'false', |
}, |
'for_blink%': '<(for_blink)', |
+ 'use_new_wrapper_types%': '<(use_new_wrapper_types)', |
'conditions': [ |
['for_blink=="true"', { |
'mojom_output_languages%': 'c++', |
@@ -29,11 +31,20 @@ |
'mojom_generator_wtf_arg%': [], |
'wtf_dependencies%': [], |
}], |
+ ['use_new_wrapper_types=="true"', { |
+ 'mojom_generator_new_wrappers_arg%': [ |
+ '--use_new_wrapper_types', |
+ ], |
+ }, { |
+ 'mojom_generator_new_wrappers_arg%': [], |
+ }], |
], |
}, |
'for_blink%': '<(for_blink)', |
+ 'use_new_wrapper_types%': '<(use_new_wrapper_types)', |
'mojom_variant%': '<(mojom_variant)', |
'mojom_generator_wtf_arg%': '<(mojom_generator_wtf_arg)', |
+ 'mojom_generator_new_wrappers_arg%': '<(mojom_generator_new_wrappers_arg)', |
'wtf_dependencies%': '<(wtf_dependencies)', |
'mojom_output_languages%': '<(mojom_output_languages)', |
'mojom_typemaps%': [], |
@@ -127,6 +138,7 @@ |
'--typemap', |
'<(generated_typemap_file)', |
'<@(mojom_generator_wtf_arg)', |
+ '<@(mojom_generator_new_wrappers_arg)', |
'--bytecode_path', |
'<(SHARED_INTERMEDIATE_DIR)/mojo/public/tools/bindings', |
], |