| 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 modules, plus aggregate bindings files. | 5 # Generate IDL bindings for modules, 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 'inputs': [ | 45 'inputs': [ |
| 46 '<@(idl_lexer_parser_files)', # to be explicit (covered by parsetab) | 46 '<@(idl_lexer_parser_files)', # to be explicit (covered by parsetab) |
| 47 '<@(idl_cache_files)', | 47 '<@(idl_cache_files)', |
| 48 '<@(idl_compiler_files)', | 48 '<@(idl_compiler_files)', |
| 49 '<(bindings_dir)/IDLExtendedAttributes.txt', | 49 '<(bindings_dir)/IDLExtendedAttributes.txt', |
| 50 # If the dependency structure or public interface info (e.g., | 50 # If the dependency structure or public interface info (e.g., |
| 51 # [ImplementedAs]) changes, we rebuild all files, since we're not | 51 # [ImplementedAs]) changes, we rebuild all files, since we're not |
| 52 # computing dependencies file-by-file in the build. | 52 # computing dependencies file-by-file in the build. |
| 53 # This data is generally stable. | 53 # This data is generally stable. |
| 54 '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle', | 54 '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle', |
| 55 '<(bindings_modules_output_dir)/ComponentInfoModules.pickle', |
| 55 # Further, if any dependency (partial interface or implemented | 56 # Further, if any dependency (partial interface or implemented |
| 56 # interface) changes, rebuild everything, since every IDL potentially | 57 # interface) changes, rebuild everything, since every IDL potentially |
| 57 # depends on them, because we're not computing dependencies | 58 # depends on them, because we're not computing dependencies |
| 58 # file-by-file. | 59 # file-by-file. |
| 59 # FIXME: This is too conservative, and causes excess rebuilds: | 60 # FIXME: This is too conservative, and causes excess rebuilds: |
| 60 # compute this file-by-file. http://crbug.com/341748 | 61 # compute this file-by-file. http://crbug.com/341748 |
| 61 '<@(all_dependency_idl_files)', | 62 '<@(all_dependency_idl_files)', |
| 62 ], | 63 ], |
| 63 'outputs': [ | 64 'outputs': [ |
| 64 '<(bindings_modules_v8_output_dir)/V8<(RULE_INPUT_ROOT).cpp', | 65 '<(bindings_modules_v8_output_dir)/V8<(RULE_INPUT_ROOT).cpp', |
| 65 '<(bindings_modules_v8_output_dir)/V8<(RULE_INPUT_ROOT).h', | 66 '<(bindings_modules_v8_output_dir)/V8<(RULE_INPUT_ROOT).h', |
| 66 ], | 67 ], |
| 67 # sanitize-win-build-log.sed uses a regex which matches this command | 68 # sanitize-win-build-log.sed uses a regex which matches this command |
| 68 # line (Python script + .idl file being processed). | 69 # line (Python script + .idl file being processed). |
| 69 # Update that regex if command line changes (other than changing flags) | 70 # Update that regex if command line changes (other than changing flags) |
| 70 'action': [ | 71 'action': [ |
| 71 'python', | 72 'python', |
| 72 '<(bindings_scripts_dir)/idl_compiler.py', | 73 '<(bindings_scripts_dir)/idl_compiler.py', |
| 73 '--cache-dir', | 74 '--cache-dir', |
| 74 '<(bindings_scripts_output_dir)', | 75 '<(bindings_scripts_output_dir)', |
| 75 '--output-dir', | 76 '--output-dir', |
| 76 '<(bindings_modules_v8_output_dir)', | 77 '<(bindings_modules_v8_output_dir)', |
| 77 '--interfaces-info', | 78 '--interfaces-info', |
| 78 '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle', | 79 '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle', |
| 80 '--component-info', |
| 81 '<(bindings_modules_output_dir)/ComponentInfoModules.pickle', |
| 79 '--write-file-only-if-changed', | 82 '--write-file-only-if-changed', |
| 80 '<(write_file_only_if_changed)', | 83 '<(write_file_only_if_changed)', |
| 81 '<(RULE_INPUT_PATH)', | 84 '<(RULE_INPUT_PATH)', |
| 82 ], | 85 ], |
| 83 'message': 'Generating binding from <(RULE_INPUT_PATH)', | 86 'message': 'Generating binding from <(RULE_INPUT_PATH)', |
| 84 }], | 87 }], |
| 85 }, | 88 }, |
| 86 ################################################################################ | 89 ################################################################################ |
| 87 { | 90 { |
| 88 'target_name': 'bindings_modules_v8_generated_aggregate', | 91 'target_name': 'bindings_modules_v8_generated_aggregate', |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 '<@(idl_compiler_files)', | 197 '<@(idl_compiler_files)', |
| 195 '<(bindings_scripts_output_dir)/lextab.py', | 198 '<(bindings_scripts_output_dir)/lextab.py', |
| 196 '<(bindings_scripts_output_dir)/parsetab.pickle', | 199 '<(bindings_scripts_output_dir)/parsetab.pickle', |
| 197 '<(bindings_scripts_output_dir)/cached_jinja_templates.stamp', | 200 '<(bindings_scripts_output_dir)/cached_jinja_templates.stamp', |
| 198 '<(bindings_dir)/IDLExtendedAttributes.txt', | 201 '<(bindings_dir)/IDLExtendedAttributes.txt', |
| 199 # If the dependency structure or public interface info (e.g., | 202 # If the dependency structure or public interface info (e.g., |
| 200 # [ImplementedAs]) changes, we rebuild all files, since we're not | 203 # [ImplementedAs]) changes, we rebuild all files, since we're not |
| 201 # computing dependencies file-by-file in the build. | 204 # computing dependencies file-by-file in the build. |
| 202 # This data is generally stable. | 205 # This data is generally stable. |
| 203 '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle', | 206 '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle', |
| 207 '<(bindings_modules_output_dir)/ComponentInfoModules.pickle', |
| 204 # Further, if any dependency (partial interface or implemented | 208 # Further, if any dependency (partial interface or implemented |
| 205 # interface) changes, rebuild everything, since every IDL potentially | 209 # interface) changes, rebuild everything, since every IDL potentially |
| 206 # depends on them, because we're not computing dependencies | 210 # depends on them, because we're not computing dependencies |
| 207 # file-by-file. | 211 # file-by-file. |
| 208 # FIXME: This is too conservative, and causes excess rebuilds: | 212 # FIXME: This is too conservative, and causes excess rebuilds: |
| 209 # compute this file-by-file. http://crbug.com/341748 | 213 # compute this file-by-file. http://crbug.com/341748 |
| 210 '<@(all_dependency_idl_files)', | 214 '<@(all_dependency_idl_files)', |
| 211 '<@(webcore_testing_idl_files)', | 215 '<@(webcore_testing_idl_files)', |
| 212 ], | 216 ], |
| 213 'outputs': [ | 217 'outputs': [ |
| 214 '<(bindings_modules_v8_output_dir)/V8<(RULE_INPUT_ROOT)Partial.cpp', | 218 '<(bindings_modules_v8_output_dir)/V8<(RULE_INPUT_ROOT)Partial.cpp', |
| 215 '<(bindings_modules_v8_output_dir)/V8<(RULE_INPUT_ROOT)Partial.h', | 219 '<(bindings_modules_v8_output_dir)/V8<(RULE_INPUT_ROOT)Partial.h', |
| 216 ], | 220 ], |
| 217 # sanitize-win-build-log.sed uses a regex which matches this command | 221 # sanitize-win-build-log.sed uses a regex which matches this command |
| 218 # line (Python script + .idl file being processed). | 222 # line (Python script + .idl file being processed). |
| 219 # Update that regex if command line changes (other than changing flags) | 223 # Update that regex if command line changes (other than changing flags) |
| 220 'action': [ | 224 'action': [ |
| 221 'python', | 225 'python', |
| 222 '<(bindings_scripts_dir)/idl_compiler.py', | 226 '<(bindings_scripts_dir)/idl_compiler.py', |
| 223 '--cache-dir', | 227 '--cache-dir', |
| 224 '<(bindings_scripts_output_dir)', | 228 '<(bindings_scripts_output_dir)', |
| 225 '--output-dir', | 229 '--output-dir', |
| 226 '<(bindings_modules_v8_output_dir)', | 230 '<(bindings_modules_v8_output_dir)', |
| 227 '--interfaces-info', | 231 '--interfaces-info', |
| 228 '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle', | 232 '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle', |
| 233 '--component-info', |
| 234 '<(bindings_modules_output_dir)/ComponentInfoModules.pickle', |
| 229 '--write-file-only-if-changed', | 235 '--write-file-only-if-changed', |
| 230 '<(write_file_only_if_changed)', | 236 '<(write_file_only_if_changed)', |
| 231 '--target-component', | 237 '--target-component', |
| 232 'modules', | 238 'modules', |
| 233 '<(RULE_INPUT_PATH)', | 239 '<(RULE_INPUT_PATH)', |
| 234 ], | 240 ], |
| 235 'message': 'Generating partial binding from <(RULE_INPUT_PATH)', | 241 'message': 'Generating partial binding from <(RULE_INPUT_PATH)', |
| 236 }], | 242 }], |
| 237 }, | 243 }, |
| 238 ################################################################################ | 244 ################################################################################ |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 'bindings_modules_v8_generated_aggregate', | 300 'bindings_modules_v8_generated_aggregate', |
| 295 'bindings_modules_v8_generated_individual', | 301 'bindings_modules_v8_generated_individual', |
| 296 'bindings_modules_v8_generated_init_partial', | 302 'bindings_modules_v8_generated_init_partial', |
| 297 'bindings_modules_v8_generated_partial_aggregate', | 303 'bindings_modules_v8_generated_partial_aggregate', |
| 298 'bindings_modules_v8_generated_partial_individual', | 304 'bindings_modules_v8_generated_partial_individual', |
| 299 ], | 305 ], |
| 300 }, | 306 }, |
| 301 ################################################################################ | 307 ################################################################################ |
| 302 ], # targets | 308 ], # targets |
| 303 } | 309 } |
| OLD | NEW |