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

Side by Side Diff: mojo/mojom_bindings_generator_explicit.gypi

Issue 2136733002: Mojo C++ bindings: add a new mode to generator to use native STL/WTF types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@67_new
Patch Set: . Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « mojo/mojom_bindings_generator.gypi ('k') | mojo/public/cpp/bindings/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'includes': [ 6 'includes': [
7 'mojom_bindings_generator_variables.gypi', 7 'mojom_bindings_generator_variables.gypi',
8 ], 8 ],
9 'variables': { 9 'variables': {
10 'variables': { 10 'variables': {
11 'variables': { 11 'variables': {
12 'for_blink%': 'false', 12 'for_blink%': 'false',
13 'use_new_wrapper_types%': 'false',
13 }, 14 },
14 'for_blink%': 'false', 15 'for_blink%': 'false',
16 'use_new_wrapper_types%': 'false',
15 'conditions': [ 17 'conditions': [
16 ['for_blink=="true"', { 18 ['for_blink=="true"', {
17 'mojom_output_languages%': 'c++', 19 'mojom_output_languages%': 'c++',
18 'mojom_variant%': 'blink', 20 'mojom_variant%': 'blink',
19 'mojom_generator_wtf_arg%': [ 21 'mojom_generator_wtf_arg%': [
20 '--for_blink', 22 '--for_blink',
21 ], 23 ],
22 'wtf_dependencies%': [ 24 'wtf_dependencies%': [
23 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings_wtf_support', 25 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings_wtf_support',
24 '<(DEPTH)/third_party/WebKit/Source/wtf/wtf.gyp:wtf', 26 '<(DEPTH)/third_party/WebKit/Source/wtf/wtf.gyp:wtf',
25 ], 27 ],
26 }, { 28 }, {
27 'mojom_output_languages%': 'c++,javascript,java', 29 'mojom_output_languages%': 'c++,javascript,java',
28 'mojom_variant%': 'none', 30 'mojom_variant%': 'none',
29 'mojom_generator_wtf_arg%': [], 31 'mojom_generator_wtf_arg%': [],
30 'wtf_dependencies%': [], 32 'wtf_dependencies%': [],
31 }], 33 }],
34 ['use_new_wrapper_types=="true"', {
35 'mojom_generator_new_wrappers_arg%': [
36 '--use_new_wrapper_types',
37 ],
38 }, {
39 'mojom_generator_new_wrappers_arg%': [],
40 }],
32 ], 41 ],
33 }, 42 },
34 'for_blink%': '<(for_blink)', 43 'for_blink%': '<(for_blink)',
44 'use_new_wrapper_types%': '<(use_new_wrapper_types)',
35 'mojom_variant%': '<(mojom_variant)', 45 'mojom_variant%': '<(mojom_variant)',
36 'mojom_generator_wtf_arg%': '<(mojom_generator_wtf_arg)', 46 'mojom_generator_wtf_arg%': '<(mojom_generator_wtf_arg)',
47 'mojom_generator_new_wrappers_arg%': '<(mojom_generator_new_wrappers_arg)',
37 'wtf_dependencies%': '<(wtf_dependencies)', 48 'wtf_dependencies%': '<(wtf_dependencies)',
38 'mojom_output_languages%': '<(mojom_output_languages)', 49 'mojom_output_languages%': '<(mojom_output_languages)',
39 'mojom_typemaps%': [], 50 'mojom_typemaps%': [],
40 'mojom_base_output_dir': 51 'mojom_base_output_dir':
41 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', 52 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))',
42 'mojom_generated_outputs': [ 53 'mojom_generated_outputs': [
43 '<!@(python <(DEPTH)/mojo/public/tools/bindings/mojom_list_outputs.py --ba sedir <(mojom_base_output_dir) --variant <(mojom_variant) <@(mojom_files))', 54 '<!@(python <(DEPTH)/mojo/public/tools/bindings/mojom_list_outputs.py --ba sedir <(mojom_base_output_dir) --variant <(mojom_variant) <@(mojom_files))',
44 ], 55 ],
45 'generated_typemap_file': '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_di r)/<(_target_name)_type_mappings', 56 'generated_typemap_file': '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_di r)/<(_target_name)_type_mappings',
46 'mojom_include_path%': '<(DEPTH)', 57 'mojom_include_path%': '<(DEPTH)',
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 '<@(mojom_files)', 125 '<@(mojom_files)',
115 '-d', '<(DEPTH)', 126 '-d', '<(DEPTH)',
116 '<@(mojom_import_args)', 127 '<@(mojom_import_args)',
117 '-o', '<(SHARED_INTERMEDIATE_DIR)', 128 '-o', '<(SHARED_INTERMEDIATE_DIR)',
118 '--java_output_directory=<(java_out_dir)', 129 '--java_output_directory=<(java_out_dir)',
119 '--variant', '<(mojom_variant)', 130 '--variant', '<(mojom_variant)',
120 '-g', '<(mojom_output_languages)', 131 '-g', '<(mojom_output_languages)',
121 '--typemap', 132 '--typemap',
122 '<(generated_typemap_file)', 133 '<(generated_typemap_file)',
123 '<@(mojom_generator_wtf_arg)', 134 '<@(mojom_generator_wtf_arg)',
135 '<@(mojom_generator_new_wrappers_arg)',
124 '--bytecode_path', 136 '--bytecode_path',
125 '<(SHARED_INTERMEDIATE_DIR)/mojo/public/tools/bindings', 137 '<(SHARED_INTERMEDIATE_DIR)/mojo/public/tools/bindings',
126 ], 138 ],
127 'message': 'Generating Mojo bindings from <@(mojom_files)', 139 'message': 'Generating Mojo bindings from <@(mojom_files)',
128 } 140 }
129 ], 141 ],
130 'conditions': [ 142 'conditions': [
131 ['require_interface_bindings==1', { 143 ['require_interface_bindings==1', {
132 'dependencies': [ 144 'dependencies': [
133 '<(DEPTH)/base/base.gyp:base', 145 '<(DEPTH)/base/base.gyp:base',
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 ], 186 ],
175 'additional_input_paths': [ 187 'additional_input_paths': [
176 '<@(mojom_bindings_generator_sources)', 188 '<@(mojom_bindings_generator_sources)',
177 '<@(mojom_files)', 189 '<@(mojom_files)',
178 ], 190 ],
179 'mojom_generated_sources': [ '<@(mojom_generated_outputs)' ], 191 'mojom_generated_sources': [ '<@(mojom_generated_outputs)' ],
180 }, 192 },
181 } 193 }
182 }, 194 },
183 } 195 }
OLDNEW
« no previous file with comments | « mojo/mojom_bindings_generator.gypi ('k') | mojo/public/cpp/bindings/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698