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)/mojo/public/tools/bindings/mojom_list_outputs.py --ba
sedir <(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 }, | 15 }, |
16 # Given mojom files as inputs, generate sources. These sources will be | 16 # Given mojom files as inputs, generate sources. These sources will be |
17 # exported to another target (via dependent_settings) to be compiled. This | 17 # exported to another target (via dependent_settings) to be compiled. This |
18 # keeps code generation separate from compilation, allowing the same sources | 18 # keeps code generation separate from compilation, allowing the same sources |
19 # to be compiled with multiple toolchains - target, NaCl, etc. | 19 # to be compiled with multiple toolchains - target, NaCl, etc. |
20 'actions': [ | 20 'actions': [ |
21 { | 21 { |
22 'action_name': '<(_target_name)_mojom_bindings_generator', | 22 'action_name': '<(_target_name)_mojom_bindings_generator', |
23 'variables': { | 23 'variables': { |
24 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', | 24 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', |
25 'mojom_import_args%': [ | 25 'mojom_import_args%': [ |
26 '-I<(DEPTH)' | 26 '-I<(DEPTH)', |
| 27 '-I<(DEPTH)/third_party/mojo/src' |
27 ], | 28 ], |
28 }, | 29 }, |
29 'inputs': [ | 30 'inputs': [ |
30 '<@(mojom_bindings_generator_sources)', | 31 '<@(mojom_bindings_generator_sources)', |
31 '<@(mojom_files)', | 32 '<@(mojom_files)', |
32 ], | 33 ], |
33 'outputs': [ | 34 'outputs': [ |
34 '<@(mojom_generated_outputs)', | 35 '<@(mojom_generated_outputs)', |
35 ], | 36 ], |
36 'action': [ | 37 'action': [ |
(...skipping 14 matching lines...) Expand all Loading... |
51 'suppress_wildcard': '1', | 52 'suppress_wildcard': '1', |
52 'direct_dependent_settings': { | 53 'direct_dependent_settings': { |
53 # A target directly depending on this action will compile the generated | 54 # A target directly depending on this action will compile the generated |
54 # sources. | 55 # sources. |
55 'sources': [ | 56 'sources': [ |
56 '<@(mojom_generated_outputs)', | 57 '<@(mojom_generated_outputs)', |
57 ], | 58 ], |
58 # Include paths needed to compile the generated sources into a library. | 59 # Include paths needed to compile the generated sources into a library. |
59 'include_dirs': [ | 60 'include_dirs': [ |
60 '<(DEPTH)', | 61 '<(DEPTH)', |
| 62 '<(DEPTH)/third_party/mojo/src', |
61 '<(SHARED_INTERMEDIATE_DIR)', | 63 '<(SHARED_INTERMEDIATE_DIR)', |
| 64 '<(SHARED_INTERMEDIATE_DIR)/third_party/mojo/src', |
62 ], | 65 ], |
63 # Make sure the generated header files are available for any static library | 66 # Make sure the generated header files are available for any static library |
64 # that depends on a static library that depends on this generator. | 67 # that depends on a static library that depends on this generator. |
65 'hard_dependency': 1, | 68 'hard_dependency': 1, |
66 'direct_dependent_settings': { | 69 'direct_dependent_settings': { |
67 # Include paths needed to find the generated header files and their | 70 # Include paths needed to find the generated header files and their |
68 # transitive dependancies when using the library. | 71 # transitive dependancies when using the library. |
69 'include_dirs': [ | 72 'include_dirs': [ |
70 '<(DEPTH)', | 73 '<(DEPTH)', |
| 74 '<(DEPTH)/third_party/mojo/src', |
71 '<(SHARED_INTERMEDIATE_DIR)', | 75 '<(SHARED_INTERMEDIATE_DIR)', |
| 76 '<(SHARED_INTERMEDIATE_DIR)/third_party/mojo/src', |
72 ], | 77 ], |
73 'variables': { | 78 'variables': { |
74 'generated_src_dirs': [ | 79 'generated_src_dirs': [ |
75 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', | 80 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', |
76 ], | 81 ], |
77 }, | 82 }, |
78 } | 83 } |
79 }, | 84 }, |
80 } | 85 } |
OLD | NEW |