| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 'inputs': [ | 53 'inputs': [ |
| 54 '<@(idl_lexer_parser_files)', # to be explicit (covered by parsetab) | 54 '<@(idl_lexer_parser_files)', # to be explicit (covered by parsetab) |
| 55 '<@(idl_cache_files)', | 55 '<@(idl_cache_files)', |
| 56 '<@(idl_compiler_files)', | 56 '<@(idl_compiler_files)', |
| 57 '<(bindings_dir)/IDLExtendedAttributes.txt', | 57 '<(bindings_dir)/IDLExtendedAttributes.txt', |
| 58 # If the dependency structure or public interface info (e.g., | 58 # If the dependency structure or public interface info (e.g., |
| 59 # [ImplementedAs]) changes, we rebuild all files, since we're not | 59 # [ImplementedAs]) changes, we rebuild all files, since we're not |
| 60 # computing dependencies file-by-file in the build. | 60 # computing dependencies file-by-file in the build. |
| 61 # This data is generally stable. | 61 # This data is generally stable. |
| 62 '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle', | 62 '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle', |
| 63 '<(bindings_core_output_dir)/ComponentInfoCore.pickle', |
| 63 # Further, if any dependency (partial interface or implemented | 64 # Further, if any dependency (partial interface or implemented |
| 64 # interface) changes, rebuild everything, since every IDL potentially | 65 # interface) changes, rebuild everything, since every IDL potentially |
| 65 # depends on them, because we're not computing dependencies | 66 # depends on them, because we're not computing dependencies |
| 66 # file-by-file. | 67 # file-by-file. |
| 67 # FIXME: This is too conservative, and causes excess rebuilds: | 68 # FIXME: This is too conservative, and causes excess rebuilds: |
| 68 # compute this file-by-file. http://crbug.com/341748 | 69 # compute this file-by-file. http://crbug.com/341748 |
| 69 # FIXME: should be core_all_dependency_idl_files only, but some core IDL | 70 # FIXME: should be core_all_dependency_idl_files only, but some core IDL |
| 70 # files depend on modules IDL files http://crbug.com/358074 | 71 # files depend on modules IDL files http://crbug.com/358074 |
| 71 '<@(all_dependency_idl_files)', | 72 '<@(all_dependency_idl_files)', |
| 72 ], | 73 ], |
| 73 'outputs': [ | 74 'outputs': [ |
| 74 '<(bindings_core_v8_output_dir)/V8<(RULE_INPUT_ROOT).cpp', | 75 '<(bindings_core_v8_output_dir)/V8<(RULE_INPUT_ROOT).cpp', |
| 75 '<(bindings_core_v8_output_dir)/V8<(RULE_INPUT_ROOT).h', | 76 '<(bindings_core_v8_output_dir)/V8<(RULE_INPUT_ROOT).h', |
| 76 ], | 77 ], |
| 77 # sanitize-win-build-log.sed uses a regex which matches this command | 78 # sanitize-win-build-log.sed uses a regex which matches this command |
| 78 # line (Python script + .idl file being processed). | 79 # line (Python script + .idl file being processed). |
| 79 # Update that regex if command line changes (other than changing flags) | 80 # Update that regex if command line changes (other than changing flags) |
| 80 'action': [ | 81 'action': [ |
| 81 'python', | 82 'python', |
| 82 '<(bindings_scripts_dir)/idl_compiler.py', | 83 '<(bindings_scripts_dir)/idl_compiler.py', |
| 83 '--cache-dir', | 84 '--cache-dir', |
| 84 '<(bindings_scripts_output_dir)', | 85 '<(bindings_scripts_output_dir)', |
| 85 '--output-dir', | 86 '--output-dir', |
| 86 '<(bindings_core_v8_output_dir)', | 87 '<(bindings_core_v8_output_dir)', |
| 87 '--interfaces-info', | 88 '--interfaces-info', |
| 88 '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle', | 89 '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle', |
| 90 '--component-info', |
| 91 '<(bindings_core_output_dir)/ComponentInfoCore.pickle', |
| 89 '--write-file-only-if-changed', | 92 '--write-file-only-if-changed', |
| 90 '<(write_file_only_if_changed)', | 93 '<(write_file_only_if_changed)', |
| 91 '<(RULE_INPUT_PATH)', | 94 '<(RULE_INPUT_PATH)', |
| 92 ], | 95 ], |
| 93 'message': 'Generating binding from <(RULE_INPUT_PATH)', | 96 'message': 'Generating binding from <(RULE_INPUT_PATH)', |
| 94 }], | 97 }], |
| 95 }, | 98 }, |
| 96 ################################################################################ | 99 ################################################################################ |
| 97 { | 100 { |
| 98 # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_
generated_aggregate | 101 # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_
generated_aggregate |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 'type': 'none', | 189 'type': 'none', |
| 187 'dependencies': [ | 190 'dependencies': [ |
| 188 'bindings_core_impl_generated', | 191 'bindings_core_impl_generated', |
| 189 'bindings_core_v8_generated_aggregate', | 192 'bindings_core_v8_generated_aggregate', |
| 190 'bindings_core_v8_generated_individual', | 193 'bindings_core_v8_generated_individual', |
| 191 ], | 194 ], |
| 192 }, | 195 }, |
| 193 ################################################################################ | 196 ################################################################################ |
| 194 ], # targets | 197 ], # targets |
| 195 } | 198 } |
| OLD | NEW |