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

Side by Side Diff: Source/bindings/derived_sources.gyp

Issue 15979013: Refactor partial interface resolving and merging into InterfaceMerger.pm (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Handle empties Created 7 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 | « no previous file | Source/bindings/scripts/InterfaceMerger.pm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 ], 87 ],
88 }, 88 },
89 89
90 'target_defaults': { 90 'target_defaults': {
91 'variables': { 91 'variables': {
92 'optimize': 'max', 92 'optimize': 'max',
93 }, 93 },
94 }, 94 },
95 95
96 'targets': [{ 96 'targets': [{
97 'target_name': 'supplemental_dependencies', 97 'target_name': 'idl_dependencies',
98 'type': 'none', 98 'type': 'none',
99 'actions': [{ 99 'actions': [{
100 'action_name': 'generatePartialInterfacesDependency', 100 'action_name': 'generatePartialInterfacesDependency',
101 'variables': { 101 'variables': {
102 # Write sources into a file, so that the action command line won't 102 # Write sources into a file, so that the action command line won't
103 # exceed OS limits. 103 # exceed OS limits.
104 'idl_files_list': '<|(idl_files_list.tmp <@(idl_files))', 104 'idl_files_list': '<|(idl_files_list.tmp <@(idl_files))',
105 }, 105 },
106 'inputs': [ 106 'inputs': [
107 'scripts/preprocess_idls.py', 107 'scripts/preprocess_idls.py',
108 '<(idl_files_list)', 108 '<(idl_files_list)',
109 '<!@(cat <(idl_files_list))', 109 '<!@(cat <(idl_files_list))',
110 ], 110 ],
111 'outputs': [ 111 'outputs': [
112 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', 112 '<(SHARED_INTERMEDIATE_DIR)/idl_dependencies.tmp',
113 '<(SHARED_INTERMEDIATE_DIR)/DOMWindowConstructors.idl', 113 '<(SHARED_INTERMEDIATE_DIR)/DOMWindowConstructors.idl',
114 ], 114 ],
115 'msvs_cygwin_shell': 0, 115 'msvs_cygwin_shell': 0,
116 'action': [ 116 'action': [
117 'python', 117 'python',
118 'scripts/preprocess_idls.py', 118 'scripts/preprocess_idls.py',
119 '--idl-files-list', 119 '--idl-files-list',
120 '<(idl_files_list)', 120 '<(idl_files_list)',
121 '--supplemental-dependency-file', 121 '--supplemental-dependency-file',
122 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', 122 '<(SHARED_INTERMEDIATE_DIR)/idl_dependencies.tmp',
123 '--window-constructors-file', 123 '--window-constructors-file',
124 '<(SHARED_INTERMEDIATE_DIR)/DOMWindowConstructors.idl', 124 '<(SHARED_INTERMEDIATE_DIR)/DOMWindowConstructors.idl',
125 '<@(write_file_only_if_changed)', 125 '<@(write_file_only_if_changed)',
126 ], 126 ],
127 'message': 'Resolving partial interfaces dependencies in all IDL files', 127 'message': 'Resolving partial interfaces dependencies in all IDL files',
128 }] 128 }]
129 }, 129 },
130 { 130 {
131 'target_name': 'bindings_derived_sources', 131 'target_name': 'bindings_derived_sources',
132 'type': 'none', 132 'type': 'none',
133 'hard_dependency': 1, 133 'hard_dependency': 1,
134 'dependencies': [ 134 'dependencies': [
135 'supplemental_dependencies', 135 'idl_dependencies',
136 '../core/core.gyp/core_derived_sources.gyp:generate_test_support_idls', 136 '../core/core.gyp/core_derived_sources.gyp:generate_test_support_idls',
137 ], 137 ],
138 'sources': [ 138 'sources': [
139 '<@(idl_files)', 139 '<@(idl_files)',
140 '<@(webcore_test_support_idl_files)', 140 '<@(webcore_test_support_idl_files)',
141 ], 141 ],
142 'actions': [{ 142 'actions': [{
143 'action_name': 'derived_sources_all_in_one', 143 'action_name': 'derived_sources_all_in_one',
144 'inputs': [ 144 'inputs': [
145 '../core/core.gyp/scripts/action_derivedsourcesallinone.py', 145 '../core/core.gyp/scripts/action_derivedsourcesallinone.py',
146 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', 146 '<(SHARED_INTERMEDIATE_DIR)/idl_dependencies.tmp',
147 ], 147 ],
148 'outputs': [ 148 'outputs': [
149 '<@(derived_sources_aggregate_files)', 149 '<@(derived_sources_aggregate_files)',
150 ], 150 ],
151 'action': [ 151 'action': [
152 'python', 152 'python',
153 '../core/core.gyp/scripts/action_derivedsourcesallinone.py', 153 '../core/core.gyp/scripts/action_derivedsourcesallinone.py',
154 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', 154 '<(SHARED_INTERMEDIATE_DIR)/idl_dependencies.tmp',
155 '--', 155 '--',
156 '<@(derived_sources_aggregate_files)', 156 '<@(derived_sources_aggregate_files)',
157 ], 157 ],
158 }], 158 }],
159 'rules': [{ 159 'rules': [{
160 'rule_name': 'binding', 160 'rule_name': 'binding',
161 'extension': 'idl', 161 'extension': 'idl',
162 'msvs_external_rule': 1, 162 'msvs_external_rule': 1,
163 'inputs': [ 163 'inputs': [
164 'scripts/generate-bindings.pl', 164 'scripts/generate-bindings.pl',
165 'scripts/CodeGeneratorV8.pm', 165 'scripts/CodeGeneratorV8.pm',
166 'scripts/IDLParser.pm', 166 'scripts/IDLParser.pm',
167 'scripts/InterfaceMerger.pm',
167 'scripts/IDLAttributes.txt', 168 'scripts/IDLAttributes.txt',
168 '../core/scripts/preprocessor.pm', 169 '../core/scripts/preprocessor.pm',
169 '<!@pymod_do_main(supplemental_idl_files <@(idl_files))', 170 '<!@pymod_do_main(supplemental_idl_files <@(idl_files))',
170 '<(SHARED_INTERMEDIATE_DIR)/DOMWindowConstructors.idl', 171 '<(SHARED_INTERMEDIATE_DIR)/DOMWindowConstructors.idl',
171 ], 172 ],
172 'outputs': [ 173 'outputs': [
173 # FIXME: The .cpp file should be in webkit/bindings once 174 # FIXME: The .cpp file should be in webkit/bindings once
174 # we coax GYP into supporting it (see 'action' below). 175 # we coax GYP into supporting it (see 'action' below).
175 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8<(RULE_INPUT_ROOT).cpp' , 176 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8<(RULE_INPUT_ROOT).cpp' ,
176 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8<(RULE_INPUT_ROOT).h', 177 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8<(RULE_INPUT_ROOT).h',
(...skipping 21 matching lines...) Expand all
198 'scripts/generate-bindings.pl', 199 'scripts/generate-bindings.pl',
199 '--outputHeadersDir', 200 '--outputHeadersDir',
200 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings', 201 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings',
201 '--outputDir', 202 '--outputDir',
202 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings', 203 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings',
203 '--idlAttributesFile', 204 '--idlAttributesFile',
204 'scripts/IDLAttributes.txt', 205 'scripts/IDLAttributes.txt',
205 '--defines', 206 '--defines',
206 '<(feature_defines)', 207 '<(feature_defines)',
207 '<@(generator_include_dirs)', 208 '<@(generator_include_dirs)',
208 '--supplementalDependencyFile', 209 '--dependenciesFile',
209 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', 210 '<(SHARED_INTERMEDIATE_DIR)/idl_dependencies.tmp',
210 '--additionalIdlFiles', 211 '--additionalIdlFiles',
211 '<(webcore_test_support_idl_files)', 212 '<(webcore_test_support_idl_files)',
212 '<(RULE_INPUT_PATH)', 213 '<(RULE_INPUT_PATH)',
213 '<@(preprocessor)', 214 '<@(preprocessor)',
214 '<@(write_file_only_if_changed)', 215 '<@(write_file_only_if_changed)',
215 ], 216 ],
216 'message': 'Generating binding from <(RULE_INPUT_PATH)', 217 'message': 'Generating binding from <(RULE_INPUT_PATH)',
217 }], 218 }],
218 }, 219 },
219 ], 220 ],
220 } 221 }
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/scripts/InterfaceMerger.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698