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 'mojom_base_output_dir': | 10 'mojom_base_output_dir': |
11 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', | 11 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', |
12 'mojom_generated_outputs': [ | 12 'mojom_generated_outputs': [ |
13 '<!@(python <(DEPTH)/third_party/mojo/src/mojo/public/tools/bindings/mojom
_list_outputs.py --basedir <(mojom_base_output_dir) <@(mojom_files))', | 13 '<!@(python <(DEPTH)/third_party/mojo/src/mojo/public/tools/bindings/mojom
_list_outputs.py --basedir <(mojom_base_output_dir) <@(mojom_files))', |
14 ], | 14 ], |
| 15 'mojom_include_path%': '<(DEPTH)', |
15 'require_interface_bindings%': 1, | 16 'require_interface_bindings%': 1, |
16 }, | 17 }, |
17 # Given mojom files as inputs, generate sources. These sources will be | 18 # Given mojom files as inputs, generate sources. These sources will be |
18 # exported to another target (via dependent_settings) to be compiled. This | 19 # exported to another target (via dependent_settings) to be compiled. This |
19 # keeps code generation separate from compilation, allowing the same sources | 20 # keeps code generation separate from compilation, allowing the same sources |
20 # to be compiled with multiple toolchains - target, NaCl, etc. | 21 # to be compiled with multiple toolchains - target, NaCl, etc. |
21 'actions': [ | 22 'actions': [ |
22 { | 23 { |
23 'variables': { | 24 'variables': { |
24 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', | 25 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', |
(...skipping 10 matching lines...) Expand all Loading... |
35 'inputs': [ '<@(mojom_files)' ], | 36 'inputs': [ '<@(mojom_files)' ], |
36 'outputs': [ '<(stamp_filename)' ], | 37 'outputs': [ '<(stamp_filename)' ], |
37 }, | 38 }, |
38 { | 39 { |
39 'action_name': '<(_target_name)_mojom_bindings_generator', | 40 'action_name': '<(_target_name)_mojom_bindings_generator', |
40 'variables': { | 41 'variables': { |
41 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', | 42 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', |
42 'stamp_filename': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/<(_target_na
me).stamp', | 43 'stamp_filename': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/<(_target_na
me).stamp', |
43 'mojom_import_args%': [ | 44 'mojom_import_args%': [ |
44 '-I<(DEPTH)', | 45 '-I<(DEPTH)', |
45 '-I<(DEPTH)/third_party/mojo/src' | 46 '-I<(DEPTH)/third_party/mojo/src', |
| 47 '-I<(mojom_include_path)', |
46 ], | 48 ], |
47 }, | 49 }, |
48 'inputs': [ | 50 'inputs': [ |
49 '<@(mojom_bindings_generator_sources)', | 51 '<@(mojom_bindings_generator_sources)', |
50 '<@(mojom_files)', | 52 '<@(mojom_files)', |
51 '<(stamp_filename)', | 53 '<(stamp_filename)', |
52 ], | 54 ], |
53 'outputs': [ | 55 'outputs': [ |
54 '<@(mojom_generated_outputs)', | 56 '<@(mojom_generated_outputs)', |
55 ], | 57 ], |
(...skipping 14 matching lines...) Expand all Loading... |
70 ['require_interface_bindings==1', { | 72 ['require_interface_bindings==1', { |
71 'dependencies': [ | 73 'dependencies': [ |
72 '<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_interface_bindings_gener
ation', | 74 '<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_interface_bindings_gener
ation', |
73 ], | 75 ], |
74 }], | 76 }], |
75 ], | 77 ], |
76 # Prevent the generated sources from being injected into the "all" target by | 78 # Prevent the generated sources from being injected into the "all" target by |
77 # preventing the code generator from being directly depended on by the "all" | 79 # preventing the code generator from being directly depended on by the "all" |
78 # target. | 80 # target. |
79 'suppress_wildcard': '1', | 81 'suppress_wildcard': '1', |
| 82 'hard_dependency': '1', |
80 'direct_dependent_settings': { | 83 'direct_dependent_settings': { |
81 # A target directly depending on this action will compile the generated | 84 # A target directly depending on this action will compile the generated |
82 # sources. | 85 # sources. |
83 'sources': [ | 86 'sources': [ |
84 '<@(mojom_generated_outputs)', | 87 '<@(mojom_generated_outputs)', |
85 ], | 88 ], |
86 # Include paths needed to compile the generated sources into a library. | 89 # Include paths needed to compile the generated sources into a library. |
87 'include_dirs': [ | 90 'include_dirs': [ |
88 '<(DEPTH)', | 91 '<(DEPTH)', |
89 '<(DEPTH)/third_party/mojo/src', | 92 '<(DEPTH)/third_party/mojo/src', |
(...skipping 18 matching lines...) Expand all Loading... |
108 ], | 111 ], |
109 'additional_input_paths': [ | 112 'additional_input_paths': [ |
110 '<@(mojom_bindings_generator_sources)', | 113 '<@(mojom_bindings_generator_sources)', |
111 '<@(mojom_files)', | 114 '<@(mojom_files)', |
112 ], | 115 ], |
113 'mojom_generated_sources': [ '<@(mojom_generated_outputs)' ], | 116 'mojom_generated_sources': [ '<@(mojom_generated_outputs)' ], |
114 }, | 117 }, |
115 } | 118 } |
116 }, | 119 }, |
117 } | 120 } |
OLD | NEW |