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