Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: Source/bindings/core/generated.gyp

Issue 310563004: IDL build: Split global constructors into core and modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better includes and FIXMEs in core.gyp Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/generated.gyp
diff --git a/Source/bindings/core/generated.gyp b/Source/bindings/core/generated.gyp
index 581a8a91d3ef9d33fecafbe14920d1b8acecff88..bfaeb845fa1b8c27bac00107b9c595110ed8c59e 100644
--- a/Source/bindings/core/generated.gyp
+++ b/Source/bindings/core/generated.gyp
@@ -8,21 +8,69 @@
{
'includes': [
- '../bindings.gypi',
- '../scripts/scripts.gypi',
+ # ../.. == Source
+ '../../bindings/bindings.gypi',
haraken 2014/06/03 15:31:10 FIXME: remove this?
Nils Barth (inactive) 2014/06/04 03:36:31 ditto.
+ '../../bindings/scripts/scripts.gypi',
+ '../../core/core.gypi',
'core.gypi',
+ 'generated.gypi',
'idl.gypi',
haraken 2014/06/03 15:31:10 To avoid confusion, it might be better to always w
Nils Barth (inactive) 2014/06/04 03:36:31 I'd prefer to *not* qualify paths if it's the same
],
'targets': [
################################################################################
{
+ 'target_name': 'core_global_constructors_idls',
+ 'type': 'none',
+ 'dependencies': [
+ # FIXME: should be core_global_objects http://crbug.com/358074
+ '../generated.gyp:global_objects',
+ ],
+ 'actions': [{
+ 'action_name': 'generate_core_global_constructors_idls',
+ 'inputs': [
+ '<(bindings_scripts_dir)/generate_global_constructors.py',
+ '<(bindings_scripts_dir)/utilities.py',
+ # Only includes main IDL files (exclude dependencies and testing,
+ # which should not appear on global objects).
+ '<(core_idl_files_list)',
+ '<@(core_idl_files)',
+ '<(bindings_output_dir)/GlobalObjects.pickle',
+ ],
+ 'outputs': [
+ '<@(core_global_constructors_generated_idl_files)',
+ '<@(core_global_constructors_generated_header_files)',
+ ],
+ 'action': [
+ 'python',
+ '<(bindings_scripts_dir)/generate_global_constructors.py',
+ '--idl-files-list',
+ '<(core_idl_files_list)',
+ '--global-objects-file',
+ '<(bindings_output_dir)/GlobalObjects.pickle',
+ '--write-file-only-if-changed',
+ '<(write_file_only_if_changed)',
+ '--',
+ 'Window',
+ '<(blink_core_output_dir)/WindowCoreConstructors.idl',
+ 'SharedWorkerGlobalScope',
+ '<(blink_core_output_dir)/SharedWorkerGlobalScopeCoreConstructors.idl',
+ 'DedicatedWorkerGlobalScope',
+ '<(blink_core_output_dir)/DedicatedWorkerGlobalScopeCoreConstructors.idl',
+ 'ServiceWorkerGlobalScope',
+ '<(blink_core_output_dir)/ServiceWorkerGlobalScopeCoreConstructors.idl',
+ ],
+ 'message':
+ 'Generating IDL files for constructors on global objects from core',
+ }]
+ },
+################################################################################
+ {
'target_name': 'interfaces_info_individual_core',
'type': 'none',
'dependencies': [
- # FIXME: should be core_generated_idls
- # http://crbug.com/358074
- '../generated.gyp:generated_idls',
+ '../../core/core_generated.gyp:generated_testing_idls',
+ 'core_global_constructors_idls',
],
'actions': [{
'action_name': 'compute_interfaces_info_individual_core',

Powered by Google App Engine
This is Rietveld 408576698