| OLD | NEW |
| 1 # | 1 # |
| 2 # Copyright (C) 2013 Google Inc. All rights reserved. | 2 # Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 # | 3 # |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 '<(main_interface_idl_files_list)', | 66 '<(main_interface_idl_files_list)', |
| 67 '--write-file-only-if-changed', | 67 '--write-file-only-if-changed', |
| 68 '<(write_file_only_if_changed)', | 68 '<(write_file_only_if_changed)', |
| 69 '--', | 69 '--', |
| 70 '<(bindings_output_dir)/GlobalObjects.pickle', | 70 '<(bindings_output_dir)/GlobalObjects.pickle', |
| 71 ], | 71 ], |
| 72 'message': 'Computing global objects', | 72 'message': 'Computing global objects', |
| 73 }] | 73 }] |
| 74 }, | 74 }, |
| 75 ################################################################################ | 75 ################################################################################ |
| 76 { | |
| 77 # FIXME: Global constructors are used by bindings_core (e.g., V8Window.cpp) | |
| 78 # but depend on modules, which violates layering http://crbug.com/358074 | |
| 79 # FIXME: Generate separate core_global_constructors_idls | |
| 80 # http://crbug.com/358074 | |
| 81 'target_name': 'global_constructors_idls', | |
| 82 'type': 'none', | |
| 83 'dependencies': [ | |
| 84 'global_objects', | |
| 85 ], | |
| 86 'actions': [{ | |
| 87 'action_name': 'generate_global_constructors_idls', | |
| 88 'inputs': [ | |
| 89 'scripts/generate_global_constructors.py', | |
| 90 'scripts/utilities.py', | |
| 91 # Only includes main IDL files (exclude dependencies and testing, | |
| 92 # which should not appear on global objects). | |
| 93 '<(main_interface_idl_files_list)', | |
| 94 '<@(main_interface_idl_files)', | |
| 95 '<(bindings_output_dir)/GlobalObjects.pickle', | |
| 96 ], | |
| 97 'outputs': [ | |
| 98 '<@(generated_global_constructors_idl_files)', | |
| 99 '<@(generated_global_constructors_header_files)', | |
| 100 ], | |
| 101 'action': [ | |
| 102 'python', | |
| 103 'scripts/generate_global_constructors.py', | |
| 104 '--idl-files-list', | |
| 105 '<(main_interface_idl_files_list)', | |
| 106 '--global-objects-file', | |
| 107 '<(bindings_output_dir)/GlobalObjects.pickle', | |
| 108 '--write-file-only-if-changed', | |
| 109 '<(write_file_only_if_changed)', | |
| 110 '--', | |
| 111 'Window', | |
| 112 '<(blink_output_dir)/WindowConstructors.idl', | |
| 113 'SharedWorkerGlobalScope', | |
| 114 '<(blink_output_dir)/SharedWorkerGlobalScopeConstructors.idl', | |
| 115 'DedicatedWorkerGlobalScope', | |
| 116 '<(blink_output_dir)/DedicatedWorkerGlobalScopeConstructors.idl', | |
| 117 'ServiceWorkerGlobalScope', | |
| 118 '<(blink_output_dir)/ServiceWorkerGlobalScopeConstructors.idl', | |
| 119 ], | |
| 120 'message': 'Generating IDL files for constructors on global objects', | |
| 121 }] | |
| 122 }, | |
| 123 ################################################################################ | |
| 124 { | |
| 125 'target_name': 'generated_idls', | |
| 126 'type': 'none', | |
| 127 'dependencies': [ | |
| 128 '../core/core_generated.gyp:generated_testing_idls', | |
| 129 'global_constructors_idls', | |
| 130 ], | |
| 131 } | |
| 132 ################################################################################ | |
| 133 ], # targets | 76 ], # targets |
| 134 } | 77 } |
| OLD | NEW |