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

Side by Side Diff: third_party/mojo/mojom_bindings_generator_explicit.gypi

Issue 1517043004: [mojo] Add typemap and variant support to generators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pickle3
Patch Set: set proper upstream Created 5 years 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 | « third_party/mojo/mojom_bindings_generator.gypi ('k') | no next file » | 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': {
11 'mojom_variant%': 'none',
12 },
13 'mojom_variant%': '<(mojom_variant)',
10 'mojom_base_output_dir': 14 'mojom_base_output_dir':
11 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', 15 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))',
12 'mojom_generated_outputs': [ 16 'mojom_generated_outputs': [
13 '<!@(python <(DEPTH)/mojo/public/tools/bindings/mojom_list_outputs.py --ba sedir <(mojom_base_output_dir) <@(mojom_files))', 17 '<!@(python <(DEPTH)/mojo/public/tools/bindings/mojom_list_outputs.py --ba sedir <(mojom_base_output_dir) --variant <(mojom_variant) <@(mojom_files))',
14 ], 18 ],
15 'mojom_include_path%': '<(DEPTH)', 19 'mojom_include_path%': '<(DEPTH)',
20 'mojom_extra_generator_args%': [],
16 'require_interface_bindings%': 1, 21 'require_interface_bindings%': 1,
22 'conditions': [
23 ['mojom_variant=="none"', {
24 'mojom_output_languages%': 'c++,javascript,java',
25 }, {
26 'mojom_output_languages%': 'c++',
27 }],
28 ],
17 }, 29 },
18 # Given mojom files as inputs, generate sources. These sources will be 30 # Given mojom files as inputs, generate sources. These sources will be
19 # exported to another target (via dependent_settings) to be compiled. This 31 # exported to another target (via dependent_settings) to be compiled. This
20 # keeps code generation separate from compilation, allowing the same sources 32 # keeps code generation separate from compilation, allowing the same sources
21 # to be compiled with multiple toolchains - target, NaCl, etc. 33 # to be compiled with multiple toolchains - target, NaCl, etc.
22 'actions': [ 34 'actions': [
23 { 35 {
24 'variables': { 36 'variables': {
25 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', 37 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
26 'stamp_filename': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/<(_target_na me).stamp', 38 'stamp_filename': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/<(_target_na me).stamp',
(...skipping 29 matching lines...) Expand all
56 '<@(mojom_generated_outputs)', 68 '<@(mojom_generated_outputs)',
57 ], 69 ],
58 'action': [ 70 'action': [
59 'python', '<@(mojom_bindings_generator)', 71 'python', '<@(mojom_bindings_generator)',
60 '<@(mojom_files)', 72 '<@(mojom_files)',
61 '--use_bundled_pylibs', 73 '--use_bundled_pylibs',
62 '-d', '<(DEPTH)', 74 '-d', '<(DEPTH)',
63 '<@(mojom_import_args)', 75 '<@(mojom_import_args)',
64 '-o', '<(SHARED_INTERMEDIATE_DIR)', 76 '-o', '<(SHARED_INTERMEDIATE_DIR)',
65 '--java_output_directory=<(java_out_dir)', 77 '--java_output_directory=<(java_out_dir)',
78 '--variant', '<(mojom_variant)',
79 '-g', '<(mojom_output_languages)',
80 '<@(mojom_extra_generator_args)',
66 ], 81 ],
67 'message': 'Generating Mojo bindings from <@(mojom_files)', 82 'message': 'Generating Mojo bindings from <@(mojom_files)',
68 } 83 }
69 ], 84 ],
70 'conditions': [ 85 'conditions': [
71 ['require_interface_bindings==1', { 86 ['require_interface_bindings==1', {
72 'dependencies': [ 87 'dependencies': [
73 '<(DEPTH)/base/base.gyp:base', 88 '<(DEPTH)/base/base.gyp:base',
74 '<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_interface_bindings_gener ation', 89 '<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_interface_bindings_gener ation',
75 ], 90 ],
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 ], 122 ],
108 'additional_input_paths': [ 123 'additional_input_paths': [
109 '<@(mojom_bindings_generator_sources)', 124 '<@(mojom_bindings_generator_sources)',
110 '<@(mojom_files)', 125 '<@(mojom_files)',
111 ], 126 ],
112 'mojom_generated_sources': [ '<@(mojom_generated_outputs)' ], 127 'mojom_generated_sources': [ '<@(mojom_generated_outputs)' ],
113 }, 128 },
114 } 129 }
115 }, 130 },
116 } 131 }
OLDNEW
« no previous file with comments | « third_party/mojo/mojom_bindings_generator.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698