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

Side by Side 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 unified diff | Download patch
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 'mojom_variant%': 'none', 11 'mojom_variant%': 'none',
12 'for_blink%': 'false',
12 }, 13 },
13 'mojom_variant%': '<(mojom_variant)', 14 'mojom_variant%': '<(mojom_variant)',
15 'for_blink%': '<(for_blink)',
14 'mojom_base_output_dir': 16 'mojom_base_output_dir':
15 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', 17 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))',
16 'mojom_generated_outputs': [ 18 'mojom_generated_outputs': [
17 '<!@(python <(DEPTH)/mojo/public/tools/bindings/mojom_list_outputs.py --ba sedir <(mojom_base_output_dir) --variant <(mojom_variant) <@(mojom_files))', 19 '<!@(python <(DEPTH)/mojo/public/tools/bindings/mojom_list_outputs.py --ba sedir <(mojom_base_output_dir) --variant <(mojom_variant) <@(mojom_files))',
18 ], 20 ],
19 'mojom_include_path%': '<(DEPTH)', 21 'mojom_include_path%': '<(DEPTH)',
20 'mojom_extra_generator_args%': [], 22 'mojom_extra_generator_args%': [],
21 'require_interface_bindings%': 1, 23 'require_interface_bindings%': 1,
22 'conditions': [ 24 'conditions': [
23 ['mojom_variant=="none"', { 25 ['mojom_variant=="none"', {
24 'mojom_output_languages%': 'c++,javascript,java', 26 'mojom_output_languages%': 'c++,javascript,java',
25 }, { 27 }, {
26 'mojom_output_languages%': 'c++', 28 'mojom_output_languages%': 'c++',
27 }], 29 }],
30 ['for_blink=="true"', {
31 'mojom_generator_wtf_arg%': [
32 '--for_blink',
33 ],
34 'wtf_dependencies%': [
35 'mojo_public.gyp:mojo_cpp_bindings_wtf_support',
36 '../third_party/WebKit/Source/wtf/wtf.gyp:wtf',
37 ],
38 }, {
39 'mojom_generator_wtf_arg%': [],
40 'wtf_dependencies%': [],
41 }],
28 ], 42 ],
29 }, 43 },
30 # Given mojom files as inputs, generate sources. These sources will be 44 # Given mojom files as inputs, generate sources. These sources will be
31 # exported to another target (via dependent_settings) to be compiled. This 45 # exported to another target (via dependent_settings) to be compiled. This
32 # keeps code generation separate from compilation, allowing the same sources 46 # keeps code generation separate from compilation, allowing the same sources
33 # to be compiled with multiple toolchains - target, NaCl, etc. 47 # to be compiled with multiple toolchains - target, NaCl, etc.
34 'actions': [ 48 'actions': [
35 { 49 {
36 'variables': { 50 'variables': {
37 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', 51 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 'python', '<@(mojom_bindings_generator)', 90 'python', '<@(mojom_bindings_generator)',
77 '--use_bundled_pylibs', 'generate', 91 '--use_bundled_pylibs', 'generate',
78 '<@(mojom_files)', 92 '<@(mojom_files)',
79 '-d', '<(DEPTH)', 93 '-d', '<(DEPTH)',
80 '<@(mojom_import_args)', 94 '<@(mojom_import_args)',
81 '-o', '<(SHARED_INTERMEDIATE_DIR)', 95 '-o', '<(SHARED_INTERMEDIATE_DIR)',
82 '--java_output_directory=<(java_out_dir)', 96 '--java_output_directory=<(java_out_dir)',
83 '--variant', '<(mojom_variant)', 97 '--variant', '<(mojom_variant)',
84 '-g', '<(mojom_output_languages)', 98 '-g', '<(mojom_output_languages)',
85 '<@(mojom_extra_generator_args)', 99 '<@(mojom_extra_generator_args)',
100 '<@(mojom_generator_wtf_arg)',
86 '--bytecode_path', 101 '--bytecode_path',
87 '<(SHARED_INTERMEDIATE_DIR)/mojo/public/tools/bindings', 102 '<(SHARED_INTERMEDIATE_DIR)/mojo/public/tools/bindings',
88 ], 103 ],
89 'message': 'Generating Mojo bindings from <@(mojom_files)', 104 'message': 'Generating Mojo bindings from <@(mojom_files)',
90 } 105 }
91 ], 106 ],
92 'conditions': [ 107 'conditions': [
93 ['require_interface_bindings==1', { 108 ['require_interface_bindings==1', {
94 'dependencies': [ 109 'dependencies': [
95 '<(DEPTH)/base/base.gyp:base', 110 '<(DEPTH)/base/base.gyp:base',
96 '<(DEPTH)/mojo/mojo_public.gyp:mojo_interface_bindings_generation', 111 '<(DEPTH)/mojo/mojo_public.gyp:mojo_interface_bindings_generation',
97 ], 112 ],
98 }], 113 }],
99 ], 114 ],
100 'dependencies': [ 115 'dependencies': [
101 '<(DEPTH)/mojo/public/tools/bindings/bindings.gyp:precompile_mojom_bindings_ generator_templates', 116 '<(DEPTH)/mojo/public/tools/bindings/bindings.gyp:precompile_mojom_bindings_ generator_templates',
117 '<@(wtf_dependencies)',
118 ],
119 'export_dependent_settings': [
120 '<@(wtf_dependencies)',
102 ], 121 ],
103 # Prevent the generated sources from being injected into the "all" target by 122 # Prevent the generated sources from being injected into the "all" target by
104 # preventing the code generator from being directly depended on by the "all" 123 # preventing the code generator from being directly depended on by the "all"
105 # target. 124 # target.
106 'suppress_wildcard': '1', 125 'suppress_wildcard': '1',
107 'hard_dependency': '1', 126 'hard_dependency': '1',
108 'direct_dependent_settings': { 127 'direct_dependent_settings': {
109 # A target directly depending on this action will compile the generated 128 # A target directly depending on this action will compile the generated
110 # sources. 129 # sources.
111 'sources': [ 130 'sources': [
(...skipping 20 matching lines...) Expand all
132 ], 151 ],
133 'additional_input_paths': [ 152 'additional_input_paths': [
134 '<@(mojom_bindings_generator_sources)', 153 '<@(mojom_bindings_generator_sources)',
135 '<@(mojom_files)', 154 '<@(mojom_files)',
136 ], 155 ],
137 'mojom_generated_sources': [ '<@(mojom_generated_outputs)' ], 156 'mojom_generated_sources': [ '<@(mojom_generated_outputs)' ],
138 }, 157 },
139 } 158 }
140 }, 159 },
141 } 160 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698