[Qt] User agent style sheets are crippled by moc -E in make-css-file-arrays.pl
[WebKit-https.git] / WebCore / WebCore.pri
1 CONFIG(standalone_package) {
2     isEmpty(WC_GENERATED_SOURCES_DIR):WC_GENERATED_SOURCES_DIR = $$PWD/generated
3 } else {
4     isEmpty(WC_GENERATED_SOURCES_DIR):WC_GENERATED_SOURCES_DIR = generated
5 }
6
7 ## Define default features macros for optional components
8 ## (look for defs in config.h and included files!)
9 # Try to locate sqlite3 source
10 CONFIG(QTDIR_build) {
11     SQLITE3SRCDIR = $$QT_SOURCE_TREE/src/3rdparty/sqlite/
12 } else {
13     SQLITE3SRCDIR = $$(SQLITE3SRCDIR)
14     isEmpty(SQLITE3SRCDIR) {
15         SQLITE3SRCDIR = $$[QT_INSTALL_PREFIX]/src/3rdparty/sqlite/
16     }
17 }
18
19 contains(DEFINES, ENABLE_SINGLE_THREADED=1) {
20     DEFINES+=ENABLE_DATABASE=0 ENABLE_DOM_STORAGE=0 ENABLE_ICONDATABASE=0 ENABLE_WORKERS=0 ENABLE_SHARED_WORKERS=0
21 }
22
23 # turn off SQLITE support if we do not have sqlite3 available
24 !CONFIG(QTDIR_build):win32-*:!exists( $${SQLITE3SRCDIR}/sqlite3.c ): DEFINES += ENABLE_SQLITE=0 ENABLE_DATABASE=0 ENABLE_WORKERS=0 ENABLE_SHARED_WORKERS=0 ENABLE_ICONDATABASE=0 ENABLE_OFFLINE_WEB_APPLICATIONS=0 ENABLE_DOM_STORAGE=0
25
26 !contains(DEFINES, ENABLE_JAVASCRIPT_DEBUGGER=.): DEFINES += ENABLE_JAVASCRIPT_DEBUGGER=1
27 !contains(DEFINES, ENABLE_DATABASE=.): DEFINES += ENABLE_DATABASE=1
28 !contains(DEFINES, ENABLE_EVENTSOURCE=.): DEFINES += ENABLE_EVENTSOURCE=1
29 !contains(DEFINES, ENABLE_OFFLINE_WEB_APPLICATIONS=.): DEFINES += ENABLE_OFFLINE_WEB_APPLICATIONS=1
30 !contains(DEFINES, ENABLE_DOM_STORAGE=.): DEFINES += ENABLE_DOM_STORAGE=1
31 !contains(DEFINES, ENABLE_ICONDATABASE=.): DEFINES += ENABLE_ICONDATABASE=1
32 !contains(DEFINES, ENABLE_CHANNEL_MESSAGING=.): DEFINES += ENABLE_CHANNEL_MESSAGING=1
33 !contains(DEFINES, ENABLE_ORIENTATION_EVENTS=.): DEFINES += ENABLE_ORIENTATION_EVENTS=0
34
35 # turn on SQLITE support if any of the dependent features are turned on
36 !contains(DEFINES, ENABLE_SQLITE=.) {
37   contains(DEFINES, ENABLE_DATABASE=1)|contains(DEFINES, ENABLE_ICONDATABASE=1)|contains(DEFINES, ENABLE_DOM_STORAGE=1)|contains(DEFINES, ENABLE_OFFLINE_WEB_APPLICATIONS=1) {
38     DEFINES += ENABLE_SQLITE=1
39   } else {
40     DEFINES += ENABLE_SQLITE=0
41   }
42 }
43
44 !contains(DEFINES, ENABLE_DASHBOARD_SUPPORT=.): DEFINES += ENABLE_DASHBOARD_SUPPORT=0
45 !contains(DEFINES, ENABLE_FILTERS=.): DEFINES += ENABLE_FILTERS=1
46 !contains(DEFINES, ENABLE_XPATH=.): DEFINES += ENABLE_XPATH=1
47 #!contains(DEFINES, ENABLE_XBL=.): DEFINES += ENABLE_XBL=1
48 !contains(DEFINES, ENABLE_WCSS=.): DEFINES += ENABLE_WCSS=0
49 !contains(DEFINES, ENABLE_WML=.): DEFINES += ENABLE_WML=0
50 !contains(DEFINES, ENABLE_SHARED_WORKERS=.): DEFINES += ENABLE_SHARED_WORKERS=1
51 !contains(DEFINES, ENABLE_WORKERS=.): DEFINES += ENABLE_WORKERS=1
52 !contains(DEFINES, ENABLE_XHTMLMP=.): DEFINES += ENABLE_XHTMLMP=0
53 !contains(DEFINES, ENABLE_DATAGRID=.): DEFINES += ENABLE_DATAGRID=0
54 !contains(DEFINES, ENABLE_VIDEO=.): DEFINES += ENABLE_VIDEO=1
55 !contains(DEFINES, ENABLE_RUBY=.): DEFINES += ENABLE_RUBY=1
56 !contains(DEFINES, ENABLE_SANDBOX=.): DEFINES += ENABLE_SANDBOX=1
57 !contains(DEFINES, ENABLE_PROGRESS_TAG=.): DEFINES += ENABLE_PROGRESS_TAG=1
58 !contains(DEFINES, ENABLE_BLOB_SLICE=.): DEFINES += ENABLE_BLOB_SLICE=0
59
60 greaterThan(QT_MINOR_VERSION, 5) {
61     !contains(DEFINES, ENABLE_3D_RENDERING=.): DEFINES += ENABLE_3D_RENDERING=1
62 }
63
64 # SVG support
65 !contains(DEFINES, ENABLE_SVG=0) {
66     !contains(DEFINES, ENABLE_SVG=.): DEFINES += ENABLE_SVG=1
67     !contains(DEFINES, ENABLE_SVG_FONTS=.): DEFINES += ENABLE_SVG_FONTS=1
68     !contains(DEFINES, ENABLE_SVG_FOREIGN_OBJECT=.): DEFINES += ENABLE_SVG_FOREIGN_OBJECT=1
69     !contains(DEFINES, ENABLE_SVG_ANIMATION=.): DEFINES += ENABLE_SVG_ANIMATION=1
70     !contains(DEFINES, ENABLE_SVG_AS_IMAGE=.): DEFINES += ENABLE_SVG_AS_IMAGE=1
71     !contains(DEFINES, ENABLE_SVG_USE=.): DEFINES += ENABLE_SVG_USE=1
72 } else {
73     DEFINES += ENABLE_SVG_FONTS=0 ENABLE_SVG_FOREIGN_OBJECT=0 ENABLE_SVG_ANIMATION=0 ENABLE_SVG_AS_IMAGE=0 ENABLE_SVG_USE=0
74 }
75
76 # HTML5 media support
77 !contains(DEFINES, ENABLE_VIDEO=.): DEFINES += ENABLE_VIDEO=1
78
79 # HTML5 datalist support
80 !contains(DEFINES, ENABLE_DATALIST=.): DEFINES += ENABLE_DATALIST=1
81
82 # Tiled Backing Store support
83 greaterThan(QT_MINOR_VERSION, 5) {
84     !contains(DEFINES, ENABLE_TILED_BACKING_STORE=.): DEFINES += ENABLE_TILED_BACKING_STORE=1
85 }
86
87 # Nescape plugins support (NPAPI)
88 !contains(DEFINES, ENABLE_NETSCAPE_PLUGIN_API=.) {
89     unix|win32-*:!embedded:!wince*: {
90         DEFINES += ENABLE_NETSCAPE_PLUGIN_API=1
91     } else {
92         DEFINES += ENABLE_NETSCAPE_PLUGIN_API=0
93     }
94 }
95
96 # Web Socket support.
97 !contains(DEFINES, ENABLE_WEB_SOCKETS=.): DEFINES += ENABLE_WEB_SOCKETS=1
98
99 # XSLT support with QtXmlPatterns
100 !contains(DEFINES, ENABLE_XSLT=.) {
101     contains(QT_CONFIG, xmlpatterns):DEFINES += ENABLE_XSLT=1
102     else:DEFINES += ENABLE_XSLT=0
103 }
104
105 !CONFIG(QTDIR_build):!contains(DEFINES, ENABLE_QT_BEARER=.) {
106     symbian: {
107         exists($${EPOCROOT}epoc32/release/winscw/udeb/QtBearer.lib)| \
108         exists($${EPOCROOT}epoc32/release/armv5/lib/QtBearer.lib) {
109             DEFINES += ENABLE_QT_BEARER=1
110         }
111     }
112 }
113
114 # Bearer management is part of Qt 4.7
115 !lessThan(QT_MINOR_VERSION, 7):!contains(DEFINES, ENABLE_QT_BEARER=.):DEFINES += ENABLE_QT_BEARER=1
116
117 # Enable touch event support with Qt 4.6
118 !lessThan(QT_MINOR_VERSION, 6): DEFINES += ENABLE_TOUCH_EVENTS=1
119
120 # Used to compute defaults for the build-webkit script
121 CONFIG(compute_defaults) {
122     message($$DEFINES)
123     error("Done computing defaults")
124 }
125
126 contains(DEFINES, ENABLE_WCSS=1) {
127     contains(DEFINES, ENABLE_XHTMLMP=0) {
128         DEFINES -= ENABLE_XHTMLMP=0
129         DEFINES += ENABLE_XHTMLMP=1
130     }
131 }
132
133 ## Forward enabled feature macros to JavaScript enabled features macros
134 FEATURE_DEFINES_JAVASCRIPT = LANGUAGE_JAVASCRIPT=1
135 contains(DEFINES, ENABLE_CHANNEL_MESSAGING=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_CHANNEL_MESSAGING=1
136 contains(DEFINES, ENABLE_ORIENTATION_EVENTS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_ORIENTATION_EVENTS=1
137 contains(DEFINES, ENABLE_DASHBOARD_SUPPORT=0): DASHBOARDSUPPORTCSSPROPERTIES -= $$PWD/css/DashboardSupportCSSPropertyNames.in
138 contains(DEFINES, ENABLE_DATAGRID=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_DATAGRID=1
139 contains(DEFINES, ENABLE_EVENTSOURCE=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_EVENTSOURCE=1
140 contains(DEFINES, ENABLE_DATABASE=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_DATABASE=1
141 contains(DEFINES, ENABLE_DATALIST=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_DATALIST=1
142 contains(DEFINES, ENABLE_DOM_STORAGE=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_DOM_STORAGE=1
143 contains(DEFINES, ENABLE_SHARED_SCRIPT=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_SHARED_SCRIPT=1
144 contains(DEFINES, ENABLE_WORKERS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_WORKERS=1
145 contains(DEFINES, ENABLE_SHARED_WORKERS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_SHARED_WORKERS=1
146 contains(DEFINES, ENABLE_VIDEO=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_VIDEO=1
147 contains(DEFINES, ENABLE_XPATH=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_XPATH=1
148 contains(DEFINES, ENABLE_XSLT=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_XSLT=1
149 contains(DEFINES, ENABLE_XBL=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_XBL=1
150 contains(DEFINES, ENABLE_FILTERS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_FILTERS=1
151 contains(DEFINES, ENABLE_WCSS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_WCSS=1
152 contains(DEFINES, ENABLE_WML=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_WML=1
153 contains(DEFINES, ENABLE_XHTMLMP=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_XHTMLMP=1
154 contains(DEFINES, ENABLE_SVG=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_SVG=1
155 contains(DEFINES, ENABLE_JAVASCRIPT_DEBUGGER=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_JAVASCRIPT_DEBUGGER=1
156 contains(DEFINES, ENABLE_OFFLINE_WEB_APPLICATIONS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_OFFLINE_WEB_APPLICATIONS=1
157 contains(DEFINES, ENABLE_WEB_SOCKETS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_WEB_SOCKETS=1
158 contains(DEFINES, ENABLE_TOUCH_EVENTS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_TOUCH_EVENTS=1
159 contains(DEFINES, ENABLE_TILED_BACKING_STORE=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_TILED_BACKING_STORE=1
160
161
162 ## Derived source generators
163 WML_NAMES = $$PWD/wml/WMLTagNames.in
164
165 SVG_NAMES = $$PWD/svg/svgtags.in
166
167 XLINK_NAMES = $$PWD/svg/xlinkattrs.in
168
169 TOKENIZER = $$PWD/css/tokenizer.flex
170
171 DOCTYPESTRINGS = $$PWD/html/DocTypeStrings.gperf
172
173 CSSBISON = $$PWD/css/CSSGrammar.y
174
175 HTML_NAMES = $$PWD/html/HTMLTagNames.in
176
177 XML_NAMES = $$PWD/xml/xmlattrs.in
178
179 XMLNS_NAMES = $$PWD/xml/xmlnsattrs.in
180
181 ENTITIES_GPERF = $$PWD/html/HTMLEntityNames.gperf
182
183 COLORDAT_GPERF = $$PWD/platform/ColorData.gperf
184
185 WALDOCSSPROPS = $$PWD/css/CSSPropertyNames.in
186
187 WALDOCSSVALUES = $$PWD/css/CSSValueKeywords.in
188
189 DASHBOARDSUPPORTCSSPROPERTIES = $$PWD/css/DashboardSupportCSSPropertyNames.in
190
191 XPATHBISON = $$PWD/xml/XPathGrammar.y
192
193 contains(DEFINES, ENABLE_SVG=1) {
194     EXTRACSSPROPERTIES += $$PWD/css/SVGCSSPropertyNames.in
195     EXTRACSSVALUES += $$PWD/css/SVGCSSValueKeywords.in
196 }
197
198 contains(DEFINES, ENABLE_WCSS=1) {
199     EXTRACSSPROPERTIES += $$PWD/css/WCSSPropertyNames.in
200     EXTRACSSVALUES += $$PWD/css/WCSSValueKeywords.in
201 }
202
203 STYLESHEETS_EMBED = \
204     $$PWD/css/html.css \
205     $$PWD/css/quirks.css \
206     $$PWD/css/svg.css \
207     $$PWD/css/view-source.css \
208     $$PWD/css/wml.css \
209     $$PWD/css/mediaControls.css \
210     $$PWD/css/mediaControlsQt.css \
211     $$PWD/css/themeQtNoListboxes.css \
212     $$PWD/css/themeQtMaemo5.css
213
214 IDL_BINDINGS += \
215     css/Counter.idl \
216     css/CSSCharsetRule.idl \
217     css/CSSFontFaceRule.idl \
218     css/CSSImportRule.idl \
219     css/CSSMediaRule.idl \
220     css/CSSPageRule.idl \
221     css/CSSPrimitiveValue.idl \
222     css/CSSRule.idl \
223     css/CSSRuleList.idl \
224     css/CSSStyleDeclaration.idl \
225     css/CSSStyleRule.idl \
226     css/CSSStyleSheet.idl \
227     css/CSSValue.idl \
228     css/CSSValueList.idl \
229     css/CSSVariablesDeclaration.idl \
230     css/CSSVariablesRule.idl \
231     css/Media.idl \
232     css/MediaList.idl \
233     css/RGBColor.idl \
234     css/Rect.idl \
235     css/StyleSheet.idl \
236     css/StyleSheetList.idl \
237     css/WebKitCSSKeyframeRule.idl \
238     css/WebKitCSSKeyframesRule.idl \
239     css/WebKitCSSMatrix.idl \
240     css/WebKitCSSTransformValue.idl \
241     dom/Attr.idl \
242     dom/BeforeLoadEvent.idl \
243     dom/CharacterData.idl \
244     dom/ClientRect.idl \
245     dom/ClientRectList.idl \
246     dom/Clipboard.idl \
247     dom/CDATASection.idl \
248     dom/Comment.idl \
249     dom/CompositionEvent.idl \
250     dom/CustomEvent.idl \
251     dom/DocumentFragment.idl \
252     dom/Document.idl \
253     dom/DocumentType.idl \
254     dom/DOMCoreException.idl \
255     dom/DOMImplementation.idl \
256     dom/Element.idl \
257     dom/Entity.idl \
258     dom/EntityReference.idl \
259     dom/ErrorEvent.idl \
260     dom/Event.idl \
261     dom/EventException.idl \
262 #    dom/EventListener.idl \
263 #    dom/EventTarget.idl \
264     dom/KeyboardEvent.idl \
265     dom/MouseEvent.idl \
266     dom/MessageChannel.idl \
267     dom/MessageEvent.idl \
268     dom/MessagePort.idl \
269     dom/MutationEvent.idl \
270     dom/NamedNodeMap.idl \
271     dom/Node.idl \
272     dom/NodeFilter.idl \
273     dom/NodeIterator.idl \
274     dom/NodeList.idl \
275     dom/Notation.idl \
276     dom/OverflowEvent.idl \
277     dom/PageTransitionEvent.idl \
278     dom/PopStateEvent.idl \
279     dom/ProcessingInstruction.idl \
280     dom/ProgressEvent.idl \
281     dom/RangeException.idl \
282     dom/Range.idl \
283     dom/Text.idl \
284     dom/TextEvent.idl \
285     dom/Touch.idl \
286     dom/TouchEvent.idl \
287     dom/TouchList.idl \
288     dom/TreeWalker.idl \
289     dom/UIEvent.idl \
290     dom/WebKitAnimationEvent.idl \
291     dom/WebKitTransitionEvent.idl \
292     dom/WheelEvent.idl \
293     html/Blob.idl \
294     html/canvas/WebGLArray.idl \
295     html/canvas/WebGLArrayBuffer.idl \
296     html/canvas/WebGLByteArray.idl \
297     html/canvas/WebGLFloatArray.idl \
298     html/canvas/CanvasGradient.idl \
299     html/canvas/WebGLIntArray.idl \
300     html/canvas/CanvasPattern.idl \
301     html/canvas/CanvasRenderingContext.idl \
302     html/canvas/CanvasRenderingContext2D.idl \
303     html/canvas/WebGLActiveInfo.idl \
304     html/canvas/WebGLBuffer.idl \
305     html/canvas/WebGLContextAttributes.idl \
306     html/canvas/WebGLFramebuffer.idl \
307     html/canvas/WebGLProgram.idl \
308     html/canvas/WebGLRenderbuffer.idl \
309     html/canvas/WebGLRenderingContext.idl \
310     html/canvas/WebGLShader.idl \
311     html/canvas/WebGLShortArray.idl \
312     html/canvas/WebGLTexture.idl \
313     html/canvas/WebGLUniformLocation.idl \
314     html/canvas/WebGLUnsignedByteArray.idl \
315     html/canvas/WebGLUnsignedIntArray.idl \
316     html/canvas/WebGLUnsignedShortArray.idl \
317     html/DataGridColumn.idl \
318     html/DataGridColumnList.idl \
319     html/DOMFormData.idl \
320     html/File.idl \
321     html/FileList.idl \
322     html/HTMLAllCollection.idl \
323     html/HTMLAudioElement.idl \
324     html/HTMLAnchorElement.idl \
325     html/HTMLAppletElement.idl \
326     html/HTMLAreaElement.idl \
327     html/HTMLBaseElement.idl \
328     html/HTMLBaseFontElement.idl \
329     html/HTMLBlockquoteElement.idl \
330     html/HTMLBodyElement.idl \
331     html/HTMLBRElement.idl \
332     html/HTMLButtonElement.idl \
333     html/HTMLCanvasElement.idl \
334     html/HTMLCollection.idl \
335     html/HTMLDataGridElement.idl \
336     html/HTMLDataGridCellElement.idl \
337     html/HTMLDataGridColElement.idl \
338     html/HTMLDataGridRowElement.idl \
339     html/HTMLDataListElement.idl \
340     html/HTMLDirectoryElement.idl \
341     html/HTMLDivElement.idl \
342     html/HTMLDListElement.idl \
343     html/HTMLDocument.idl \
344     html/HTMLElement.idl \
345     html/HTMLEmbedElement.idl \
346     html/HTMLFieldSetElement.idl \
347     html/HTMLFontElement.idl \
348     html/HTMLFormElement.idl \
349     html/HTMLFrameElement.idl \
350     html/HTMLFrameSetElement.idl \
351     html/HTMLHeadElement.idl \
352     html/HTMLHeadingElement.idl \
353     html/HTMLHRElement.idl \
354     html/HTMLHtmlElement.idl \
355     html/HTMLIFrameElement.idl \
356     html/HTMLImageElement.idl \
357     html/HTMLInputElement.idl \
358     html/HTMLIsIndexElement.idl \
359     html/HTMLLabelElement.idl \
360     html/HTMLLegendElement.idl \
361     html/HTMLLIElement.idl \
362     html/HTMLLinkElement.idl \
363     html/HTMLMapElement.idl \
364     html/HTMLMarqueeElement.idl \
365     html/HTMLMediaElement.idl \
366     html/HTMLMenuElement.idl \
367     html/HTMLMetaElement.idl \
368     html/HTMLModElement.idl \
369     html/HTMLObjectElement.idl \
370     html/HTMLOListElement.idl \
371     html/HTMLOptGroupElement.idl \
372     html/HTMLOptionElement.idl \
373     html/HTMLOptionsCollection.idl \
374     html/HTMLParagraphElement.idl \
375     html/HTMLParamElement.idl \
376     html/HTMLPreElement.idl \
377     html/HTMLProgressElement.idl \
378     html/HTMLQuoteElement.idl \
379     html/HTMLScriptElement.idl \
380     html/HTMLSelectElement.idl \
381     html/HTMLSourceElement.idl \
382     html/HTMLStyleElement.idl \
383     html/HTMLTableCaptionElement.idl \
384     html/HTMLTableCellElement.idl \
385     html/HTMLTableColElement.idl \
386     html/HTMLTableElement.idl \
387     html/HTMLTableRowElement.idl \
388     html/HTMLTableSectionElement.idl \
389     html/HTMLTextAreaElement.idl \
390     html/HTMLTitleElement.idl \
391     html/HTMLUListElement.idl \
392     html/HTMLVideoElement.idl \
393     html/ImageData.idl \
394     html/MediaError.idl \
395     html/TextMetrics.idl \
396     html/TimeRanges.idl \
397     html/ValidityState.idl \
398     html/VoidCallback.idl \
399     inspector/InjectedScriptHost.idl \
400     inspector/InspectorBackend.idl \
401     inspector/InspectorFrontendHost.idl \
402     inspector/JavaScriptCallFrame.idl \
403     loader/appcache/DOMApplicationCache.idl \
404     page/BarInfo.idl \
405     page/Console.idl \
406     page/Coordinates.idl \
407     page/DOMSelection.idl \
408     page/DOMWindow.idl \
409     page/EventSource.idl \
410     page/Geolocation.idl \
411     page/Geoposition.idl \
412     page/History.idl \
413     page/Location.idl \
414     page/Navigator.idl \
415     page/PositionError.idl \
416     page/Screen.idl \
417     page/WebKitPoint.idl \
418     page/WorkerNavigator.idl \
419     plugins/Plugin.idl \
420     plugins/MimeType.idl \
421     plugins/PluginArray.idl \
422     plugins/MimeTypeArray.idl \
423     storage/Database.idl \
424     storage/Storage.idl \
425     storage/StorageEvent.idl \
426     storage/SQLError.idl \
427     storage/SQLResultSet.idl \
428     storage/SQLResultSetRowList.idl \
429     storage/SQLTransaction.idl \
430     svg/SVGZoomEvent.idl \
431     svg/SVGAElement.idl \
432     svg/SVGAltGlyphElement.idl \
433     svg/SVGAngle.idl \
434     svg/SVGAnimateColorElement.idl \
435     svg/SVGAnimatedAngle.idl \
436     svg/SVGAnimatedBoolean.idl \
437     svg/SVGAnimatedEnumeration.idl \
438     svg/SVGAnimatedInteger.idl \
439     svg/SVGAnimatedLength.idl \
440     svg/SVGAnimatedLengthList.idl \
441     svg/SVGAnimatedNumber.idl \
442     svg/SVGAnimatedNumberList.idl \
443     svg/SVGAnimatedPreserveAspectRatio.idl \
444     svg/SVGAnimatedRect.idl \
445     svg/SVGAnimatedString.idl \
446     svg/SVGAnimatedTransformList.idl \
447     svg/SVGAnimateElement.idl \
448     svg/SVGAnimateTransformElement.idl \
449     svg/SVGAnimationElement.idl \
450     svg/SVGCircleElement.idl \
451     svg/SVGClipPathElement.idl \
452     svg/SVGColor.idl \
453     svg/SVGComponentTransferFunctionElement.idl \
454     svg/SVGCursorElement.idl \
455     svg/SVGDefsElement.idl \
456     svg/SVGDescElement.idl \
457     svg/SVGDocument.idl \
458     svg/SVGElement.idl \
459     svg/SVGElementInstance.idl \
460     svg/SVGElementInstanceList.idl \
461     svg/SVGEllipseElement.idl \
462     svg/SVGException.idl \
463     svg/SVGFEBlendElement.idl \
464     svg/SVGFEColorMatrixElement.idl \
465     svg/SVGFEComponentTransferElement.idl \
466     svg/SVGFECompositeElement.idl \
467     svg/SVGFEDiffuseLightingElement.idl \
468     svg/SVGFEDisplacementMapElement.idl \
469     svg/SVGFEDistantLightElement.idl \
470     svg/SVGFEFloodElement.idl \
471     svg/SVGFEFuncAElement.idl \
472     svg/SVGFEFuncBElement.idl \
473     svg/SVGFEFuncGElement.idl \
474     svg/SVGFEFuncRElement.idl \
475     svg/SVGFEGaussianBlurElement.idl \
476     svg/SVGFEImageElement.idl \
477     svg/SVGFEMergeElement.idl \
478     svg/SVGFEMergeNodeElement.idl \
479     svg/SVGFEMorphologyElement.idl \
480     svg/SVGFEOffsetElement.idl \
481     svg/SVGFEPointLightElement.idl \
482     svg/SVGFESpecularLightingElement.idl \
483     svg/SVGFESpotLightElement.idl \
484     svg/SVGFETileElement.idl \
485     svg/SVGFETurbulenceElement.idl \
486     svg/SVGFilterElement.idl \
487     svg/SVGFontElement.idl \
488     svg/SVGFontFaceElement.idl \
489     svg/SVGFontFaceFormatElement.idl \
490     svg/SVGFontFaceNameElement.idl \
491     svg/SVGFontFaceSrcElement.idl \
492     svg/SVGFontFaceUriElement.idl \
493     svg/SVGForeignObjectElement.idl \
494     svg/SVGGElement.idl \
495     svg/SVGGlyphElement.idl \
496     svg/SVGGradientElement.idl \
497     svg/SVGHKernElement.idl \
498     svg/SVGImageElement.idl \
499     svg/SVGLength.idl \
500     svg/SVGLengthList.idl \
501     svg/SVGLinearGradientElement.idl \
502     svg/SVGLineElement.idl \
503     svg/SVGMarkerElement.idl \
504     svg/SVGMaskElement.idl \
505     svg/SVGMatrix.idl \
506     svg/SVGMetadataElement.idl \
507     svg/SVGMissingGlyphElement.idl \
508     svg/SVGNumber.idl \
509     svg/SVGNumberList.idl \
510     svg/SVGPaint.idl \
511     svg/SVGPathElement.idl \
512     svg/SVGPathSegArcAbs.idl \
513     svg/SVGPathSegArcRel.idl \
514     svg/SVGPathSegClosePath.idl \
515     svg/SVGPathSegCurvetoCubicAbs.idl \
516     svg/SVGPathSegCurvetoCubicRel.idl \
517     svg/SVGPathSegCurvetoCubicSmoothAbs.idl \
518     svg/SVGPathSegCurvetoCubicSmoothRel.idl \
519     svg/SVGPathSegCurvetoQuadraticAbs.idl \
520     svg/SVGPathSegCurvetoQuadraticRel.idl \
521     svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl \
522     svg/SVGPathSegCurvetoQuadraticSmoothRel.idl \
523     svg/SVGPathSeg.idl \
524     svg/SVGPathSegLinetoAbs.idl \
525     svg/SVGPathSegLinetoHorizontalAbs.idl \
526     svg/SVGPathSegLinetoHorizontalRel.idl \
527     svg/SVGPathSegLinetoRel.idl \
528     svg/SVGPathSegLinetoVerticalAbs.idl \
529     svg/SVGPathSegLinetoVerticalRel.idl \
530     svg/SVGPathSegList.idl \
531     svg/SVGPathSegMovetoAbs.idl \
532     svg/SVGPathSegMovetoRel.idl \
533     svg/SVGPatternElement.idl \
534     svg/SVGPoint.idl \
535     svg/SVGPointList.idl \
536     svg/SVGPolygonElement.idl \
537     svg/SVGPolylineElement.idl \
538     svg/SVGPreserveAspectRatio.idl \
539     svg/SVGRadialGradientElement.idl \
540     svg/SVGRectElement.idl \
541     svg/SVGRect.idl \
542     svg/SVGRenderingIntent.idl \
543     svg/SVGScriptElement.idl \
544     svg/SVGSetElement.idl \
545     svg/SVGStopElement.idl \
546     svg/SVGStringList.idl \
547     svg/SVGStyleElement.idl \
548     svg/SVGSVGElement.idl \
549     svg/SVGSwitchElement.idl \
550     svg/SVGSymbolElement.idl \
551     svg/SVGTextContentElement.idl \
552     svg/SVGTextElement.idl \
553     svg/SVGTextPathElement.idl \
554     svg/SVGTextPositioningElement.idl \
555     svg/SVGTitleElement.idl \
556     svg/SVGTransform.idl \
557     svg/SVGTransformList.idl \
558     svg/SVGTRefElement.idl \
559     svg/SVGTSpanElement.idl \
560     svg/SVGUnitTypes.idl \
561     svg/SVGUseElement.idl \
562     svg/SVGViewElement.idl \
563     websockets/WebSocket.idl \
564     workers/AbstractWorker.idl \
565     workers/DedicatedWorkerContext.idl \
566     workers/SharedWorker.idl \
567     workers/SharedWorkerContext.idl \
568     workers/Worker.idl \
569     workers/WorkerContext.idl \
570     workers/WorkerLocation.idl \
571     xml/DOMParser.idl \
572     xml/XMLHttpRequest.idl \
573     xml/XMLHttpRequestException.idl \
574     xml/XMLHttpRequestProgressEvent.idl \
575     xml/XMLHttpRequestUpload.idl \
576     xml/XMLSerializer.idl \
577     xml/XPathNSResolver.idl \
578     xml/XPathException.idl \
579     xml/XPathExpression.idl \
580     xml/XPathResult.idl \
581     xml/XPathEvaluator.idl \
582     xml/XSLTProcessor.idl
583
584 contains(DEFINES, ENABLE_WML=1) {
585     wmlnames.output = $${WC_GENERATED_SOURCES_DIR}/WMLNames.cpp
586     wmlnames.input = WML_NAMES
587     wmlnames.wkScript = $$PWD/dom/make_names.pl
588     wmlnames.commands = perl -I$$PWD/bindings/scripts $$wmlnames.wkScript --tags $$PWD/wml/WMLTagNames.in --attrs $$PWD/wml/WMLAttributeNames.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\" --factory --wrapperFactory --outputDir $$WC_GENERATED_SOURCES_DIR
589     wmlnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/WMLElementFactory.cpp
590     addExtraCompiler(wmlnames)
591 }
592
593 contains(DEFINES, ENABLE_SVG=1) {
594     # GENERATOR 5-C:
595     svgnames.output = $${WC_GENERATED_SOURCES_DIR}/SVGNames.cpp
596     svgnames.input = SVG_NAMES
597     svgnames.wkScript = $$PWD/dom/make_names.pl
598     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 --wrapperFactory --outputDir $$WC_GENERATED_SOURCES_DIR
599     svgnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/SVGElementFactory.cpp $${WC_GENERATED_SOURCES_DIR}/JSSVGElementWrapperFactory.cpp
600     addExtraCompiler(svgnames)
601 }
602
603 # GENERATOR 5-D:
604 xlinknames.output = $${WC_GENERATED_SOURCES_DIR}/XLinkNames.cpp
605 xlinknames.wkScript = $$PWD/dom/make_names.pl
606 xlinknames.commands = perl -I$$PWD/bindings/scripts $$xlinknames.wkScript --attrs $$PWD/svg/xlinkattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$WC_GENERATED_SOURCES_DIR
607 xlinknames.input = XLINK_NAMES
608 addExtraCompiler(xlinknames)
609
610 # GENERATOR 6-A:
611 cssprops.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
612 cssprops.input = WALDOCSSPROPS
613 cssprops.wkScript = $$PWD/css/makeprop.pl
614 cssprops.commands = perl -ne \"print lc\" ${QMAKE_FILE_NAME} $${DASHBOARDSUPPORTCSSPROPERTIES} $${EXTRACSSPROPERTIES} > $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.in && cd $$WC_GENERATED_SOURCES_DIR && perl $$cssprops.wkScript && $(DEL_FILE) ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.gperf
615 cssprops.depends = ${QMAKE_FILE_NAME} $${DASHBOARDSUPPORTCSSPROPERTIES} $${EXTRACSSPROPERTIES}
616 addExtraCompiler(cssprops)
617
618 # GENERATOR 6-B:
619 cssvalues.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.c
620 cssvalues.input = WALDOCSSVALUES
621 cssvalues.wkScript = $$PWD/css/makevalues.pl
622 cssvalues.commands = perl -ne \"print lc\" ${QMAKE_FILE_NAME} $$EXTRACSSVALUES > $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.in && cd $$WC_GENERATED_SOURCES_DIR && perl $$cssvalues.wkScript && $(DEL_FILE) ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.gperf
623 cssvalues.depends = ${QMAKE_FILE_NAME} $${EXTRACSSVALUES}
624 cssvalues.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.h
625 addExtraCompiler(cssvalues)
626
627 # GENERATOR 1: IDL compiler
628 idl.output = $${WC_GENERATED_SOURCES_DIR}/JS${QMAKE_FILE_BASE}.cpp
629 idl.input = IDL_BINDINGS
630 idl.wkScript = $$PWD/bindings/scripts/generate-bindings.pl
631 idl.commands = perl -I$$PWD/bindings/scripts $$idl.wkScript --defines \"$${FEATURE_DEFINES_JAVASCRIPT}\" --generator JS --include $$PWD/dom --include $$PWD/html --include $$PWD/xml --include $$PWD/svg --outputDir $$WC_GENERATED_SOURCES_DIR --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_FILE_NAME}
632 idl.depends = $$PWD/bindings/scripts/CodeGenerator.pm \
633               $$PWD/bindings/scripts/CodeGeneratorJS.pm \
634               $$PWD/bindings/scripts/IDLParser.pm \
635               $$PWD/bindings/scripts/IDLStructure.pm \
636               $$PWD/bindings/scripts/InFilesParser.pm
637 addExtraCompiler(idl)
638
639 # GENERATOR 3: tokenizer (flex)
640 tokenizer.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
641 tokenizer.input = TOKENIZER
642 tokenizer.wkScript = $$PWD/css/maketokenizer
643 tokenizer.commands = flex -t < ${QMAKE_FILE_NAME} | perl $$tokenizer.wkScript > ${QMAKE_FILE_OUT}
644 addExtraCompiler(tokenizer)
645
646 # GENERATOR 4: CSS grammar
647 cssbison.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
648 cssbison.input = CSSBISON
649 cssbison.wkScript = $$PWD/css/makegrammar.pl
650 cssbison.commands = perl $$cssbison.wkScript ${QMAKE_FILE_NAME} $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}
651 cssbison.depends = ${QMAKE_FILE_NAME}
652 addExtraCompiler(cssbison)
653
654 # GENERATOR 5-A:
655 htmlnames.output = $${WC_GENERATED_SOURCES_DIR}/HTMLNames.cpp
656 htmlnames.input = HTML_NAMES
657 htmlnames.wkScript = $$PWD/dom/make_names.pl
658 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 --wrapperFactory --outputDir $$WC_GENERATED_SOURCES_DIR
659 htmlnames.depends = $$PWD/html/HTMLAttributeNames.in
660 htmlnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/HTMLElementFactory.cpp $${WC_GENERATED_SOURCES_DIR}/JSHTMLElementWrapperFactory.cpp
661 addExtraCompiler(htmlnames)
662
663 # GENERATOR 5-B:
664 xmlnsnames.output = $${WC_GENERATED_SOURCES_DIR}/XMLNSNames.cpp
665 xmlnsnames.input = XMLNS_NAMES
666 xmlnsnames.wkScript = $$PWD/dom/make_names.pl
667 xmlnsnames.commands = perl -I$$PWD/bindings/scripts $$xmlnsnames.wkScript --attrs $$PWD/xml/xmlnsattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$WC_GENERATED_SOURCES_DIR
668 addExtraCompiler(xmlnsnames)
669
670 # GENERATOR 5-C:
671 xmlnames.output = $${WC_GENERATED_SOURCES_DIR}/XMLNames.cpp
672 xmlnames.input = XML_NAMES
673 xmlnames.wkScript = $$PWD/dom/make_names.pl
674 xmlnames.commands = perl -I$$PWD/bindings/scripts $$xmlnames.wkScript --attrs $$PWD/xml/xmlattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$WC_GENERATED_SOURCES_DIR
675 addExtraCompiler(xmlnames)
676
677 # GENERATOR 8-A:
678 entities.output = $${WC_GENERATED_SOURCES_DIR}/HTMLEntityNames.c
679 entities.input = ENTITIES_GPERF
680 entities.commands = gperf -a -L ANSI-C -C -G -c -o -t --includes --key-positions="*" -N findEntity -D -s 2 < $$PWD/html/HTMLEntityNames.gperf > $${WC_GENERATED_SOURCES_DIR}/HTMLEntityNames.c
681 entities.clean = ${QMAKE_FILE_OUT}
682 addExtraCompiler(entities)
683
684 # GENERATOR 8-B:
685 doctypestrings.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
686 doctypestrings.input = DOCTYPESTRINGS
687 doctypestrings.commands = gperf -CEot -L ANSI-C --includes --key-positions="*" -N findDoctypeEntry -F ,PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards < ${QMAKE_FILE_NAME} >> ${QMAKE_FILE_OUT}
688 doctypestrings.clean = ${QMAKE_FILE_OUT}
689 addExtraCompiler(doctypestrings)
690
691 # GENERATOR 8-C:
692 colordata.output = $${WC_GENERATED_SOURCES_DIR}/ColorData.c
693 colordata.input = COLORDAT_GPERF
694 colordata.commands = gperf -CDEot -L ANSI-C --includes --key-positions="*" -N findColor -D -s 2 < ${QMAKE_FILE_NAME} >> ${QMAKE_FILE_OUT}
695 addExtraCompiler(colordata)
696
697 # GENERATOR 9:
698 stylesheets.wkScript = $$PWD/css/make-css-file-arrays.pl
699 stylesheets.output = $${WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheetsData.cpp
700 stylesheets.input = stylesheets.wkScript
701 stylesheets.commands = perl $$stylesheets.wkScript $${WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheets.h ${QMAKE_FILE_OUT} $$STYLESHEETS_EMBED
702 stylesheets.depends = $$STYLESHEETS_EMBED
703 stylesheets.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheets.h
704 addExtraCompiler(stylesheets, $${WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheets.h)
705
706 # GENERATOR 10: XPATH grammar
707 xpathbison.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
708 xpathbison.input = XPATHBISON
709 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
710 xpathbison.depends = ${QMAKE_FILE_NAME}
711 addExtraCompiler(xpathbison)
712
713 # GENERATOR 11: WebKit Version
714 # The appropriate Apple-maintained Version.xcconfig file for WebKit version information is in WebKit/mac/Configurations/.
715 webkitversion.wkScript = $$PWD/../WebKit/scripts/generate-webkitversion.pl
716 webkitversion.output = $${WC_GENERATED_SOURCES_DIR}/WebKitVersion.h
717 webkitversion.input = webkitversion.wkScript
718 webkitversion.commands = perl $$webkitversion.wkScript --config $$PWD/../WebKit/mac/Configurations/Version.xcconfig --outputDir $${WC_GENERATED_SOURCES_DIR}/
719 webkitversion.clean = ${QMAKE_VAR_WC_GENERATED_SOURCES_DIR}/WebKitVersion.h
720 webkitversion.wkAddOutputToSources = false
721 addExtraCompiler(webkitversion)
722