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