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