| 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 interfaces info for core, used to generate bindings | 5 # Generate IDL interfaces info for core, used to generate bindings |
| 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': [ |
| 11 # ../.. == Source | 11 # ../.. == Source |
| 12 '../../bindings/bindings.gypi', | 12 '../../bindings/bindings.gypi', |
| 13 # FIXME: need info about modules for constructors on global objects | |
| 14 # http://crbug.com/358074 | |
| 15 '../../bindings/modules/idl.gypi', | |
| 16 '../../bindings/modules/modules.gypi', | |
| 17 '../../bindings/scripts/scripts.gypi', | 13 '../../bindings/scripts/scripts.gypi', |
| 18 '../../core/core.gypi', | 14 '../../core/core.gypi', |
| 19 'core.gypi', | 15 'core.gypi', |
| 20 'generated.gypi', | 16 'generated.gypi', |
| 21 'idl.gypi', | 17 'idl.gypi', |
| 22 ], | 18 ], |
| 23 | 19 |
| 24 'targets': [ | 20 'targets': [ |
| 25 ################################################################################ | 21 ################################################################################ |
| 26 { | 22 { |
| 27 'target_name': 'core_global_objects', | 23 'target_name': 'core_global_objects', |
| 28 'type': 'none', | 24 'type': 'none', |
| 29 'actions': [{ | 25 'actions': [{ |
| 30 'action_name': 'core_modules_global_objects', | 26 'action_name': 'compute_core_global_objects', |
| 31 'inputs': [ | 27 'inputs': [ |
| 32 '<(bindings_scripts_dir)/compute_global_objects.py', | 28 '<(bindings_scripts_dir)/compute_global_objects.py', |
| 33 '<(bindings_scripts_dir)/utilities.py', | 29 '<(bindings_scripts_dir)/utilities.py', |
| 34 # Only look in main IDL files (exclude dependencies and testing, | 30 # Only look in main IDL files (exclude dependencies and testing, |
| 35 # which should not define global objects). | 31 # which should not define global objects). |
| 36 '<(core_idl_files_list)', | 32 '<(core_idl_files_list)', |
| 37 '<@(core_idl_files)', | 33 '<@(core_idl_files)', |
| 38 ], | 34 ], |
| 39 'outputs': [ | 35 'outputs': [ |
| 40 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', | 36 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', |
| 41 ], | 37 ], |
| 42 'action': [ | 38 'action': [ |
| 43 'python', | 39 'python', |
| 44 '<(bindings_scripts_dir)/compute_global_objects.py', | 40 '<(bindings_scripts_dir)/compute_global_objects.py', |
| 45 '--idl-files-list', | 41 '--idl-files-list', |
| 46 '<(core_idl_files_list)', | 42 '<(core_idl_files_list)', |
| 47 '--write-file-only-if-changed', | 43 '--write-file-only-if-changed', |
| 48 '<(write_file_only_if_changed)', | 44 '<(write_file_only_if_changed)', |
| 49 '--', | 45 '--', |
| 50 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', | 46 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', |
| 51 ], | 47 ], |
| 52 'message': 'Computing global objects in core', | 48 'message': 'Computing global objects in core', |
| 53 }] | 49 }] |
| 54 }, | 50 }, |
| 55 ################################################################################ | 51 ################################################################################ |
| 56 { | 52 { |
| 57 # FIXME: should be in modules/generated.gyp http://crbug.com/358074 | |
| 58 'target_name': 'modules_global_objects', | |
| 59 'type': 'none', | |
| 60 'dependencies': [ | |
| 61 'core_global_objects', | |
| 62 ], | |
| 63 'actions': [{ | |
| 64 'action_name': 'compute_modules_global_objects', | |
| 65 'inputs': [ | |
| 66 '<(bindings_scripts_dir)/compute_global_objects.py', | |
| 67 '<(bindings_scripts_dir)/utilities.py', | |
| 68 # Only look in main IDL files (exclude dependencies and testing, | |
| 69 # which should not define global objects). | |
| 70 '<(modules_idl_files_list)', | |
| 71 '<@(modules_idl_files)', | |
| 72 ], | |
| 73 'outputs': [ | |
| 74 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', | |
| 75 ], | |
| 76 'action': [ | |
| 77 'python', | |
| 78 '<(bindings_scripts_dir)/compute_global_objects.py', | |
| 79 '--idl-files-list', | |
| 80 '<(modules_idl_files_list)', | |
| 81 '--write-file-only-if-changed', | |
| 82 '<(write_file_only_if_changed)', | |
| 83 '--', | |
| 84 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', | |
| 85 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', | |
| 86 ], | |
| 87 'message': 'Computing global objects in modules', | |
| 88 }] | |
| 89 }, | |
| 90 ################################################################################ | |
| 91 { | |
| 92 'target_name': 'core_global_constructors_idls', | 53 'target_name': 'core_global_constructors_idls', |
| 93 'type': 'none', | 54 'type': 'none', |
| 94 'dependencies': [ | 55 'dependencies': [ |
| 95 # FIXME: should be core_global_objects http://crbug.com/358074 | 56 'core_global_objects', |
| 96 'modules_global_objects', | |
| 97 ], | 57 ], |
| 98 'actions': [{ | 58 'actions': [{ |
| 99 'action_name': 'generate_core_global_constructors_idls', | 59 'action_name': 'generate_core_global_constructors_idls', |
| 100 'inputs': [ | 60 'inputs': [ |
| 101 '<(bindings_scripts_dir)/generate_global_constructors.py', | 61 '<(bindings_scripts_dir)/generate_global_constructors.py', |
| 102 '<(bindings_scripts_dir)/utilities.py', | 62 '<(bindings_scripts_dir)/utilities.py', |
| 103 # Only includes main IDL files (exclude dependencies and testing, | 63 # Only includes main IDL files (exclude dependencies and testing, |
| 104 # which should not appear on global objects). | 64 # which should not appear on global objects). |
| 105 '<(core_idl_files_list)', | 65 '<(core_idl_files_list)', |
| 106 '<@(core_idl_files)', | 66 '<@(core_idl_files)', |
| 107 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', | 67 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', |
| 108 ], | 68 ], |
| 109 'outputs': [ | 69 'outputs': [ |
| 110 '<@(core_global_constructors_generated_idl_files)', | 70 '<@(core_global_constructors_generated_idl_files)', |
| 111 '<@(core_global_constructors_generated_header_files)', | 71 '<@(core_global_constructors_generated_header_files)', |
| 112 ], | 72 ], |
| 113 'action': [ | 73 'action': [ |
| 114 'python', | 74 'python', |
| 115 '<(bindings_scripts_dir)/generate_global_constructors.py', | 75 '<(bindings_scripts_dir)/generate_global_constructors.py', |
| 116 '--idl-files-list', | 76 '--idl-files-list', |
| 117 '<(core_idl_files_list)', | 77 '<(core_idl_files_list)', |
| 118 '--global-objects-file', | 78 '--global-objects-file', |
| 119 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle', | 79 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle', |
| 120 '--write-file-only-if-changed', | 80 '--write-file-only-if-changed', |
| 121 '<(write_file_only_if_changed)', | 81 '<(write_file_only_if_changed)', |
| 122 '--', | 82 '--', |
| 123 'Window', | 83 'Window', |
| 124 '<(blink_core_output_dir)/WindowCoreConstructors.idl', | 84 '<(blink_core_output_dir)/WindowCoreConstructors.idl', |
| 125 'SharedWorkerGlobalScope', | 85 'SharedWorkerGlobalScope', |
| 126 '<(blink_core_output_dir)/SharedWorkerGlobalScopeCoreConstructors.idl', | 86 '<(blink_core_output_dir)/SharedWorkerGlobalScopeCoreConstructors.idl', |
| 127 'DedicatedWorkerGlobalScope', | 87 'DedicatedWorkerGlobalScope', |
| 128 '<(blink_core_output_dir)/DedicatedWorkerGlobalScopeCoreConstructors.idl
', | 88 '<(blink_core_output_dir)/DedicatedWorkerGlobalScopeCoreConstructors.idl
', |
| 129 'ServiceWorkerGlobalScope', | |
| 130 '<(blink_core_output_dir)/ServiceWorkerGlobalScopeCoreConstructors.idl', | |
| 131 ], | 89 ], |
| 132 'message': | 90 'message': |
| 133 'Generating IDL files for constructors on global objects from core', | 91 'Generating IDL files for constructors on global objects from core', |
| 134 }] | 92 }] |
| 135 }, | 93 }, |
| 136 ################################################################################ | 94 ################################################################################ |
| 137 { | 95 { |
| 138 'target_name': 'interfaces_info_individual_core', | 96 'target_name': 'interfaces_info_individual_core', |
| 139 'type': 'none', | 97 'type': 'none', |
| 140 'dependencies': [ | 98 'dependencies': [ |
| (...skipping 26 matching lines...) Expand all Loading... |
| 167 '--', | 125 '--', |
| 168 # Generated files must be passed at command line | 126 # Generated files must be passed at command line |
| 169 '<@(core_generated_idl_files)', | 127 '<@(core_generated_idl_files)', |
| 170 ], | 128 ], |
| 171 'message': 'Computing global information about individual IDL files', | 129 'message': 'Computing global information about individual IDL files', |
| 172 }] | 130 }] |
| 173 }, | 131 }, |
| 174 ################################################################################ | 132 ################################################################################ |
| 175 ], # targets | 133 ], # targets |
| 176 } | 134 } |
| OLD | NEW |