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

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: Cleanup 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
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/modules.gypi',
13 '../../bindings/scripts/scripts.gypi', 16 '../../bindings/scripts/scripts.gypi',
14 '../../core/core.gypi', 17 '../../core/core.gypi',
15 'core.gypi', 18 'core.gypi',
16 'generated.gypi', 19 'generated.gypi',
17 'idl.gypi', 20 'idl.gypi',
18 ], 21 ],
19 22
20 'targets': [ 23 'targets': [
21 ################################################################################ 24 ################################################################################
22 { 25 {
26 'target_name': 'core_global_objects',
27 'type': 'none',
28 'actions': [{
29 'action_name': 'core_modules_global_objects',
30 'inputs': [
31 '<(bindings_scripts_dir)/compute_global_objects.py',
32 '<(bindings_scripts_dir)/utilities.py',
33 # Only look in main IDL files (exclude dependencies and testing,
34 # which should not define global objects).
35 '<(core_idl_files_list)',
36 '<@(core_idl_files)',
37 ],
38 'outputs': [
39 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle',
40 ],
41 'action': [
42 'python',
43 '<(bindings_scripts_dir)/compute_global_objects.py',
44 '--idl-files-list',
45 '<(core_idl_files_list)',
46 '--write-file-only-if-changed',
47 '<(write_file_only_if_changed)',
48 '--',
49 '<(bindings_core_output_dir)/GlobalObjectsCore.pickle',
50 ],
51 'message': 'Computing global objects in core',
52 }]
53 },
54 ################################################################################
55 {
23 'target_name': 'core_global_constructors_idls', 56 'target_name': 'core_global_constructors_idls',
24 'type': 'none', 57 'type': 'none',
25 'dependencies': [ 58 'dependencies': [
26 # FIXME: should be core_global_objects http://crbug.com/358074 59 # FIXME: should be core_global_objects http://crbug.com/358074
27 '../generated.gyp:global_objects', 60 '../modules/generated.gyp:modules_global_objects',
28 ], 61 ],
29 'actions': [{ 62 'actions': [{
30 'action_name': 'generate_core_global_constructors_idls', 63 'action_name': 'generate_core_global_constructors_idls',
31 'inputs': [ 64 'inputs': [
32 '<(bindings_scripts_dir)/generate_global_constructors.py', 65 '<(bindings_scripts_dir)/generate_global_constructors.py',
33 '<(bindings_scripts_dir)/utilities.py', 66 '<(bindings_scripts_dir)/utilities.py',
34 # Only includes main IDL files (exclude dependencies and testing, 67 # Only includes main IDL files (exclude dependencies and testing,
35 # which should not appear on global objects). 68 # which should not appear on global objects).
36 '<(core_idl_files_list)', 69 '<(core_idl_files_list)',
37 '<@(core_idl_files)', 70 '<@(core_idl_files)',
38 '<(bindings_output_dir)/GlobalObjects.pickle', 71 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle',
39 ], 72 ],
40 'outputs': [ 73 'outputs': [
41 '<@(core_global_constructors_generated_idl_files)', 74 '<@(core_global_constructors_generated_idl_files)',
42 '<@(core_global_constructors_generated_header_files)', 75 '<@(core_global_constructors_generated_header_files)',
43 ], 76 ],
44 'action': [ 77 'action': [
45 'python', 78 'python',
46 '<(bindings_scripts_dir)/generate_global_constructors.py', 79 '<(bindings_scripts_dir)/generate_global_constructors.py',
47 '--idl-files-list', 80 '--idl-files-list',
48 '<(core_idl_files_list)', 81 '<(core_idl_files_list)',
49 '--global-objects-file', 82 '--global-objects-file',
50 '<(bindings_output_dir)/GlobalObjects.pickle', 83 '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle',
51 '--write-file-only-if-changed', 84 '--write-file-only-if-changed',
52 '<(write_file_only_if_changed)', 85 '<(write_file_only_if_changed)',
53 '--', 86 '--',
54 'Window', 87 'Window',
55 '<(blink_core_output_dir)/WindowCoreConstructors.idl', 88 '<(blink_core_output_dir)/WindowCoreConstructors.idl',
56 'SharedWorkerGlobalScope', 89 'SharedWorkerGlobalScope',
57 '<(blink_core_output_dir)/SharedWorkerGlobalScopeCoreConstructors.idl', 90 '<(blink_core_output_dir)/SharedWorkerGlobalScopeCoreConstructors.idl',
58 'DedicatedWorkerGlobalScope', 91 'DedicatedWorkerGlobalScope',
59 '<(blink_core_output_dir)/DedicatedWorkerGlobalScopeCoreConstructors.idl ', 92 '<(blink_core_output_dir)/DedicatedWorkerGlobalScopeCoreConstructors.idl ',
60 'ServiceWorkerGlobalScope', 93 'ServiceWorkerGlobalScope',
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 '--', 131 '--',
99 # Generated files must be passed at command line 132 # Generated files must be passed at command line
100 '<@(core_generated_idl_files)', 133 '<@(core_generated_idl_files)',
101 ], 134 ],
102 'message': 'Computing global information about individual IDL files', 135 'message': 'Computing global information about individual IDL files',
103 }] 136 }]
104 }, 137 },
105 ################################################################################ 138 ################################################################################
106 ], # targets 139 ], # targets
107 } 140 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698