IndexedDB: don't expose IDBDatabaseError to script
[WebKit-https.git] / Source / WebCore / DerivedSources.pri
1 # -------------------------------------------------------------------
2 # Derived sources for WebCore
3 #
4 # See 'Tools/qmake/README' for an overview of the build system
5 # -------------------------------------------------------------------
6
7 # This file is both a top level target, and included from Target.pri,
8 # so that the resulting generated sources can be added to SOURCES.
9 # We only set the template if we're a top level target, so that we
10 # don't override what Target.pri has already set.
11 sanitizedFile = $$toSanitizedPath($$_FILE_)
12 equals(sanitizedFile, $$toSanitizedPath($$_PRO_FILE_)):TEMPLATE = derived
13
14 load(features)
15
16 mac {
17     # FIXME: This runs the perl script every time. Is there a way we can run it only when deps change?
18     fwheader_generator.commands = perl $${ROOT_WEBKIT_DIR}/Source/WebKit2/Scripts/generate-forwarding-headers.pl $${ROOT_WEBKIT_DIR}/Source/WebCore $${ROOT_BUILD_DIR}/Source/include mac
19     fwheader_generator.depends = $${ROOT_WEBKIT_DIR}/Source/WebKit2/Scripts/generate-forwarding-headers.pl
20     GENERATORS += fwheader_generator
21 }
22
23 MATHML_NAMES = $$PWD/mathml/mathtags.in
24
25 SVG_NAMES = $$PWD/svg/svgtags.in
26
27 XLINK_NAMES = $$PWD/svg/xlinkattrs.in
28
29 CSSBISON = $$PWD/css/CSSGrammar.y
30
31 contains(DEFINES, ENABLE_XSLT=1) {
32     XMLVIEWER_CSS = $$PWD/xml/XMLViewer.css
33     XMLVIEWER_JS = $$PWD/xml/XMLViewer.js
34 }
35
36 FONT_NAMES = $$PWD/css/WebKitFontFamilyNames.in
37
38 HTML_NAMES = $$PWD/html/HTMLTagNames.in
39
40 XML_NAMES = $$PWD/xml/xmlattrs.in
41
42 XMLNS_NAMES = $$PWD/xml/xmlnsattrs.in
43
44 HTML_ENTITIES = $$PWD/html/parser/HTMLEntityNames.in
45
46 EVENTS_NAMES = $$PWD/dom/EventNames.in
47
48 EVENT_TARGET_FACTORY = $$PWD/dom/EventTargetFactory.in
49
50 DOM_EXCEPTIONS = $$PWD/dom/DOMExceptions.in
51
52 COLORDATA_GPERF = $$PWD/platform/ColorData.gperf
53
54 WALDOCSSPROPS = $$PWD/css/CSSPropertyNames.in
55
56 WALDOCSSVALUES = $$PWD/css/CSSValueKeywords.in
57
58 INSPECTOR_JSON = $$PWD/inspector/Inspector.json
59
60 INSPECTOR_BACKEND_STUB_QRC = $$PWD/inspector/front-end/InspectorBackendStub.qrc
61
62 INJECTED_SCRIPT_SOURCE = $$PWD/inspector/InjectedScriptSource.js
63
64 DEBUGGER_SCRIPT_SOURCE = $$PWD/bindings/v8/DebuggerScript.js
65
66 ARRAY_BUFFER_VIEW_CUSTOM_SCRIPT_SOURCE = $$PWD/bindings/v8/custom/V8ArrayBufferViewCustomScript.js
67
68 XPATHBISON = $$PWD/xml/XPathGrammar.y
69
70 contains(DEFINES, ENABLE_SVG=1) {
71     EXTRACSSPROPERTIES += $$PWD/css/SVGCSSPropertyNames.in
72     EXTRACSSVALUES += $$PWD/css/SVGCSSValueKeywords.in
73 }
74
75 STYLESHEETS_EMBED = \
76     $$PWD/css/html.css \
77     $$PWD/css/quirks.css \
78     $$PWD/css/mathml.css \
79     $$PWD/css/svg.css \
80     $$PWD/css/view-source.css \
81     $$PWD/css/fullscreen.css \
82     $$PWD/css/mediaControls.css \
83     $$PWD/css/mediaControlsQt.css \
84     $$PWD/css/mediaControlsQtFullscreen.css \
85     $$PWD/css/themeQtNoListboxes.css \
86     $$PWD/css/mobileThemeQt.css
87
88 IDL_BINDINGS += \
89     $$PWD/Modules/filesystem/DOMFileSystem.idl \
90     $$PWD/Modules/filesystem/DOMFileSystemSync.idl \
91     $$PWD/Modules/filesystem/DOMWindowFileSystem.idl \
92     $$PWD/Modules/filesystem/DirectoryEntry.idl \
93     $$PWD/Modules/filesystem/DirectoryEntrySync.idl \
94     $$PWD/Modules/filesystem/DirectoryReader.idl \
95     $$PWD/Modules/filesystem/DirectoryReaderSync.idl \
96     $$PWD/Modules/filesystem/EntriesCallback.idl \
97     $$PWD/Modules/filesystem/Entry.idl \
98     $$PWD/Modules/filesystem/EntryArray.idl \
99     $$PWD/Modules/filesystem/EntryArraySync.idl \
100     $$PWD/Modules/filesystem/EntryCallback.idl \
101     $$PWD/Modules/filesystem/EntrySync.idl \
102     $$PWD/Modules/filesystem/ErrorCallback.idl \
103     $$PWD/Modules/filesystem/FileCallback.idl \
104     $$PWD/Modules/filesystem/FileEntry.idl \
105     $$PWD/Modules/filesystem/FileEntrySync.idl \
106     $$PWD/Modules/filesystem/FileSystemCallback.idl \
107     $$PWD/Modules/filesystem/FileWriter.idl \
108     $$PWD/Modules/filesystem/FileWriterCallback.idl \
109     $$PWD/Modules/filesystem/Metadata.idl \
110     $$PWD/Modules/filesystem/MetadataCallback.idl \
111     $$PWD/Modules/filesystem/WorkerContextFileSystem.idl \
112     $$PWD/Modules/geolocation/Geolocation.idl \
113     $$PWD/Modules/geolocation/Geoposition.idl \
114     $$PWD/Modules/geolocation/NavigatorGeolocation.idl \
115     $$PWD/Modules/geolocation/PositionCallback.idl \
116     $$PWD/Modules/geolocation/PositionError.idl \
117     $$PWD/Modules/geolocation/PositionErrorCallback.idl \
118     $$PWD/Modules/indexeddb/DOMWindowIndexedDatabase.idl \
119     $$PWD/Modules/indexeddb/IDBAny.idl \
120     $$PWD/Modules/indexeddb/IDBCursor.idl \
121     $$PWD/Modules/indexeddb/IDBDatabaseException.idl \
122     $$PWD/Modules/indexeddb/IDBDatabase.idl \
123     $$PWD/Modules/indexeddb/IDBFactory.idl \
124     $$PWD/Modules/indexeddb/IDBIndex.idl \
125     $$PWD/Modules/indexeddb/IDBKey.idl \
126     $$PWD/Modules/indexeddb/IDBKeyRange.idl \
127     $$PWD/Modules/indexeddb/IDBObjectStore.idl \
128     $$PWD/Modules/indexeddb/IDBRequest.idl \
129     $$PWD/Modules/indexeddb/IDBTransaction.idl \
130     $$PWD/Modules/indexeddb/WorkerContextIndexedDatabase.idl \
131     $$PWD/Modules/webaudio/AudioBuffer.idl \
132     $$PWD/Modules/webaudio/AudioBufferSourceNode.idl \
133     $$PWD/Modules/webaudio/AudioChannelMerger.idl \
134     $$PWD/Modules/webaudio/AudioChannelSplitter.idl \
135     $$PWD/Modules/webaudio/AudioContext.idl \
136     $$PWD/Modules/webaudio/AudioDestinationNode.idl \
137     $$PWD/Modules/webaudio/AudioGain.idl \
138     $$PWD/Modules/webaudio/AudioGainNode.idl \
139     $$PWD/Modules/webaudio/AudioListener.idl \
140     $$PWD/Modules/webaudio/AudioNode.idl \
141     $$PWD/Modules/webaudio/AudioPannerNode.idl \
142     $$PWD/Modules/webaudio/AudioParam.idl \
143     $$PWD/Modules/webaudio/AudioProcessingEvent.idl \
144     $$PWD/Modules/webaudio/AudioSourceNode.idl \
145     $$PWD/Modules/webaudio/ConvolverNode.idl \
146     $$PWD/Modules/webaudio/DelayNode.idl \
147     $$PWD/Modules/webaudio/DOMWindowWebAudio.idl \
148     $$PWD/Modules/webaudio/JavaScriptAudioNode.idl \
149     $$PWD/Modules/webaudio/RealtimeAnalyserNode.idl \
150     $$PWD/Modules/webdatabase/DOMWindowWebDatabase.idl \
151     $$PWD/Modules/webdatabase/Database.idl \
152     $$PWD/Modules/webdatabase/DatabaseCallback.idl \
153     $$PWD/Modules/webdatabase/DatabaseSync.idl \
154     $$PWD/Modules/webdatabase/SQLError.idl \
155     $$PWD/Modules/webdatabase/SQLException.idl \
156     $$PWD/Modules/webdatabase/SQLResultSet.idl \
157     $$PWD/Modules/webdatabase/SQLResultSetRowList.idl \
158     $$PWD/Modules/webdatabase/SQLStatementCallback.idl \
159     $$PWD/Modules/webdatabase/SQLStatementErrorCallback.idl \
160     $$PWD/Modules/webdatabase/SQLTransaction.idl \
161     $$PWD/Modules/webdatabase/SQLTransactionCallback.idl \
162     $$PWD/Modules/webdatabase/SQLTransactionErrorCallback.idl \
163     $$PWD/Modules/webdatabase/SQLTransactionSync.idl \
164     $$PWD/Modules/webdatabase/SQLTransactionSyncCallback.idl \
165     $$PWD/Modules/webdatabase/WorkerContextWebDatabase.idl \
166     $$PWD/Modules/websockets/CloseEvent.idl \
167     $$PWD/Modules/websockets/DOMWindowWebSocket.idl \
168     $$PWD/Modules/websockets/WebSocket.idl \
169     $$PWD/Modules/websockets/WorkerContextWebSocket.idl \
170     $$PWD/css/Counter.idl \
171     $$PWD/css/CSSCharsetRule.idl \
172     $$PWD/css/CSSFontFaceRule.idl \
173     $$PWD/css/CSSImportRule.idl \
174     $$PWD/css/CSSMediaRule.idl \
175     $$PWD/css/CSSPageRule.idl \
176     $$PWD/css/CSSPrimitiveValue.idl \
177     $$PWD/css/CSSRule.idl \
178     $$PWD/css/CSSRuleList.idl \
179     $$PWD/css/CSSStyleDeclaration.idl \
180     $$PWD/css/CSSStyleRule.idl \
181     $$PWD/css/CSSStyleSheet.idl \
182     $$PWD/css/CSSValue.idl \
183     $$PWD/css/CSSValueList.idl \
184     $$PWD/css/MediaList.idl \
185     $$PWD/css/MediaQueryList.idl \
186     $$PWD/css/Rect.idl \
187     $$PWD/css/RGBColor.idl \
188     $$PWD/css/StyleMedia.idl \
189     $$PWD/css/StyleSheet.idl \
190     $$PWD/css/StyleSheetList.idl \
191     $$PWD/css/WebKitCSSFilterValue.idl \
192     $$PWD/css/WebKitCSSKeyframeRule.idl \
193     $$PWD/css/WebKitCSSKeyframesRule.idl \
194     $$PWD/css/WebKitCSSMatrix.idl \
195     $$PWD/css/WebKitCSSRegionRule.idl \
196     $$PWD/css/WebKitCSSTransformValue.idl \
197     $$PWD/dom/Attr.idl \
198     $$PWD/dom/BeforeLoadEvent.idl \
199     $$PWD/dom/CharacterData.idl \
200     $$PWD/dom/ClientRect.idl \
201     $$PWD/dom/ClientRectList.idl \
202     $$PWD/dom/Clipboard.idl \
203     $$PWD/dom/CDATASection.idl \
204     $$PWD/dom/Comment.idl \
205     $$PWD/dom/CompositionEvent.idl \
206     $$PWD/dom/CustomEvent.idl \
207     $$PWD/dom/DataTransferItem.idl \
208     $$PWD/dom/DataTransferItemList.idl \
209     $$PWD/dom/DeviceMotionEvent.idl \
210     $$PWD/dom/DeviceOrientationEvent.idl \
211     $$PWD/dom/DocumentFragment.idl \
212     $$PWD/dom/Document.idl \
213     $$PWD/dom/DocumentType.idl \
214     $$PWD/dom/DOMCoreException.idl \
215     $$PWD/dom/DOMImplementation.idl \
216     $$PWD/dom/DOMStringList.idl \
217     $$PWD/dom/DOMStringMap.idl \
218     $$PWD/dom/Element.idl \
219     $$PWD/dom/Entity.idl \
220     $$PWD/dom/EntityReference.idl \
221     $$PWD/dom/ErrorEvent.idl \
222     $$PWD/dom/Event.idl \
223     $$PWD/dom/EventException.idl \
224 #    $$PWD/dom/EventListener.idl \
225 #    $$PWD/dom/EventTarget.idl \
226     $$PWD/dom/HashChangeEvent.idl \
227     $$PWD/dom/KeyboardEvent.idl \
228     $$PWD/dom/MouseEvent.idl \
229     $$PWD/dom/MessageChannel.idl \
230     $$PWD/dom/MessageEvent.idl \
231     $$PWD/dom/MessagePort.idl \
232     $$PWD/dom/MutationEvent.idl \
233     $$PWD/dom/NamedNodeMap.idl \
234     $$PWD/dom/Node.idl \
235     $$PWD/dom/NodeFilter.idl \
236     $$PWD/dom/NodeIterator.idl \
237     $$PWD/dom/NodeList.idl \
238     $$PWD/dom/Notation.idl \
239     $$PWD/dom/OverflowEvent.idl \
240     $$PWD/dom/PageTransitionEvent.idl \
241     $$PWD/dom/PopStateEvent.idl \
242     $$PWD/dom/ProcessingInstruction.idl \
243     $$PWD/dom/ProgressEvent.idl \
244     $$PWD/dom/RangeException.idl \
245     $$PWD/dom/Range.idl \
246     $$PWD/dom/RequestAnimationFrameCallback.idl \
247     $$PWD/dom/ShadowRoot.idl \
248     $$PWD/dom/StringCallback.idl \
249     $$PWD/dom/Text.idl \
250     $$PWD/dom/TextEvent.idl \
251     $$PWD/dom/Touch.idl \
252     $$PWD/dom/TouchEvent.idl \
253     $$PWD/dom/TouchList.idl \
254     $$PWD/dom/TreeWalker.idl \
255     $$PWD/dom/UIEvent.idl \
256     $$PWD/dom/WebKitAnimationEvent.idl \
257     $$PWD/dom/WebKitNamedFlow.idl \
258     $$PWD/dom/WebKitTransitionEvent.idl \
259     $$PWD/dom/WheelEvent.idl \
260     $$PWD/fileapi/Blob.idl \
261     $$PWD/fileapi/File.idl \
262     $$PWD/fileapi/FileError.idl \
263     $$PWD/fileapi/FileException.idl \
264     $$PWD/fileapi/FileList.idl \
265     $$PWD/fileapi/FileReader.idl \
266     $$PWD/fileapi/FileReaderSync.idl \
267     $$PWD/fileapi/OperationNotAllowedException.idl \
268     $$PWD/fileapi/WebKitBlobBuilder.idl \
269     $$PWD/html/canvas/ArrayBufferView.idl \
270     $$PWD/html/canvas/ArrayBuffer.idl \
271     $$PWD/html/canvas/DataView.idl \
272     $$PWD/html/canvas/Int8Array.idl \
273     $$PWD/html/canvas/Float32Array.idl \
274     $$PWD/html/canvas/Float64Array.idl \
275     $$PWD/html/canvas/CanvasGradient.idl \
276     $$PWD/html/canvas/Int32Array.idl \
277     $$PWD/html/canvas/CanvasPattern.idl \
278     $$PWD/html/canvas/CanvasRenderingContext.idl \
279     $$PWD/html/canvas/CanvasRenderingContext2D.idl \
280     $$PWD/html/canvas/EXTTextureFilterAnisotropic.idl \
281     $$PWD/html/canvas/OESStandardDerivatives.idl \
282     $$PWD/html/canvas/OESTextureFloat.idl \
283     $$PWD/html/canvas/OESVertexArrayObject.idl \
284     $$PWD/html/canvas/WebGLActiveInfo.idl \
285     $$PWD/html/canvas/WebGLBuffer.idl \
286     $$PWD/html/canvas/WebGLCompressedTextureS3TC.idl \
287     $$PWD/html/canvas/WebGLContextAttributes.idl \
288     $$PWD/html/canvas/WebGLContextEvent.idl \
289     $$PWD/html/canvas/WebGLDebugRendererInfo.idl \
290     $$PWD/html/canvas/WebGLDebugShaders.idl \
291     $$PWD/html/canvas/WebGLFramebuffer.idl \
292     $$PWD/html/canvas/WebGLLoseContext.idl \
293     $$PWD/html/canvas/WebGLProgram.idl \
294     $$PWD/html/canvas/WebGLRenderbuffer.idl \
295     $$PWD/html/canvas/WebGLRenderingContext.idl \
296     $$PWD/html/canvas/WebGLShader.idl \
297     $$PWD/html/canvas/Int16Array.idl \
298     $$PWD/html/canvas/WebGLTexture.idl \
299     $$PWD/html/canvas/WebGLUniformLocation.idl \
300     $$PWD/html/canvas/WebGLVertexArrayObjectOES.idl \
301     $$PWD/html/canvas/Uint8Array.idl \
302     $$PWD/html/canvas/Uint8ClampedArray.idl \
303     $$PWD/html/canvas/Uint32Array.idl \
304     $$PWD/html/canvas/Uint16Array.idl \
305     $$PWD/html/DOMFormData.idl \
306     $$PWD/html/DOMSettableTokenList.idl \
307     $$PWD/html/DOMTokenList.idl \
308     $$PWD/html/DOMURL.idl \
309     $$PWD/html/HTMLAllCollection.idl \
310     $$PWD/html/HTMLAudioElement.idl \
311     $$PWD/html/HTMLAnchorElement.idl \
312     $$PWD/html/HTMLAppletElement.idl \
313     $$PWD/html/HTMLAreaElement.idl \
314     $$PWD/html/HTMLBaseElement.idl \
315     $$PWD/html/HTMLBaseFontElement.idl \
316     $$PWD/html/HTMLBodyElement.idl \
317     $$PWD/html/HTMLBRElement.idl \
318     $$PWD/html/HTMLButtonElement.idl \
319     $$PWD/html/HTMLCanvasElement.idl \
320     $$PWD/html/HTMLCollection.idl \
321     $$PWD/html/HTMLDataListElement.idl \
322     $$PWD/html/HTMLDetailsElement.idl \
323     $$PWD/html/HTMLDirectoryElement.idl \
324     $$PWD/html/HTMLDivElement.idl \
325     $$PWD/html/HTMLDListElement.idl \
326     $$PWD/html/HTMLDocument.idl \
327     $$PWD/html/HTMLElement.idl \
328     $$PWD/html/HTMLEmbedElement.idl \
329     $$PWD/html/HTMLFieldSetElement.idl \
330     $$PWD/html/HTMLFontElement.idl \
331     $$PWD/html/HTMLFormElement.idl \
332     $$PWD/html/HTMLFrameElement.idl \
333     $$PWD/html/HTMLFrameSetElement.idl \
334     $$PWD/html/HTMLHeadElement.idl \
335     $$PWD/html/HTMLHeadingElement.idl \
336     $$PWD/html/HTMLHRElement.idl \
337     $$PWD/html/HTMLHtmlElement.idl \
338     $$PWD/html/HTMLIFrameElement.idl \
339     $$PWD/html/HTMLImageElement.idl \
340     $$PWD/html/HTMLInputElement.idl \
341     $$PWD/html/HTMLKeygenElement.idl \
342     $$PWD/html/HTMLLabelElement.idl \
343     $$PWD/html/HTMLLegendElement.idl \
344     $$PWD/html/HTMLLIElement.idl \
345     $$PWD/html/HTMLLinkElement.idl \
346     $$PWD/html/HTMLMapElement.idl \
347     $$PWD/html/HTMLMarqueeElement.idl \
348     $$PWD/html/HTMLMediaElement.idl \
349     $$PWD/html/HTMLMenuElement.idl \
350     $$PWD/html/HTMLMetaElement.idl \
351     $$PWD/html/HTMLMeterElement.idl \
352     $$PWD/html/HTMLModElement.idl \
353     $$PWD/html/HTMLObjectElement.idl \
354     $$PWD/html/HTMLOListElement.idl \
355     $$PWD/html/HTMLOptGroupElement.idl \
356     $$PWD/html/HTMLOptionElement.idl \
357     $$PWD/html/HTMLOptionsCollection.idl \
358     $$PWD/html/HTMLOutputElement.idl \
359     $$PWD/html/HTMLParagraphElement.idl \
360     $$PWD/html/HTMLParamElement.idl \
361     $$PWD/html/HTMLPreElement.idl \
362     $$PWD/html/HTMLProgressElement.idl \
363     $$PWD/html/HTMLPropertiesCollection.idl \
364     $$PWD/html/HTMLQuoteElement.idl \
365     $$PWD/html/HTMLScriptElement.idl \
366     $$PWD/html/HTMLSelectElement.idl \
367     $$PWD/html/HTMLSourceElement.idl \
368     $$PWD/html/HTMLSpanElement.idl \
369     $$PWD/html/HTMLStyleElement.idl \
370     $$PWD/html/HTMLTableCaptionElement.idl \
371     $$PWD/html/HTMLTableCellElement.idl \
372     $$PWD/html/HTMLTableColElement.idl \
373     $$PWD/html/HTMLTableElement.idl \
374     $$PWD/html/HTMLTableRowElement.idl \
375     $$PWD/html/HTMLTableSectionElement.idl \
376     $$PWD/html/HTMLTextAreaElement.idl \
377     $$PWD/html/HTMLTitleElement.idl \
378     $$PWD/html/HTMLTrackElement.idl \
379     $$PWD/html/HTMLUListElement.idl \
380     $$PWD/html/HTMLUnknownElement.idl \
381     $$PWD/html/HTMLVideoElement.idl \
382     $$PWD/html/ImageData.idl \
383     $$PWD/html/MediaController.idl \
384     $$PWD/html/MediaError.idl \
385     $$PWD/html/TextMetrics.idl \
386     $$PWD/html/TimeRanges.idl \
387     $$PWD/html/ValidityState.idl \
388     $$PWD/html/VoidCallback.idl \
389     $$PWD/html/shadow/HTMLContentElement.idl \
390     $$PWD/html/shadow/HTMLShadowElement.idl \
391     $$PWD/inspector/InjectedScriptHost.idl \
392     $$PWD/inspector/InspectorFrontendHost.idl \
393     $$PWD/inspector/JavaScriptCallFrame.idl \
394     $$PWD/inspector/ScriptProfile.idl \
395     $$PWD/inspector/ScriptProfileNode.idl \
396     $$PWD/loader/appcache/DOMApplicationCache.idl \
397     $$PWD/notifications/DOMWindowNotifications.idl \
398     $$PWD/notifications/Notification.idl \
399     $$PWD/notifications/NotificationCenter.idl \
400     $$PWD/notifications/WorkerContextNotifications.idl \
401     $$PWD/page/BarInfo.idl \
402     $$PWD/page/Console.idl \
403     $$PWD/page/Coordinates.idl \
404     $$PWD/page/Crypto.idl \
405     $$PWD/page/DOMSelection.idl \
406     $$PWD/page/DOMWindow.idl \
407     $$PWD/page/EventSource.idl \
408     $$PWD/page/History.idl \
409     $$PWD/page/Location.idl \
410     $$PWD/page/MemoryInfo.idl \
411     $$PWD/page/Navigator.idl \
412     $$PWD/page/Performance.idl \
413     $$PWD/page/PerformanceNavigation.idl \
414     $$PWD/page/PerformanceTiming.idl \
415     $$PWD/page/Screen.idl \
416     $$PWD/page/SpeechInputEvent.idl \
417     $$PWD/page/SpeechInputResult.idl \
418     $$PWD/page/SpeechInputResultList.idl \
419     $$PWD/page/WebKitAnimation.idl \
420     $$PWD/page/WebKitAnimationList.idl \
421     $$PWD/page/WebKitPoint.idl \
422     $$PWD/page/WorkerNavigator.idl \
423     $$PWD/plugins/DOMPlugin.idl \
424     $$PWD/plugins/DOMMimeType.idl \
425     $$PWD/plugins/DOMPluginArray.idl \
426     $$PWD/plugins/DOMMimeTypeArray.idl \
427     $$PWD/storage/Storage.idl \
428     $$PWD/storage/StorageEvent.idl \
429     $$PWD/storage/StorageInfo.idl \
430     $$PWD/storage/StorageInfoErrorCallback.idl \
431     $$PWD/storage/StorageInfoQuotaCallback.idl \
432     $$PWD/storage/StorageInfoUsageCallback.idl \
433     $$PWD/testing/Internals.idl \
434     $$PWD/testing/InternalSettings.idl \
435     $$PWD/workers/AbstractWorker.idl \
436     $$PWD/workers/DedicatedWorkerContext.idl \
437     $$PWD/workers/SharedWorker.idl \
438     $$PWD/workers/SharedWorkerContext.idl \
439     $$PWD/workers/Worker.idl \
440     $$PWD/workers/WorkerContext.idl \
441     $$PWD/workers/WorkerLocation.idl \
442     $$PWD/xml/DOMParser.idl \
443     $$PWD/xml/XMLHttpRequest.idl \
444     $$PWD/xml/XMLHttpRequestException.idl \
445     $$PWD/xml/XMLHttpRequestProgressEvent.idl \
446     $$PWD/xml/XMLHttpRequestUpload.idl \
447     $$PWD/xml/XMLSerializer.idl \
448     $$PWD/xml/XPathNSResolver.idl \
449     $$PWD/xml/XPathException.idl \
450     $$PWD/xml/XPathExpression.idl \
451     $$PWD/xml/XPathResult.idl \
452     $$PWD/xml/XPathEvaluator.idl \
453     $$PWD/xml/XSLTProcessor.idl
454
455 v8 {
456   IDL_BINDINGS += \
457     $$PWD/html/canvas/CanvasPixelArray.idl \
458     $$PWD/storage/IDBVersionChangeEvent.idl \
459     $$PWD/storage/IDBVersionChangeRequest.idl
460 }
461
462 contains(DEFINES, ENABLE_SVG=1) {
463   IDL_BINDINGS += \
464     $$PWD/svg/SVGZoomEvent.idl \
465     $$PWD/svg/SVGAElement.idl \
466     $$PWD/svg/SVGAltGlyphDefElement.idl \
467     $$PWD/svg/SVGAltGlyphElement.idl \
468     $$PWD/svg/SVGAltGlyphItemElement.idl \
469     $$PWD/svg/SVGAngle.idl \
470     $$PWD/svg/SVGAnimateColorElement.idl \
471     $$PWD/svg/SVGAnimateMotionElement.idl \
472     $$PWD/svg/SVGAnimatedAngle.idl \
473     $$PWD/svg/SVGAnimatedBoolean.idl \
474     $$PWD/svg/SVGAnimatedEnumeration.idl \
475     $$PWD/svg/SVGAnimatedInteger.idl \
476     $$PWD/svg/SVGAnimatedLength.idl \
477     $$PWD/svg/SVGAnimatedLengthList.idl \
478     $$PWD/svg/SVGAnimatedNumber.idl \
479     $$PWD/svg/SVGAnimatedNumberList.idl \
480     $$PWD/svg/SVGAnimatedPreserveAspectRatio.idl \
481     $$PWD/svg/SVGAnimatedRect.idl \
482     $$PWD/svg/SVGAnimatedString.idl \
483     $$PWD/svg/SVGAnimatedTransformList.idl \
484     $$PWD/svg/SVGAnimateElement.idl \
485     $$PWD/svg/SVGAnimateTransformElement.idl \
486     $$PWD/svg/SVGAnimationElement.idl \
487     $$PWD/svg/SVGCircleElement.idl \
488     $$PWD/svg/SVGClipPathElement.idl \
489     $$PWD/svg/SVGColor.idl \
490     $$PWD/svg/SVGComponentTransferFunctionElement.idl \
491     $$PWD/svg/SVGCursorElement.idl \
492     $$PWD/svg/SVGDefsElement.idl \
493     $$PWD/svg/SVGDescElement.idl \
494     $$PWD/svg/SVGDocument.idl \
495     $$PWD/svg/SVGElement.idl \
496     $$PWD/svg/SVGElementInstance.idl \
497     $$PWD/svg/SVGElementInstanceList.idl \
498     $$PWD/svg/SVGEllipseElement.idl \
499     $$PWD/svg/SVGException.idl \
500     $$PWD/svg/SVGFEBlendElement.idl \
501     $$PWD/svg/SVGFEColorMatrixElement.idl \
502     $$PWD/svg/SVGFEComponentTransferElement.idl \
503     $$PWD/svg/SVGFECompositeElement.idl \
504     $$PWD/svg/SVGFEConvolveMatrixElement.idl \
505     $$PWD/svg/SVGFEDiffuseLightingElement.idl \
506     $$PWD/svg/SVGFEDisplacementMapElement.idl \
507     $$PWD/svg/SVGFEDistantLightElement.idl \
508     $$PWD/svg/SVGFEDropShadowElement.idl \
509     $$PWD/svg/SVGFEFloodElement.idl \
510     $$PWD/svg/SVGFEFuncAElement.idl \
511     $$PWD/svg/SVGFEFuncBElement.idl \
512     $$PWD/svg/SVGFEFuncGElement.idl \
513     $$PWD/svg/SVGFEFuncRElement.idl \
514     $$PWD/svg/SVGFEGaussianBlurElement.idl \
515     $$PWD/svg/SVGFEImageElement.idl \
516     $$PWD/svg/SVGFEMergeElement.idl \
517     $$PWD/svg/SVGFEMergeNodeElement.idl \
518     $$PWD/svg/SVGFEMorphologyElement.idl \
519     $$PWD/svg/SVGFEOffsetElement.idl \
520     $$PWD/svg/SVGFEPointLightElement.idl \
521     $$PWD/svg/SVGFESpecularLightingElement.idl \
522     $$PWD/svg/SVGFESpotLightElement.idl \
523     $$PWD/svg/SVGFETileElement.idl \
524     $$PWD/svg/SVGFETurbulenceElement.idl \
525     $$PWD/svg/SVGFilterElement.idl \
526     $$PWD/svg/SVGFontElement.idl \
527     $$PWD/svg/SVGFontFaceElement.idl \
528     $$PWD/svg/SVGFontFaceFormatElement.idl \
529     $$PWD/svg/SVGFontFaceNameElement.idl \
530     $$PWD/svg/SVGFontFaceSrcElement.idl \
531     $$PWD/svg/SVGFontFaceUriElement.idl \
532     $$PWD/svg/SVGForeignObjectElement.idl \
533     $$PWD/svg/SVGGElement.idl \
534     $$PWD/svg/SVGGlyphElement.idl \
535     $$PWD/svg/SVGGlyphRefElement.idl \
536     $$PWD/svg/SVGGradientElement.idl \
537     $$PWD/svg/SVGHKernElement.idl \
538     $$PWD/svg/SVGImageElement.idl \
539     $$PWD/svg/SVGLength.idl \
540     $$PWD/svg/SVGLengthList.idl \
541     $$PWD/svg/SVGLinearGradientElement.idl \
542     $$PWD/svg/SVGLineElement.idl \
543     $$PWD/svg/SVGMarkerElement.idl \
544     $$PWD/svg/SVGMaskElement.idl \
545     $$PWD/svg/SVGMatrix.idl \
546     $$PWD/svg/SVGMetadataElement.idl \
547     $$PWD/svg/SVGMissingGlyphElement.idl \
548     $$PWD/svg/SVGMPathElement.idl \
549     $$PWD/svg/SVGNumber.idl \
550     $$PWD/svg/SVGNumberList.idl \
551     $$PWD/svg/SVGPaint.idl \
552     $$PWD/svg/SVGPathElement.idl \
553     $$PWD/svg/SVGPathSegArcAbs.idl \
554     $$PWD/svg/SVGPathSegArcRel.idl \
555     $$PWD/svg/SVGPathSegClosePath.idl \
556     $$PWD/svg/SVGPathSegCurvetoCubicAbs.idl \
557     $$PWD/svg/SVGPathSegCurvetoCubicRel.idl \
558     $$PWD/svg/SVGPathSegCurvetoCubicSmoothAbs.idl \
559     $$PWD/svg/SVGPathSegCurvetoCubicSmoothRel.idl \
560     $$PWD/svg/SVGPathSegCurvetoQuadraticAbs.idl \
561     $$PWD/svg/SVGPathSegCurvetoQuadraticRel.idl \
562     $$PWD/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl \
563     $$PWD/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl \
564     $$PWD/svg/SVGPathSeg.idl \
565     $$PWD/svg/SVGPathSegLinetoAbs.idl \
566     $$PWD/svg/SVGPathSegLinetoHorizontalAbs.idl \
567     $$PWD/svg/SVGPathSegLinetoHorizontalRel.idl \
568     $$PWD/svg/SVGPathSegLinetoRel.idl \
569     $$PWD/svg/SVGPathSegLinetoVerticalAbs.idl \
570     $$PWD/svg/SVGPathSegLinetoVerticalRel.idl \
571     $$PWD/svg/SVGPathSegList.idl \
572     $$PWD/svg/SVGPathSegMovetoAbs.idl \
573     $$PWD/svg/SVGPathSegMovetoRel.idl \
574     $$PWD/svg/SVGPatternElement.idl \
575     $$PWD/svg/SVGPoint.idl \
576     $$PWD/svg/SVGPointList.idl \
577     $$PWD/svg/SVGPolygonElement.idl \
578     $$PWD/svg/SVGPolylineElement.idl \
579     $$PWD/svg/SVGPreserveAspectRatio.idl \
580     $$PWD/svg/SVGRadialGradientElement.idl \
581     $$PWD/svg/SVGRectElement.idl \
582     $$PWD/svg/SVGRect.idl \
583     $$PWD/svg/SVGRenderingIntent.idl \
584     $$PWD/svg/SVGScriptElement.idl \
585     $$PWD/svg/SVGSetElement.idl \
586     $$PWD/svg/SVGStopElement.idl \
587     $$PWD/svg/SVGStringList.idl \
588     $$PWD/svg/SVGStyleElement.idl \
589     $$PWD/svg/SVGSVGElement.idl \
590     $$PWD/svg/SVGSwitchElement.idl \
591     $$PWD/svg/SVGSymbolElement.idl \
592     $$PWD/svg/SVGTextContentElement.idl \
593     $$PWD/svg/SVGTextElement.idl \
594     $$PWD/svg/SVGTextPathElement.idl \
595     $$PWD/svg/SVGTextPositioningElement.idl \
596     $$PWD/svg/SVGTitleElement.idl \
597     $$PWD/svg/SVGTransform.idl \
598     $$PWD/svg/SVGTransformList.idl \
599     $$PWD/svg/SVGTRefElement.idl \
600     $$PWD/svg/SVGTSpanElement.idl \
601     $$PWD/svg/SVGUnitTypes.idl \
602     $$PWD/svg/SVGUseElement.idl \
603     $$PWD/svg/SVGViewElement.idl \
604     $$PWD/svg/SVGVKernElement.idl
605 }
606
607 contains(DEFINES, ENABLE_VIDEO_TRACK=1) {
608   IDL_BINDINGS += \
609     $$PWD/html/track/TextTrack.idl \
610     $$PWD/html/track/TextTrackCue.idl \
611     $$PWD/html/track/TextTrackCueList.idl \
612     $$PWD/html/track/TextTrackList.idl \
613     $$PWD/html/track/TrackEvent.idl \
614 }
615
616 v8: wrapperFactoryArg = --wrapperFactoryV8
617 else: wrapperFactoryArg = --wrapperFactory
618
619 mathmlnames.output = MathMLNames.cpp
620 mathmlnames.input = MATHML_NAMES
621 mathmlnames.depends = $$PWD/mathml/mathattrs.in
622 mathmlnames.script = $$PWD/dom/make_names.pl
623 mathmlnames.commands = perl -I$$PWD/bindings/scripts $$mathmlnames.script --tags $$PWD/mathml/mathtags.in --attrs $$PWD/mathml/mathattrs.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\" --factory $$wrapperFactoryArg --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
624 mathmlnames.extra_sources = MathMLElementFactory.cpp
625 GENERATORS += mathmlnames
626
627 # GENERATOR 5-C:
628 svgnames.output = SVGNames.cpp
629 svgnames.input = SVG_NAMES
630 svgnames.depends = $$PWD/svg/svgattrs.in
631 svgnames.script = $$PWD/dom/make_names.pl
632 svgnames.commands = perl -I$$PWD/bindings/scripts $$svgnames.script --tags $$PWD/svg/svgtags.in --attrs $$PWD/svg/svgattrs.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\" --factory $$wrapperFactoryArg --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
633 svgnames.extra_sources = SVGElementFactory.cpp
634 v8 {
635     svgnames.extra_sources += V8SVGElementWrapperFactory.cpp
636 } else {
637     svgnames.extra_sources += JSSVGElementWrapperFactory.cpp
638 }
639 GENERATORS += svgnames
640
641 # GENERATOR 5-D:
642 xlinknames.output = XLinkNames.cpp
643 xlinknames.script = $$PWD/dom/make_names.pl
644 xlinknames.commands = perl -I$$PWD/bindings/scripts $$xlinknames.script --attrs $$PWD/svg/xlinkattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
645 xlinknames.input = XLINK_NAMES
646 GENERATORS += xlinknames
647
648 # GENERATOR 6-A:
649 cssprops.script = $$PWD/css/makeprop.pl
650 cssprops.output = CSSPropertyNames.cpp
651 cssprops.input = WALDOCSSPROPS
652 cssprops.commands = perl -ne \"print $1\" ${QMAKE_FILE_NAME} $${EXTRACSSPROPERTIES} > ${QMAKE_FUNC_FILE_OUT_PATH}/${QMAKE_FILE_BASE}.in && cd ${QMAKE_FUNC_FILE_OUT_PATH} && perl -I$$PWD/bindings/scripts $$cssprops.script --defines \"$${FEATURE_DEFINES_JAVASCRIPT}\" --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_FILE_NAME} && $(DEL_FILE) ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.gperf
653 cssprops.depends = ${QMAKE_FILE_NAME} $${EXTRACSSPROPERTIES} $$cssprops.script
654 GENERATORS += cssprops
655
656 # GENERATOR 6-B:
657 cssvalues.script = $$PWD/css/makevalues.pl
658 cssvalues.output = CSSValueKeywords.cpp
659 cssvalues.input = WALDOCSSVALUES
660 cssvalues.commands = perl -ne \"print $1\" ${QMAKE_FILE_NAME} $$EXTRACSSVALUES > ${QMAKE_FUNC_FILE_OUT_PATH}/${QMAKE_FILE_BASE}.in && cd ${QMAKE_FUNC_FILE_OUT_PATH} && perl -I$$PWD/bindings/scripts $$cssvalues.script --defines \"$${FEATURE_DEFINES_JAVASCRIPT}\" --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_FILE_NAME} && $(DEL_FILE) ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.gperf
661 cssvalues.depends = ${QMAKE_FILE_NAME} $${EXTRACSSVALUES} $$cssvalues.script
662 cssvalues.clean = ${QMAKE_FILE_OUT} ${QMAKE_FUNC_FILE_OUT_PATH}/${QMAKE_FILE_BASE}.h
663 GENERATORS += cssvalues
664
665 # GENERATOR 0: Resolve [Supplemental] dependency in IDLs
666 SUPPLEMENTAL_DEPENDENCY_FILE = supplemental_dependency.tmp
667 IDL_FILES_TMP = ${QMAKE_FUNC_FILE_OUT_PATH}/idl_files.tmp
668 PREPROCESS_IDLS_SCRIPT = $$PWD/bindings/scripts/preprocess-idls.pl
669 IDL_ATTRIBUTES_FILE = $$PWD/bindings/scripts/IDLAttributes.txt
670
671 preprocessIdls.input = IDL_ATTRIBUTES_FILE
672 preprocessIdls.script = $$PREPROCESS_IDLS_SCRIPT
673 # FIXME : We need to use only perl at some point.
674 EOC = $$escape_expand(\\n\\t)
675 win_cmd_shell: preprocessIdls.commands = type nul > $$IDL_FILES_TMP $$EOC
676 else: preprocessIdls.commands = cat /dev/null > $$IDL_FILES_TMP $$EOC
677 for(binding, IDL_BINDINGS) {
678     preprocessIdls.commands += echo $$binding >> $$IDL_FILES_TMP $$EOC
679 }
680 preprocessIdls.commands += perl -I$$PWD/bindings/scripts $$preprocessIdls.script \
681                                --defines \"$${FEATURE_DEFINES_JAVASCRIPT}\" \
682                                --idlFilesList $$IDL_FILES_TMP \
683                                --supplementalDependencyFile ${QMAKE_FUNC_FILE_OUT_PATH}/$$SUPPLEMENTAL_DEPENDENCY_FILE \
684                                --idlAttributesFile $${IDL_ATTRIBUTES_FILE} \
685                                --preprocessor \"$${QMAKE_MOC} -E\"
686 preprocessIdls.output = $$SUPPLEMENTAL_DEPENDENCY_FILE
687 preprocessIdls.add_output_to_sources = false
688 preprocessIdls.depends = $$PWD/bindings/scripts/IDLParser.pm $$IDL_BINDINGS
689 GENERATORS += preprocessIdls
690
691 # GENERATOR 1: Generate .h and .cpp from IDLs
692 generateBindings.input = IDL_BINDINGS
693 generateBindings.script = $$PWD/bindings/scripts/generate-bindings.pl
694 v8: generator = V8
695 else: generator = JS
696 generateBindings.commands = perl -I$$PWD/bindings/scripts $$generateBindings.script \
697                             --defines \"$${FEATURE_DEFINES_JAVASCRIPT}\" \
698                             --generator $$generator \
699                             --include $$PWD/Modules/filesystem \
700                             --include $$PWD/Modules/geolocation \
701                             --include $$PWD/Modules/indexeddb \
702                             --include $$PWD/Modules/webaudio \
703                             --include $$PWD/Modules/webdatabase \
704                             --include $$PWD/Modules/websockets \
705                             --include $$PWD/dom \
706                             --include $$PWD/fileapi \
707                             --include $$PWD/html \
708                             --include $$PWD/xml \
709                             --include $$PWD/svg \
710                             --include $$PWD/storage \
711                             --include $$PWD/css \
712                             --include $$PWD/testing \
713                             --include $$PWD/workers \
714                             --outputDir ${QMAKE_FUNC_FILE_OUT_PATH} \
715                             --supplementalDependencyFile ${QMAKE_FUNC_FILE_OUT_PATH}/$$SUPPLEMENTAL_DEPENDENCY_FILE \
716                             --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_FILE_NAME}
717 v8 {
718     generateBindings.output = V8${QMAKE_FILE_BASE}.cpp
719     generateBindings.depends = ${QMAKE_FUNC_FILE_OUT_PATH}/$$SUPPLEMENTAL_DEPENDENCY_FILE \
720                                $$PWD/bindings/scripts/CodeGenerator.pm \
721                                $$PWD/bindings/scripts/CodeGeneratorV8.pm \
722                                $$PWD/bindings/scripts/IDLParser.pm \
723                                $$PWD/bindings/scripts/IDLStructure.pm \
724                                $$PWD/bindings/scripts/InFilesParser.pm \
725                                $$PWD/bindings/scripts/preprocessor.pm
726 } else {
727     generateBindings.output = JS${QMAKE_FILE_BASE}.cpp
728     generateBindings.depends = ${QMAKE_FUNC_FILE_OUT_PATH}/$$SUPPLEMENTAL_DEPENDENCY_FILE \
729                                $$PWD/bindings/scripts/CodeGenerator.pm \
730                                $$PWD/bindings/scripts/CodeGeneratorJS.pm \
731                                $$PWD/bindings/scripts/IDLParser.pm \
732                                $$PWD/bindings/scripts/IDLStructure.pm \
733                                $$PWD/bindings/scripts/InFilesParser.pm \
734                                $$PWD/bindings/scripts/preprocessor.pm
735 }
736 GENERATORS += generateBindings
737
738 # GENERATOR 2: inspector idl compiler
739 inspectorValidate.output = InspectorProtocolVersion.h
740 inspectorValidate.input = INSPECTOR_JSON
741 inspectorValidate.script = $$PWD/inspector/generate-inspector-protocol-version
742 inspectorValidate.commands = python $$inspectorValidate.script -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
743 inspectorValidate.depends = $$PWD/inspector/generate-inspector-protocol-version
744 inspectorValidate.add_output_to_sources = false
745 GENERATORS += inspectorValidate
746
747 inspectorJSON.output = InspectorFrontend.cpp InspectorBackendDispatcher.cpp InspectorTypeBuilder.cpp
748 inspectorJSON.input = INSPECTOR_JSON
749 inspectorJSON.script = $$PWD/inspector/CodeGeneratorInspector.py
750 inspectorJSON.commands = python $$inspectorJSON.script $$PWD/inspector/Inspector.json --output_h_dir ${QMAKE_FUNC_FILE_OUT_PATH} --output_cpp_dir ${QMAKE_FUNC_FILE_OUT_PATH}
751 inspectorJSON.depends = $$inspectorJSON.script
752 GENERATORS += inspectorJSON
753
754 inspectorBackendStub.output = InspectorBackendStub.qrc
755 inspectorBackendStub.input = INSPECTOR_BACKEND_STUB_QRC
756 inspectorBackendStub.commands = $$QMAKE_COPY $$toSystemPath($$INSPECTOR_BACKEND_STUB_QRC) ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}InspectorBackendStub.qrc
757 inspectorBackendStub.add_output_to_sources = false
758 GENERATORS += inspectorBackendStub
759
760 # GENERATOR 2-a: inspector injected script source compiler
761 injectedScriptSource.output = InjectedScriptSource.h
762 injectedScriptSource.input = INJECTED_SCRIPT_SOURCE
763 injectedScriptSource.commands = perl $$PWD/inspector/xxd.pl InjectedScriptSource_js $$PWD/inspector/InjectedScriptSource.js ${QMAKE_FILE_OUT}
764 injectedScriptSource.add_output_to_sources = false
765 GENERATORS += injectedScriptSource
766
767 # GENERATOR 2-b: inspector debugger script source compiler
768 debuggerScriptSource.output = DebuggerScriptSource.h
769 debuggerScriptSource.input = DEBUGGER_SCRIPT_SOURCE
770 debuggerScriptSource.commands = perl $$PWD/inspector/xxd.pl DebuggerScriptSource_js ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
771 debuggerScriptSource.add_output_to_sources = false
772 GENERATORS += debuggerScriptSource
773
774 arrayBufferViewCustomScript.output = V8ArrayBufferViewCustomScript.h
775 arrayBufferViewCustomScript.input = ARRAY_BUFFER_VIEW_CUSTOM_SCRIPT_SOURCE
776 arrayBufferViewCustomScript.commands = perl $$PWD/inspector/xxd.pl V8ArrayBufferViewCustomScript_js ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
777 arrayBufferViewCustomScript.add_output_to_sources = false
778 GENERATORS += arrayBufferViewCustomScript
779
780 # GENERATOR 4: CSS grammar
781 cssbison.output = ${QMAKE_FILE_BASE}.cpp
782 cssbison.input = CSSBISON
783 cssbison.script = $$PWD/css/makegrammar.pl
784 cssbison.commands = perl $$cssbison.script ${QMAKE_FILE_NAME} ${QMAKE_FUNC_FILE_OUT_PATH}/${QMAKE_FILE_BASE}
785 cssbison.depends = ${QMAKE_FILE_NAME}
786 GENERATORS += cssbison
787
788 # GENERATOR 5-A:
789 htmlnames.output = HTMLNames.cpp
790 htmlnames.input = HTML_NAMES
791 htmlnames.script = $$PWD/dom/make_names.pl
792 htmlnames.depends = $$PWD/html/HTMLAttributeNames.in
793 htmlnames.commands = perl -I$$PWD/bindings/scripts $$htmlnames.script --tags $$PWD/html/HTMLTagNames.in --attrs $$PWD/html/HTMLAttributeNames.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\"  --factory $$wrapperFactoryArg --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
794 htmlnames.extra_sources = HTMLElementFactory.cpp
795 v8 {
796     htmlnames.extra_sources += V8HTMLElementWrapperFactory.cpp
797 } else {
798     htmlnames.extra_sources += JSHTMLElementWrapperFactory.cpp
799 }
800 GENERATORS += htmlnames
801
802 # GENERATOR 5-B:
803 xmlnsnames.output = XMLNSNames.cpp
804 xmlnsnames.input = XMLNS_NAMES
805 xmlnsnames.script = $$PWD/dom/make_names.pl
806 xmlnsnames.commands = perl -I$$PWD/bindings/scripts $$xmlnsnames.script --attrs $$PWD/xml/xmlnsattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
807 GENERATORS += xmlnsnames
808
809 # GENERATOR 5-C:
810 xmlnames.output = XMLNames.cpp
811 xmlnames.input = XML_NAMES
812 xmlnames.script = $$PWD/dom/make_names.pl
813 xmlnames.commands = perl -I$$PWD/bindings/scripts $$xmlnames.script --attrs $$PWD/xml/xmlattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
814 GENERATORS += xmlnames
815
816 # GENERATOR 5-D:
817 fontnames.output = WebKitFontFamilyNames.cpp
818 fontnames.input = FONT_NAMES
819 fontnames.script = $$PWD/dom/make_names.pl
820 fontnames.commands = perl -I$$PWD/bindings/scripts $$fontnames.script --fonts $$FONT_NAMES --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
821 entities.depends = $$PWD/dom/make_names.pl $$FONT_NAMES
822 GENERATORS += fontnames
823
824 # GENERATOR 5-E:
825 eventfactory.output = EventFactory.cpp
826 eventfactory.input = EVENTS_NAMES
827 eventfactory.script = $$PWD/dom/make_event_factory.pl
828 eventfactory.commands = perl -I$$PWD/bindings/scripts $$eventfactory.script --input $$EVENTS_NAMES --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
829 eventfactory.depends = $$PWD/dom/make_event_factory.pl $$EVENTS_NAMES
830 GENERATORS += eventfactory
831
832 # GENERATOR 5-F:
833 eventtargetfactory.output = EventTargetInterfaces.h
834 eventtargetfactory.add_output_to_sources = false
835 eventtargetfactory.input = EVENT_TARGET_FACTORY
836 eventtargetfactory.script = $$PWD/dom/make_event_factory.pl
837 eventtargetfactory.commands = perl -I$$PWD/bindings/scripts $$eventfactory.script --input $$EVENT_TARGET_FACTORY --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
838 eventtargetfactory.depends = $$PWD/dom/make_event_factory.pl $$EVENT_TARGET_FACTORY
839 GENERATORS += eventtargetfactory
840
841 # GENERATOR 5-G:
842 exceptioncodedescription.output = ExceptionCodeDescription.cpp
843 exceptioncodedescription.input = DOM_EXCEPTIONS
844 exceptioncodedescription.script = $$PWD/dom/make_dom_exceptions.pl
845 exceptioncodedescription.commands = perl -I$$PWD/bindings/scripts $$exceptioncodedescription.script --input $$DOM_EXCEPTIONS --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
846 exceptioncodedescription.depends = $$PWD/dom/make_dom_exceptions.pl $$DOM_EXCEPTIONS
847 GENERATORS += exceptioncodedescription
848
849 # GENERATOR 8-A:
850 entities.output = HTMLEntityTable.cpp
851 entities.input = HTML_ENTITIES
852 entities.script = $$PWD/html/parser/create-html-entity-table
853 entities.commands = python $$entities.script -o ${QMAKE_FILE_OUT} $$HTML_ENTITIES
854 entities.clean = ${QMAKE_FILE_OUT}
855 entities.depends = $$PWD/html/parser/create-html-entity-table
856 GENERATORS += entities
857
858 # GENERATOR 8-B:
859 colordata.output = ColorData.cpp
860 colordata.input = COLORDATA_GPERF
861 colordata.script = $$PWD/make-hash-tools.pl
862 colordata.commands = perl $$colordata.script ${QMAKE_FUNC_FILE_OUT_PATH} $$COLORDATA_GPERF
863 colordata.clean = ${QMAKE_FILE_OUT}
864 colordata.depends = $$PWD/make-hash-tools.pl
865 GENERATORS += colordata
866
867 contains(DEFINES, ENABLE_XSLT=1) {
868     # GENERATOR 8-C:
869     xmlviewercss.output = XMLViewerCSS.h
870     xmlviewercss.input = XMLVIEWER_CSS
871     xmlviewercss.script = $$PWD/inspector/xxd.pl
872     xmlviewercss.commands = perl $$xmlviewercss.script XMLViewer_css $$XMLVIEWER_CSS ${QMAKE_FILE_OUT}
873     xmlviewercss.clean = ${QMAKE_FILE_OUT}
874     xmlviewercss.depends = $$PWD/inspector/xxd.pl
875     xmlviewercss.add_output_to_sources = false
876     GENERATORS += xmlviewercss
877
878     # GENERATOR 8-D:
879     xmlviewerjs.output = XMLViewerJS.h
880     xmlviewerjs.input = XMLVIEWER_JS
881     xmlviewerjs.script = $$PWD/inspector/xxd.pl
882     xmlviewerjs.commands = perl $$xmlviewerjs.script XMLViewer_js $$XMLVIEWER_JS ${QMAKE_FILE_OUT}
883     xmlviewerjs.clean = ${QMAKE_FILE_OUT}
884     xmlviewerjs.depends = $$PWD/inspector/xxd.pl
885     xmlviewerjs.add_output_to_sources = false
886     GENERATORS += xmlviewerjs
887 }
888
889 # GENERATOR 9:
890 stylesheets.script = $$PWD/css/make-css-file-arrays.pl
891 stylesheets.output = UserAgentStyleSheetsData.cpp
892 stylesheets.input = stylesheets.script
893 stylesheets.commands = perl $$stylesheets.script ${QMAKE_FUNC_FILE_OUT_PATH}/UserAgentStyleSheets.h ${QMAKE_FILE_OUT} $$STYLESHEETS_EMBED
894 stylesheets.depends = $$STYLESHEETS_EMBED
895 stylesheets.clean = ${QMAKE_FILE_OUT} ${QMAKE_FUNC_FILE_OUT_PATH}/UserAgentStyleSheets.h
896 GENERATORS += stylesheets
897
898 # GENERATOR 10: XPATH grammar
899 xpathbison.output = ${QMAKE_FILE_BASE}.cpp
900 xpathbison.input = XPATHBISON
901 xpathbison.commands = bison -d -p xpathyy ${QMAKE_FILE_NAME} -o ${QMAKE_FUNC_FILE_OUT_PATH}/${QMAKE_FILE_BASE}.tab.c && $(MOVE) ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.c ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.cpp && $(MOVE) ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.h ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.h
902 xpathbison.depends = ${QMAKE_FILE_NAME}
903 GENERATORS += xpathbison
904
905 # GENERATOR 11: WebKit Version
906 # The appropriate Apple-maintained Version.xcconfig file for WebKit version information is in Source/WebKit/mac/Configurations/.
907 webkitversion.script = $$PWD/../WebKit/scripts/generate-webkitversion.pl
908 webkitversion.output = WebKitVersion.h
909 webkitversion.input = webkitversion.script
910 webkitversion.commands = perl $$webkitversion.script --config $$PWD/../WebKit/mac/Configurations/Version.xcconfig --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}/
911 webkitversion.clean = ${QMAKE_FUNC_FILE_OUT_PATH}/WebKitVersion.h
912 webkitversion.add_output_to_sources = false
913 GENERATORS += webkitversion
914
915 # Stolen from JavaScriptCore, needed for YARR
916 v8 {
917     retgen.output = RegExpJitTables.h
918     retgen.script = $$PWD/../JavaScriptCore/create_regex_tables
919     retgen.input = retgen.script
920     retgen.commands = python $$retgen.script > ${QMAKE_FILE_OUT}
921     GENERATORS += retgen
922 }