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

Side by Side Diff: mojo/mojom_bindings_generator.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/mojo_public_tests.gyp ('k') | mojo/mojom_bindings_generator_explicit.gypi » ('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%': '<(for_blink)', 15 'for_blink%': '<(for_blink)',
16 'use_new_wrapper_types%': '<(use_new_wrapper_types)',
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) <@(_sources))', 54 '<!@(python <(DEPTH)/mojo/public/tools/bindings/mojom_list_outputs.py --ba sedir <(mojom_base_output_dir) --variant <(mojom_variant) <@(_sources))',
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 }, 57 },
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 './<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom', 131 './<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom',
121 '-d', '<(DEPTH)', 132 '-d', '<(DEPTH)',
122 '<@(mojom_import_args)', 133 '<@(mojom_import_args)',
123 '-o', '<(SHARED_INTERMEDIATE_DIR)', 134 '-o', '<(SHARED_INTERMEDIATE_DIR)',
124 '--java_output_directory=<(java_out_dir)', 135 '--java_output_directory=<(java_out_dir)',
125 '--variant', '<(mojom_variant)', 136 '--variant', '<(mojom_variant)',
126 '-g', '<(mojom_output_languages)', 137 '-g', '<(mojom_output_languages)',
127 '--typemap', 138 '--typemap',
128 '<(generated_typemap_file)', 139 '<(generated_typemap_file)',
129 '<@(mojom_generator_wtf_arg)', 140 '<@(mojom_generator_wtf_arg)',
141 '<@(mojom_generator_new_wrappers_arg)',
130 '--bytecode_path', 142 '--bytecode_path',
131 '<(SHARED_INTERMEDIATE_DIR)/mojo/public/tools/bindings', 143 '<(SHARED_INTERMEDIATE_DIR)/mojo/public/tools/bindings',
132 ], 144 ],
133 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INP UT_ROOT).mojom', 145 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INP UT_ROOT).mojom',
134 'process_outputs_as_sources': 1, 146 'process_outputs_as_sources': 1,
135 } 147 }
136 ], 148 ],
137 'dependencies': [ 149 'dependencies': [
138 '<(DEPTH)/base/base.gyp:base', 150 '<(DEPTH)/base/base.gyp:base',
139 '<(DEPTH)/mojo/mojo_public.gyp:mojo_interface_bindings_generation', 151 '<(DEPTH)/mojo/mojo_public.gyp:mojo_interface_bindings_generation',
(...skipping 17 matching lines...) Expand all
157 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', 169 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
158 ], 170 ],
159 'additional_input_paths': [ 171 'additional_input_paths': [
160 '<@(mojom_bindings_generator_sources)', 172 '<@(mojom_bindings_generator_sources)',
161 '<@(_sources)', 173 '<@(_sources)',
162 ], 174 ],
163 }, 175 },
164 }, 176 },
165 'hard_dependency': 1, 177 'hard_dependency': 1,
166 } 178 }
OLDNEW
« no previous file with comments | « mojo/mojo_public_tests.gyp ('k') | mojo/mojom_bindings_generator_explicit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698