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': |
(...skipping 27 matching lines...) Expand all Loading... |
38 '<@(mojom_files)', | 38 '<@(mojom_files)', |
39 '--use_chromium_bundled_pylibs', | 39 '--use_chromium_bundled_pylibs', |
40 '-d', '<(DEPTH)', | 40 '-d', '<(DEPTH)', |
41 '<@(mojom_import_args)', | 41 '<@(mojom_import_args)', |
42 '-o', '<(SHARED_INTERMEDIATE_DIR)', | 42 '-o', '<(SHARED_INTERMEDIATE_DIR)', |
43 '--java_output_directory=<(java_out_dir)', | 43 '--java_output_directory=<(java_out_dir)', |
44 ], | 44 ], |
45 'message': 'Generating Mojo bindings from <@(mojom_files)', | 45 'message': 'Generating Mojo bindings from <@(mojom_files)', |
46 } | 46 } |
47 ], | 47 ], |
| 48 # Prevent the generated sources from being injected into the "all" target by |
| 49 # preventing the code generator from being directly depended on by the "all" |
| 50 # target. |
| 51 'suppress_wildcard': '1', |
48 'direct_dependent_settings': { | 52 'direct_dependent_settings': { |
49 # A target directly depending on this action will compile the generated | 53 # A target directly depending on this action will compile the generated |
50 # sources. | 54 # sources. |
51 'sources': [ | 55 'sources': [ |
52 '<@(mojom_generated_outputs)', | 56 '<@(mojom_generated_outputs)', |
53 ], | 57 ], |
54 # Include paths needed to compile the generated sources into a library. | 58 # Include paths needed to compile the generated sources into a library. |
55 'include_dirs': [ | 59 'include_dirs': [ |
56 '<(DEPTH)', | 60 '<(DEPTH)', |
57 '<(SHARED_INTERMEDIATE_DIR)', | 61 '<(SHARED_INTERMEDIATE_DIR)', |
58 ], | 62 ], |
59 # Make sure the generated header files are available for any static library | 63 # Make sure the generated header files are available for any static library |
60 # that depends on a static library that depends on this generator. | 64 # that depends on a static library that depends on this generator. |
61 'hard_dependency': 1, | 65 'hard_dependency': 1, |
62 'direct_dependent_settings': { | 66 'direct_dependent_settings': { |
63 # Include paths needed to find the generated header files and their | 67 # Include paths needed to find the generated header files and their |
64 # transitive dependancies when using the library. | 68 # transitive dependancies when using the library. |
65 'include_dirs': [ | 69 'include_dirs': [ |
66 '<(DEPTH)', | 70 '<(DEPTH)', |
67 '<(SHARED_INTERMEDIATE_DIR)', | 71 '<(SHARED_INTERMEDIATE_DIR)', |
68 ], | 72 ], |
69 'variables': { | 73 'variables': { |
70 'generated_src_dirs': [ | 74 'generated_src_dirs': [ |
71 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', | 75 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', |
72 ], | 76 ], |
73 }, | 77 }, |
74 } | 78 } |
75 }, | 79 }, |
76 } | 80 } |
OLD | NEW |