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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
126 'type': 'none', | 126 'type': 'none', |
127 'hard_dependency': 1, | 127 'hard_dependency': 1, |
128 'dependencies': [ | 128 'dependencies': [ |
129 'supplemental_dependencies', | 129 'supplemental_dependencies', |
130 '../core/core.gyp/core_derived_sources.gyp:generate_settings', | 130 '../core/core.gyp/core_derived_sources.gyp:generate_settings', |
131 ], | 131 ], |
132 'sources': [ | 132 'sources': [ |
133 '<@(idl_files)', | 133 '<@(idl_files)', |
134 '<@(webcore_test_support_idl_files)', | 134 '<@(webcore_test_support_idl_files)', |
135 ], | 135 ], |
136 'sources/': [['exclude', 'DOMWindow\\.idl$']], | |
136 'actions': [{ | 137 'actions': [{ |
137 'action_name': 'derived_sources_all_in_one', | 138 'action_name': 'derived_sources_all_in_one', |
138 'inputs': [ | 139 'inputs': [ |
139 '../core/core.gyp/scripts/action_derivedsourcesallinone.py', | 140 '../core/core.gyp/scripts/action_derivedsourcesallinone.py', |
140 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', | 141 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', |
141 ], | 142 ], |
142 'outputs': [ | 143 'outputs': [ |
143 '<@(derived_sources_aggregate_files)', | 144 '<@(derived_sources_aggregate_files)', |
144 ], | 145 ], |
145 'action': [ | 146 'action': [ |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
217 '--supplementalDependencyFile', | 218 '--supplementalDependencyFile', |
218 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', | 219 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', |
219 '--additionalIdlFiles', | 220 '--additionalIdlFiles', |
220 '<(webcore_test_support_idl_files)', | 221 '<(webcore_test_support_idl_files)', |
221 '<(RULE_INPUT_PATH)', | 222 '<(RULE_INPUT_PATH)', |
222 '<@(preprocessor)', | 223 '<@(preprocessor)', |
223 ], | 224 ], |
224 'message': 'Generating binding from <(RULE_INPUT_PATH)', | 225 'message': 'Generating binding from <(RULE_INPUT_PATH)', |
225 }], | 226 }], |
226 }, | 227 }, |
228 # Make sure DOMWindow.idl is processed if any other IDL file has changed | |
229 # as interfaces without NoInterfaceObject extended attribute will cause | |
230 # a property to be added to the DOMWindow. | |
231 { | |
232 'target_name': 'bindings_derived_sources_domwindow', | |
233 'type': 'none', | |
234 'hard_dependency': 1, | |
235 'dependencies': [ | |
236 'supplemental_dependencies', | |
237 '../core/core.gyp/core_derived_sources.gyp:generate_settings', | |
238 ], | |
239 'sources': [ | |
240 '../core/page/DOMWindow.idl', | |
241 ], | |
242 'actions': [], | |
243 'rules': [{ | |
244 'rule_name': 'binding_domwindow', | |
245 'extension': 'idl', | |
246 'msvs_external_rule': 1, | |
247 'inputs': [ | |
248 'scripts/generate-bindings.pl', | |
249 'scripts/CodeGenerator.pm', | |
250 'scripts/CodeGeneratorV8.pm', | |
251 'scripts/IDLParser.pm', | |
252 'scripts/IDLAttributes.txt', | |
253 '../core/scripts/preprocessor.pm', | |
254 '<@(idl_files)', | |
255 ], | |
256 'outputs': [ | |
257 # FIXME: The .cpp file should be in webkit/bindings once | |
258 # we coax GYP into supporting it (see 'action' below). | |
259 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8<(RULE_INPUT_ROOT).cpp' , | |
260 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8<(RULE_INPUT_ROOT).h', | |
261 ], | |
262 'variables': { | |
263 'generator_include_dirs': [ | |
264 '--include', '../modules/filesystem', | |
265 '--include', '../modules/indexeddb', | |
266 '--include', '../modules/mediasource', | |
267 '--include', '../modules/mediastream', | |
268 '--include', '../modules/navigatorcontentutils', | |
269 '--include', '../modules/notifications', | |
270 '--include', '../modules/webaudio', | |
271 '--include', '../modules/webdatabase', | |
272 '--include', '../core/css', | |
273 '--include', '../core/dom', | |
274 '--include', '../core/fileapi', | |
275 '--include', '../core/html', | |
276 '--include', '../core/page', | |
277 '--include', '../core/plugins', | |
278 '--include', '../core/storage', | |
279 '--include', '../core/svg', | |
280 '--include', '../core/testing', | |
281 '--include', '../core/workers', | |
282 '--include', '../core/xml', | |
283 '--include', '<(SHARED_INTERMEDIATE_DIR)/webkit', | |
abarth-chromium
2013/04/23 16:56:39
This is really super ugly. You've just copy-and-p
| |
284 ], | |
285 }, | |
286 'msvs_cygwin_shell': 0, | |
287 # FIXME: Note that we put the .cpp files in webcore/bindings | |
288 # but the .h files in webkit/bindings. This is to work around | |
289 # the unfortunate fact that GYP strips duplicate arguments | |
290 # from lists. When we have a better GYP way to suppress that | |
291 # behavior, change the output location. | |
292 'action': [ | |
293 '<(perl_exe)', | |
294 '-w', | |
295 '-Iscripts', | |
296 '-I../core/scripts', | |
297 'scripts/generate-bindings.pl', | |
298 '--outputHeadersDir', | |
299 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings', | |
300 '--outputDir', | |
301 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings', | |
302 '--idlAttributesFile', | |
303 'scripts/IDLAttributes.txt', | |
304 '--defines', | |
305 '<(feature_defines)', | |
306 '<@(generator_include_dirs)', | |
307 '--supplementalDependencyFile', | |
308 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', | |
309 '--additionalIdlFiles', | |
310 '<(webcore_test_support_idl_files)', | |
311 '<(RULE_INPUT_PATH)', | |
312 '<@(preprocessor)', | |
313 ], | |
314 'message': 'Generating binding from <(RULE_INPUT_PATH)', | |
315 }], | |
316 }, | |
227 ], | 317 ], |
228 } | 318 } |
OLD | NEW |