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

Side by Side Diff: Source/bindings/core/generated.gyp

Issue 315003004: IDL build: Split global object computation into core and modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move modules_global_objects to core/generated to eliminate circular dependency of GYP files Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/core/core.gypi ('k') | Source/bindings/generated.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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',
13 '../../bindings/scripts/scripts.gypi', 17 '../../bindings/scripts/scripts.gypi',
14 '../../core/core.gypi', 18 '../../core/core.gypi',
15 'core.gypi', 19 'core.gypi',
16 'generated.gypi', 20 'generated.gypi',
17 'idl.gypi', 21 'idl.gypi',
18 ], 22 ],
19 23
20 'targets': [ 24 'targets': [
21 ################################################################################ 25 ################################################################################
22 { 26 {
27 'target_name': 'core_global_objects',
28 'type': 'none',
29 'actions': [{
30 'action_name': 'core_modules_global_objects',
31 'inputs': [
32 '<(bindings_scripts_dir)/compute_global_objects.py',
33 '<(bindings_scripts_dir)/utilities.py',
34 # Only look in main IDL files (exclude dependencies and testing,
35 # which should not define global objects).
36 '<(core_idl_files_list)',
37 '<@(core_idl_files)',
38 ],
39 'outputs': [
40 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle',
41 ],
42 'action': [
43 'python',
44 '<(bindings_scripts_dir)/compute_global_objects.py',
45 '--idl-files-list',
46 '<(core_idl_files_list)',
47 '--write-file-only-if-changed',
48 '<(write_file_only_if_changed)',
49 '--',
50 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle',
51 ],
52 'message': 'Computing global objects in core',
53 }]
54 },
55 ################################################################################
56 {
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 {
23 'target_name': 'core_global_constructors_idls', 92 'target_name': 'core_global_constructors_idls',
24 'type': 'none', 93 'type': 'none',
25 'dependencies': [ 94 'dependencies': [
26 # FIXME: should be core_global_objects http://crbug.com/358074 95 # FIXME: should be core_global_objects http://crbug.com/358074
27 '../generated.gyp:global_objects', 96 'modules_global_objects',
28 ], 97 ],
29 'actions': [{ 98 'actions': [{
30 'action_name': 'generate_core_global_constructors_idls', 99 'action_name': 'generate_core_global_constructors_idls',
31 'inputs': [ 100 'inputs': [
32 '<(bindings_scripts_dir)/generate_global_constructors.py', 101 '<(bindings_scripts_dir)/generate_global_constructors.py',
33 '<(bindings_scripts_dir)/utilities.py', 102 '<(bindings_scripts_dir)/utilities.py',
34 # Only includes main IDL files (exclude dependencies and testing, 103 # Only includes main IDL files (exclude dependencies and testing,
35 # which should not appear on global objects). 104 # which should not appear on global objects).
36 '<(core_idl_files_list)', 105 '<(core_idl_files_list)',
37 '<@(core_idl_files)', 106 '<@(core_idl_files)',
38 '<(bindings_output_dir)/GlobalObjects.pickle', 107 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle',
39 ], 108 ],
40 'outputs': [ 109 'outputs': [
41 '<@(core_global_constructors_generated_idl_files)', 110 '<@(core_global_constructors_generated_idl_files)',
42 '<@(core_global_constructors_generated_header_files)', 111 '<@(core_global_constructors_generated_header_files)',
43 ], 112 ],
44 'action': [ 113 'action': [
45 'python', 114 'python',
46 '<(bindings_scripts_dir)/generate_global_constructors.py', 115 '<(bindings_scripts_dir)/generate_global_constructors.py',
47 '--idl-files-list', 116 '--idl-files-list',
48 '<(core_idl_files_list)', 117 '<(core_idl_files_list)',
49 '--global-objects-file', 118 '--global-objects-file',
50 '<(bindings_output_dir)/GlobalObjects.pickle', 119 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle',
51 '--write-file-only-if-changed', 120 '--write-file-only-if-changed',
52 '<(write_file_only_if_changed)', 121 '<(write_file_only_if_changed)',
53 '--', 122 '--',
54 'Window', 123 'Window',
55 '<(blink_core_output_dir)/WindowCoreConstructors.idl', 124 '<(blink_core_output_dir)/WindowCoreConstructors.idl',
56 'SharedWorkerGlobalScope', 125 'SharedWorkerGlobalScope',
57 '<(blink_core_output_dir)/SharedWorkerGlobalScopeCoreConstructors.idl', 126 '<(blink_core_output_dir)/SharedWorkerGlobalScopeCoreConstructors.idl',
58 'DedicatedWorkerGlobalScope', 127 'DedicatedWorkerGlobalScope',
59 '<(blink_core_output_dir)/DedicatedWorkerGlobalScopeCoreConstructors.idl ', 128 '<(blink_core_output_dir)/DedicatedWorkerGlobalScopeCoreConstructors.idl ',
60 'ServiceWorkerGlobalScope', 129 'ServiceWorkerGlobalScope',
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 '--', 167 '--',
99 # Generated files must be passed at command line 168 # Generated files must be passed at command line
100 '<@(core_generated_idl_files)', 169 '<@(core_generated_idl_files)',
101 ], 170 ],
102 'message': 'Computing global information about individual IDL files', 171 'message': 'Computing global information about individual IDL files',
103 }] 172 }]
104 }, 173 },
105 ################################################################################ 174 ################################################################################
106 ], # targets 175 ], # targets
107 } 176 }
OLDNEW
« no previous file with comments | « Source/bindings/core/core.gypi ('k') | Source/bindings/generated.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698