OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # Generate IDL bindings for core, plus aggregate bindings files. | 5 # Generate IDL bindings for core, plus aggregate bindings files. |
6 # | 6 # |
7 # Design doc: http://www.chromium.org/developers/design-documents/idl-build | 7 # Design doc: http://www.chromium.org/developers/design-documents/idl-build |
8 | 8 |
9 { | 9 { |
10 'includes': [ | 10 'includes': [ |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 # line (Python script + .idl file being processed). | 79 # line (Python script + .idl file being processed). |
80 # Update that regex if command line changes (other than changing flags) | 80 # Update that regex if command line changes (other than changing flags) |
81 'action': [ | 81 'action': [ |
82 'python', | 82 'python', |
83 '-S', # skip 'import site' to speed up startup | 83 '-S', # skip 'import site' to speed up startup |
84 '<(bindings_scripts_dir)/idl_compiler.py', | 84 '<(bindings_scripts_dir)/idl_compiler.py', |
85 '--cache-dir', | 85 '--cache-dir', |
86 '<(bindings_scripts_output_dir)', | 86 '<(bindings_scripts_output_dir)', |
87 '--output-dir', | 87 '--output-dir', |
88 '<(bindings_core_v8_output_dir)', | 88 '<(bindings_core_v8_output_dir)', |
| 89 '--impl-output-dir', |
| 90 '<(bindings_core_impl_output_dir)', |
89 '--interfaces-info', | 91 '--interfaces-info', |
90 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', | 92 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
91 '--write-file-only-if-changed', | 93 '--write-file-only-if-changed', |
92 '<(write_file_only_if_changed)', | 94 '<(write_file_only_if_changed)', |
93 '<(RULE_INPUT_PATH)', | 95 '<(RULE_INPUT_PATH)', |
94 ], | 96 ], |
95 'message': 'Generating binding from <(RULE_INPUT_PATH)', | 97 'message': 'Generating binding from <(RULE_INPUT_PATH)', |
96 }], | 98 }], |
97 }, | 99 }, |
98 ################################################################################ | 100 ################################################################################ |
(...skipping 16 matching lines...) Expand all Loading... |
115 'core', | 117 'core', |
116 '<(core_idl_files_list)', | 118 '<(core_idl_files_list)', |
117 '--', | 119 '--', |
118 '<@(bindings_core_v8_generated_aggregate_files)', | 120 '<@(bindings_core_v8_generated_aggregate_files)', |
119 ], | 121 ], |
120 'message': 'Generating aggregate generated core V8 bindings files', | 122 'message': 'Generating aggregate generated core V8 bindings files', |
121 }], | 123 }], |
122 }, | 124 }, |
123 ################################################################################ | 125 ################################################################################ |
124 { | 126 { |
| 127 # FIXME: Write GN version |
| 128 'target_name': 'bindings_core_dictionaries_generated_aggregate', |
| 129 'type': 'none', |
| 130 'actions': [{ |
| 131 'action_name': 'generate_aggregate_dictionaries_core', |
| 132 'inputs': [ |
| 133 '<(bindings_scripts_dir)/aggregate_generated_dictionaries.py', |
| 134 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
| 135 ], |
| 136 'outputs': [ |
| 137 '<(bindings_core_dictionaries_generated_aggregate_file)', |
| 138 ], |
| 139 'action': [ |
| 140 'python', |
| 141 '<(bindings_scripts_dir)/aggregate_generated_dictionaries.py', |
| 142 'core', |
| 143 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle', |
| 144 '<(bindings_core_dictionaries_generated_aggregate_file)', |
| 145 ], |
| 146 'message': 'Generating aggregate generated core IDL dictionary files', |
| 147 }], |
| 148 }, |
| 149 ################################################################################ |
| 150 { |
125 # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_
generated | 151 # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_
generated |
126 'target_name': 'bindings_core_v8_generated', | 152 'target_name': 'bindings_core_v8_generated', |
127 'type': 'none', | 153 'type': 'none', |
128 'dependencies': [ | 154 'dependencies': [ |
| 155 'bindings_core_dictionaries_generated_aggregate', |
129 'bindings_core_v8_generated_aggregate', | 156 'bindings_core_v8_generated_aggregate', |
130 'bindings_core_v8_generated_individual', | 157 'bindings_core_v8_generated_individual', |
131 ], | 158 ], |
132 }, | 159 }, |
133 ################################################################################ | 160 ################################################################################ |
134 ], # targets | 161 ], # targets |
135 } | 162 } |
OLD | NEW |