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

Unified Diff: mojo/mojom_bindings_generator_explicit.gypi

Issue 1751563002: Mojo C++ bindings: support mapping mojo string to WTF::String. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync & rebase Created 4 years, 9 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: 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"

Powered by Google App Engine
This is Rietveld 408576698