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', | 12 'for_blink%': 'false', |
| 13 }, |
| 14 'for_blink%': '<(for_blink)', |
| 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) <@(_sources))', | 43 '<!@(python <(DEPTH)/mojo/public/tools/bindings/mojom_list_outputs.py --ba
sedir <(mojom_base_output_dir) --variant <(mojom_variant) <@(_sources))', |
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 'conditions': [ | |
24 ['mojom_variant=="none"', { | |
25 'mojom_output_languages%': 'c++,javascript,java', | |
26 }, { | |
27 'mojom_output_languages%': 'c++', | |
28 }], | |
29 ['for_blink=="true"', { | |
30 'mojom_generator_wtf_arg%': [ | |
31 '--for_blink', | |
32 ], | |
33 'wtf_dependencies%': [ | |
34 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings_wtf_support', | |
35 '<(DEPTH)/third_party/WebKit/Source/wtf/wtf.gyp:wtf', | |
36 ], | |
37 }, { | |
38 'mojom_generator_wtf_arg%': [], | |
39 'wtf_dependencies%': [], | |
40 }], | |
41 ], | |
42 }, | 46 }, |
43 'actions': [ | 47 'actions': [ |
44 { | 48 { |
45 'variables': { | 49 'variables': { |
46 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', | 50 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', |
47 'stamp_filename': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/<(_target_na
me).stamp', | 51 'stamp_filename': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/<(_target_na
me).stamp', |
48 }, | 52 }, |
49 'action_name': '<(_target_name)_mojom_bindings_stamp', | 53 'action_name': '<(_target_name)_mojom_bindings_stamp', |
50 # The java output directory is deleted to ensure that the java library | 54 # The java output directory is deleted to ensure that the java library |
51 # doesn't try to compile stale files. | 55 # doesn't try to compile stale files. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', | 157 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', |
154 ], | 158 ], |
155 'additional_input_paths': [ | 159 'additional_input_paths': [ |
156 '<@(mojom_bindings_generator_sources)', | 160 '<@(mojom_bindings_generator_sources)', |
157 '<@(_sources)', | 161 '<@(_sources)', |
158 ], | 162 ], |
159 }, | 163 }, |
160 }, | 164 }, |
161 'hard_dependency': 1, | 165 'hard_dependency': 1, |
162 } | 166 } |
OLD | NEW |