OLD | NEW |
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 'variables': { |
| 12 'for_blink%': 'false', |
| 13 }, |
12 'for_blink%': 'false', | 14 'for_blink%': 'false', |
| 15 'conditions': [ |
| 16 ['for_blink=="true"', { |
| 17 'mojom_output_languages%': 'c++', |
| 18 'mojom_variant%': 'blink', |
| 19 'mojom_generator_wtf_arg%': [ |
| 20 '--for_blink', |
| 21 ], |
| 22 'wtf_dependencies%': [ |
| 23 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings_wtf_support', |
| 24 '<(DEPTH)/third_party/WebKit/Source/wtf/wtf.gyp:wtf', |
| 25 ], |
| 26 }, { |
| 27 'mojom_output_languages%': 'c++,javascript,java', |
| 28 'mojom_variant%': 'none', |
| 29 'mojom_generator_wtf_arg%': [], |
| 30 'wtf_dependencies%': [], |
| 31 }], |
| 32 ], |
13 }, | 33 }, |
| 34 'for_blink%': '<(for_blink)', |
14 'mojom_variant%': '<(mojom_variant)', | 35 'mojom_variant%': '<(mojom_variant)', |
| 36 'mojom_generator_wtf_arg%': '<(mojom_generator_wtf_arg)', |
| 37 'wtf_dependencies%': '<(wtf_dependencies)', |
| 38 'mojom_output_languages%': '<(mojom_output_languages)', |
15 'mojom_typemaps%': [], | 39 'mojom_typemaps%': [], |
16 'for_blink%': '<(for_blink)', | |
17 'mojom_base_output_dir': | 40 'mojom_base_output_dir': |
18 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', | 41 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', |
19 'mojom_generated_outputs': [ | 42 'mojom_generated_outputs': [ |
20 '<!@(python <(DEPTH)/mojo/public/tools/bindings/mojom_list_outputs.py --ba
sedir <(mojom_base_output_dir) --variant <(mojom_variant) <@(mojom_files))', | 43 '<!@(python <(DEPTH)/mojo/public/tools/bindings/mojom_list_outputs.py --ba
sedir <(mojom_base_output_dir) --variant <(mojom_variant) <@(mojom_files))', |
21 ], | 44 ], |
22 'generated_typemap_file': '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_di
r)/<(_target_name)_type_mappings', | 45 'generated_typemap_file': '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_di
r)/<(_target_name)_type_mappings', |
23 'mojom_include_path%': '<(DEPTH)', | 46 'mojom_include_path%': '<(DEPTH)', |
24 'require_interface_bindings%': 1, | 47 'require_interface_bindings%': 1, |
25 'conditions': [ | |
26 ['mojom_variant=="none"', { | |
27 'mojom_output_languages%': 'c++,javascript,java', | |
28 }, { | |
29 'mojom_output_languages%': 'c++', | |
30 }], | |
31 ['for_blink=="true"', { | |
32 'mojom_generator_wtf_arg%': [ | |
33 '--for_blink', | |
34 ], | |
35 'wtf_dependencies%': [ | |
36 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings_wtf_support', | |
37 '<(DEPTH)/third_party/WebKit/Source/wtf/wtf.gyp:wtf', | |
38 ], | |
39 }, { | |
40 'mojom_generator_wtf_arg%': [], | |
41 'wtf_dependencies%': [], | |
42 }], | |
43 ], | |
44 }, | 48 }, |
45 # Given mojom files as inputs, generate sources. These sources will be | 49 # Given mojom files as inputs, generate sources. These sources will be |
46 # exported to another target (via dependent_settings) to be compiled. This | 50 # exported to another target (via dependent_settings) to be compiled. This |
47 # keeps code generation separate from compilation, allowing the same sources | 51 # keeps code generation separate from compilation, allowing the same sources |
48 # to be compiled with multiple toolchains - target, NaCl, etc. | 52 # to be compiled with multiple toolchains - target, NaCl, etc. |
49 'actions': [ | 53 'actions': [ |
50 { | 54 { |
51 'variables': { | 55 'variables': { |
52 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', | 56 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', |
53 'stamp_filename': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/<(_target_na
me).stamp', | 57 'stamp_filename': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/<(_target_na
me).stamp', |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 ], | 174 ], |
171 'additional_input_paths': [ | 175 'additional_input_paths': [ |
172 '<@(mojom_bindings_generator_sources)', | 176 '<@(mojom_bindings_generator_sources)', |
173 '<@(mojom_files)', | 177 '<@(mojom_files)', |
174 ], | 178 ], |
175 'mojom_generated_sources': [ '<@(mojom_generated_outputs)' ], | 179 'mojom_generated_sources': [ '<@(mojom_generated_outputs)' ], |
176 }, | 180 }, |
177 } | 181 } |
178 }, | 182 }, |
179 } | 183 } |
OLD | NEW |