2010-08-12 Adam Barth <abarth@webkit.org>
[WebKit-https.git] / WebCore / WebCore.pri
1
2 include(../common.pri)
3 include(features.pri)
4
5 CONFIG(standalone_package) {
6     isEmpty(WC_GENERATED_SOURCES_DIR):WC_GENERATED_SOURCES_DIR = $$PWD/generated
7 } else {
8     isEmpty(WC_GENERATED_SOURCES_DIR):WC_GENERATED_SOURCES_DIR = generated
9 }
10
11 ## Derived source generators
12 MATHML_NAMES = $$PWD/mathml/mathtags.in
13
14 WML_NAMES = $$PWD/wml/WMLTagNames.in
15
16 SVG_NAMES = $$PWD/svg/svgtags.in
17
18 XLINK_NAMES = $$PWD/svg/xlinkattrs.in
19
20 TOKENIZER = $$PWD/css/tokenizer.flex
21
22 DOCTYPESTRINGS_GPERF = $$PWD/html/DocTypeStrings.gperf
23
24 CSSBISON = $$PWD/css/CSSGrammar.y
25
26 HTML_NAMES = $$PWD/html/HTMLTagNames.in
27
28 XML_NAMES = $$PWD/xml/xmlattrs.in
29
30 XMLNS_NAMES = $$PWD/xml/xmlnsattrs.in
31
32 HTML_ENTITIES = $$PWD/html/HTMLEntityNames.json
33
34 COLORDATA_GPERF = $$PWD/platform/ColorData.gperf
35
36 WALDOCSSPROPS = $$PWD/css/CSSPropertyNames.in
37
38 WALDOCSSVALUES = $$PWD/css/CSSValueKeywords.in
39
40 DASHBOARDSUPPORTCSSPROPERTIES = $$PWD/css/DashboardSupportCSSPropertyNames.in
41
42 XPATHBISON = $$PWD/xml/XPathGrammar.y
43
44 contains(DEFINES, ENABLE_SVG=1) {
45     EXTRACSSPROPERTIES += $$PWD/css/SVGCSSPropertyNames.in
46     EXTRACSSVALUES += $$PWD/css/SVGCSSValueKeywords.in
47 }
48
49 contains(DEFINES, ENABLE_WCSS=1) {
50     EXTRACSSPROPERTIES += $$PWD/css/WCSSPropertyNames.in
51     EXTRACSSVALUES += $$PWD/css/WCSSValueKeywords.in
52 }
53
54 STYLESHEETS_EMBED = \
55     $$PWD/css/html.css \
56     $$PWD/css/quirks.css \
57     $$PWD/css/mathml.css \
58     $$PWD/css/svg.css \
59     $$PWD/css/view-source.css \
60     $$PWD/css/wml.css \
61     $$PWD/css/mediaControls.css \
62     $$PWD/css/mediaControlsQt.css \
63     $$PWD/css/themeQtNoListboxes.css \
64     $$PWD/css/themeQtMaemo5.css
65
66 IDL_BINDINGS += \
67     css/Counter.idl \
68     css/CSSCharsetRule.idl \
69     css/CSSFontFaceRule.idl \
70     css/CSSImportRule.idl \
71     css/CSSMediaRule.idl \
72     css/CSSPageRule.idl \
73     css/CSSPrimitiveValue.idl \
74     css/CSSRule.idl \
75     css/CSSRuleList.idl \
76     css/CSSStyleDeclaration.idl \
77     css/CSSStyleRule.idl \
78     css/CSSStyleSheet.idl \
79     css/CSSValue.idl \
80     css/CSSValueList.idl \
81     css/CSSVariablesDeclaration.idl \
82     css/CSSVariablesRule.idl \
83     css/MediaList.idl \
84     css/Rect.idl \
85     css/RGBColor.idl \
86     css/StyleMedia.idl \
87     css/StyleSheet.idl \
88     css/StyleSheetList.idl \
89     css/WebKitCSSKeyframeRule.idl \
90     css/WebKitCSSKeyframesRule.idl \
91     css/WebKitCSSMatrix.idl \
92     css/WebKitCSSTransformValue.idl \
93     dom/Attr.idl \
94     dom/BeforeLoadEvent.idl \
95     dom/BeforeProcessEvent.idl \
96     dom/CharacterData.idl \
97     dom/ClientRect.idl \
98     dom/ClientRectList.idl \
99     dom/Clipboard.idl \
100     dom/CDATASection.idl \
101     dom/Comment.idl \
102     dom/CompositionEvent.idl \
103     dom/CustomEvent.idl \
104     dom/DeviceMotionEvent.idl \
105     dom/DeviceOrientationEvent.idl \
106     dom/DocumentFragment.idl \
107     dom/Document.idl \
108     dom/DocumentType.idl \
109     dom/DOMCoreException.idl \
110     dom/DOMImplementation.idl \
111     dom/DOMStringList.idl \
112     dom/DOMStringMap.idl \
113     dom/Element.idl \
114     dom/Entity.idl \
115     dom/EntityReference.idl \
116     dom/ErrorEvent.idl \
117     dom/Event.idl \
118     dom/EventException.idl \
119 #    dom/EventListener.idl \
120 #    dom/EventTarget.idl \
121     dom/KeyboardEvent.idl \
122     dom/MouseEvent.idl \
123     dom/MessageChannel.idl \
124     dom/MessageEvent.idl \
125     dom/MessagePort.idl \
126     dom/MutationEvent.idl \
127     dom/NamedNodeMap.idl \
128     dom/Node.idl \
129     dom/NodeFilter.idl \
130     dom/NodeIterator.idl \
131     dom/NodeList.idl \
132     dom/Notation.idl \
133     dom/OverflowEvent.idl \
134     dom/PageTransitionEvent.idl \
135     dom/PopStateEvent.idl \
136     dom/ProcessingInstruction.idl \
137     dom/ProgressEvent.idl \
138     dom/RangeException.idl \
139     dom/Range.idl \
140     dom/Text.idl \
141     dom/TextEvent.idl \
142     dom/Touch.idl \
143     dom/TouchEvent.idl \
144     dom/TouchList.idl \
145     dom/TreeWalker.idl \
146     dom/UIEvent.idl \
147     dom/WebKitAnimationEvent.idl \
148     dom/WebKitTransitionEvent.idl \
149     dom/WheelEvent.idl \
150     html/Blob.idl \
151     html/BlobBuilder.idl \
152     html/canvas/ArrayBufferView.idl \
153     html/canvas/ArrayBuffer.idl \
154     html/canvas/Int8Array.idl \
155     html/canvas/Float32Array.idl \
156     html/canvas/CanvasGradient.idl \
157     html/canvas/Int32Array.idl \
158     html/canvas/CanvasPattern.idl \
159     html/canvas/CanvasRenderingContext.idl \
160     html/canvas/CanvasRenderingContext2D.idl \
161     html/canvas/WebGLActiveInfo.idl \
162     html/canvas/WebGLBuffer.idl \
163     html/canvas/WebGLContextAttributes.idl \
164     html/canvas/WebGLFramebuffer.idl \
165     html/canvas/WebGLProgram.idl \
166     html/canvas/WebGLRenderbuffer.idl \
167     html/canvas/WebGLRenderingContext.idl \
168     html/canvas/WebGLShader.idl \
169     html/canvas/Int16Array.idl \
170     html/canvas/WebGLTexture.idl \
171     html/canvas/WebGLUniformLocation.idl \
172     html/canvas/Uint8Array.idl \
173     html/canvas/Uint32Array.idl \
174     html/canvas/Uint16Array.idl \
175     html/DataGridColumn.idl \
176     html/DataGridColumnList.idl \
177     html/DOMFormData.idl \
178     html/File.idl \
179     html/FileError.idl \
180     html/FileList.idl \
181     html/FileReader.idl \
182     html/HTMLAllCollection.idl \
183     html/HTMLAudioElement.idl \
184     html/HTMLAnchorElement.idl \
185     html/HTMLAppletElement.idl \
186     html/HTMLAreaElement.idl \
187     html/HTMLBaseElement.idl \
188     html/HTMLBaseFontElement.idl \
189     html/HTMLBlockquoteElement.idl \
190     html/HTMLBodyElement.idl \
191     html/HTMLBRElement.idl \
192     html/HTMLButtonElement.idl \
193     html/HTMLCanvasElement.idl \
194     html/HTMLCollection.idl \
195     html/HTMLDataGridElement.idl \
196     html/HTMLDataGridCellElement.idl \
197     html/HTMLDataGridColElement.idl \
198     html/HTMLDataGridRowElement.idl \
199     html/HTMLDataListElement.idl \
200     html/HTMLDirectoryElement.idl \
201     html/HTMLDivElement.idl \
202     html/HTMLDListElement.idl \
203     html/HTMLDocument.idl \
204     html/HTMLElement.idl \
205     html/HTMLEmbedElement.idl \
206     html/HTMLFieldSetElement.idl \
207     html/HTMLFontElement.idl \
208     html/HTMLFormElement.idl \
209     html/HTMLFrameElement.idl \
210     html/HTMLFrameSetElement.idl \
211     html/HTMLHeadElement.idl \
212     html/HTMLHeadingElement.idl \
213     html/HTMLHRElement.idl \
214     html/HTMLHtmlElement.idl \
215     html/HTMLIFrameElement.idl \
216     html/HTMLImageElement.idl \
217     html/HTMLInputElement.idl \
218     html/HTMLIsIndexElement.idl \
219     html/HTMLLabelElement.idl \
220     html/HTMLLegendElement.idl \
221     html/HTMLLIElement.idl \
222     html/HTMLLinkElement.idl \
223     html/HTMLMapElement.idl \
224     html/HTMLMarqueeElement.idl \
225     html/HTMLMediaElement.idl \
226     html/HTMLMenuElement.idl \
227     html/HTMLMetaElement.idl \
228     html/HTMLMeterElement.idl \
229     html/HTMLModElement.idl \
230     html/HTMLObjectElement.idl \
231     html/HTMLOListElement.idl \
232     html/HTMLOptGroupElement.idl \
233     html/HTMLOptionElement.idl \
234     html/HTMLOptionsCollection.idl \
235     html/HTMLParagraphElement.idl \
236     html/HTMLParamElement.idl \
237     html/HTMLPreElement.idl \
238     html/HTMLProgressElement.idl \
239     html/HTMLQuoteElement.idl \
240     html/HTMLScriptElement.idl \
241     html/HTMLSelectElement.idl \
242     html/HTMLSourceElement.idl \
243     html/HTMLStyleElement.idl \
244     html/HTMLTableCaptionElement.idl \
245     html/HTMLTableCellElement.idl \
246     html/HTMLTableColElement.idl \
247     html/HTMLTableElement.idl \
248     html/HTMLTableRowElement.idl \
249     html/HTMLTableSectionElement.idl \
250     html/HTMLTextAreaElement.idl \
251     html/HTMLTitleElement.idl \
252     html/HTMLUListElement.idl \
253     html/HTMLVideoElement.idl \
254     html/ImageData.idl \
255     html/MediaError.idl \
256     html/TextMetrics.idl \
257     html/TimeRanges.idl \
258     html/ValidityState.idl \
259     html/VoidCallback.idl \
260     inspector/InjectedScriptHost.idl \
261     inspector/InspectorFrontendHost.idl \
262     inspector/JavaScriptCallFrame.idl \
263     inspector/ScriptProfile.idl \
264     inspector/ScriptProfileNode.idl \
265     loader/appcache/DOMApplicationCache.idl \
266     notifications/Notification.idl \
267     notifications/NotificationCenter.idl \
268     page/BarInfo.idl \
269     page/Console.idl \
270     page/Coordinates.idl \
271     page/DOMSelection.idl \
272     page/DOMWindow.idl \
273     page/EventSource.idl \
274     page/Geolocation.idl \
275     page/Geoposition.idl \
276     page/History.idl \
277     page/Location.idl \
278     page/MemoryInfo.idl \
279     page/Navigation.idl \
280     page/Navigator.idl \
281     page/Performance.idl \
282     page/PositionError.idl \
283     page/Screen.idl \
284     page/Timing.idl \
285     page/WebKitPoint.idl \
286     page/WorkerNavigator.idl \
287     plugins/DOMPlugin.idl \
288     plugins/DOMMimeType.idl \
289     plugins/DOMPluginArray.idl \
290     plugins/DOMMimeTypeArray.idl \
291     storage/Database.idl \
292     storage/DatabaseCallback.idl \
293     storage/DatabaseSync.idl \
294     storage/IDBAny.idl \
295     storage/IDBCursor.idl \
296     storage/IDBDatabaseError.idl \
297     storage/IDBDatabaseException.idl \
298     storage/IDBDatabase.idl \
299     storage/IDBErrorEvent.idl \
300     storage/IDBEvent.idl \
301     storage/IDBFactory.idl \
302     storage/IDBIndex.idl \
303     storage/IDBKey.idl \
304     storage/IDBKeyRange.idl \
305     storage/IDBObjectStore.idl \
306     storage/IDBRequest.idl \
307     storage/IDBSuccessEvent.idl \
308     storage/IDBTransaction.idl \
309     storage/Storage.idl \
310     storage/StorageEvent.idl \
311     storage/SQLError.idl \
312     storage/SQLException.idl \
313     storage/SQLResultSet.idl \
314     storage/SQLResultSetRowList.idl \
315     storage/SQLStatementCallback.idl \
316     storage/SQLStatementErrorCallback.idl \
317     storage/SQLTransaction.idl \
318     storage/SQLTransactionCallback.idl \
319     storage/SQLTransactionErrorCallback.idl \
320     storage/SQLTransactionSync.idl \
321     storage/SQLTransactionSyncCallback.idl \
322     svg/SVGZoomEvent.idl \
323     svg/SVGAElement.idl \
324     svg/SVGAltGlyphElement.idl \
325     svg/SVGAngle.idl \
326     svg/SVGAnimateColorElement.idl \
327     svg/SVGAnimatedAngle.idl \
328     svg/SVGAnimatedBoolean.idl \
329     svg/SVGAnimatedEnumeration.idl \
330     svg/SVGAnimatedInteger.idl \
331     svg/SVGAnimatedLength.idl \
332     svg/SVGAnimatedLengthList.idl \
333     svg/SVGAnimatedNumber.idl \
334     svg/SVGAnimatedNumberList.idl \
335     svg/SVGAnimatedPreserveAspectRatio.idl \
336     svg/SVGAnimatedRect.idl \
337     svg/SVGAnimatedString.idl \
338     svg/SVGAnimatedTransformList.idl \
339     svg/SVGAnimateElement.idl \
340     svg/SVGAnimateTransformElement.idl \
341     svg/SVGAnimationElement.idl \
342     svg/SVGCircleElement.idl \
343     svg/SVGClipPathElement.idl \
344     svg/SVGColor.idl \
345     svg/SVGComponentTransferFunctionElement.idl \
346     svg/SVGCursorElement.idl \
347     svg/SVGDefsElement.idl \
348     svg/SVGDescElement.idl \
349     svg/SVGDocument.idl \
350     svg/SVGElement.idl \
351     svg/SVGElementInstance.idl \
352     svg/SVGElementInstanceList.idl \
353     svg/SVGEllipseElement.idl \
354     svg/SVGException.idl \
355     svg/SVGFEBlendElement.idl \
356     svg/SVGFEColorMatrixElement.idl \
357     svg/SVGFEComponentTransferElement.idl \
358     svg/SVGFECompositeElement.idl \
359     svg/SVGFEConvolveMatrixElement.idl \
360     svg/SVGFEDiffuseLightingElement.idl \
361     svg/SVGFEDisplacementMapElement.idl \
362     svg/SVGFEDistantLightElement.idl \
363     svg/SVGFEFloodElement.idl \
364     svg/SVGFEFuncAElement.idl \
365     svg/SVGFEFuncBElement.idl \
366     svg/SVGFEFuncGElement.idl \
367     svg/SVGFEFuncRElement.idl \
368     svg/SVGFEGaussianBlurElement.idl \
369     svg/SVGFEImageElement.idl \
370     svg/SVGFEMergeElement.idl \
371     svg/SVGFEMergeNodeElement.idl \
372     svg/SVGFEMorphologyElement.idl \
373     svg/SVGFEOffsetElement.idl \
374     svg/SVGFEPointLightElement.idl \
375     svg/SVGFESpecularLightingElement.idl \
376     svg/SVGFESpotLightElement.idl \
377     svg/SVGFETileElement.idl \
378     svg/SVGFETurbulenceElement.idl \
379     svg/SVGFilterElement.idl \
380     svg/SVGFontElement.idl \
381     svg/SVGFontFaceElement.idl \
382     svg/SVGFontFaceFormatElement.idl \
383     svg/SVGFontFaceNameElement.idl \
384     svg/SVGFontFaceSrcElement.idl \
385     svg/SVGFontFaceUriElement.idl \
386     svg/SVGForeignObjectElement.idl \
387     svg/SVGGElement.idl \
388     svg/SVGGlyphElement.idl \
389     svg/SVGGradientElement.idl \
390     svg/SVGHKernElement.idl \
391     svg/SVGImageElement.idl \
392     svg/SVGLength.idl \
393     svg/SVGLengthList.idl \
394     svg/SVGLinearGradientElement.idl \
395     svg/SVGLineElement.idl \
396     svg/SVGMarkerElement.idl \
397     svg/SVGMaskElement.idl \
398     svg/SVGMatrix.idl \
399     svg/SVGMetadataElement.idl \
400     svg/SVGMissingGlyphElement.idl \
401     svg/SVGNumber.idl \
402     svg/SVGNumberList.idl \
403     svg/SVGPaint.idl \
404     svg/SVGPathElement.idl \
405     svg/SVGPathSegArcAbs.idl \
406     svg/SVGPathSegArcRel.idl \
407     svg/SVGPathSegClosePath.idl \
408     svg/SVGPathSegCurvetoCubicAbs.idl \
409     svg/SVGPathSegCurvetoCubicRel.idl \
410     svg/SVGPathSegCurvetoCubicSmoothAbs.idl \
411     svg/SVGPathSegCurvetoCubicSmoothRel.idl \
412     svg/SVGPathSegCurvetoQuadraticAbs.idl \
413     svg/SVGPathSegCurvetoQuadraticRel.idl \
414     svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl \
415     svg/SVGPathSegCurvetoQuadraticSmoothRel.idl \
416     svg/SVGPathSeg.idl \
417     svg/SVGPathSegLinetoAbs.idl \
418     svg/SVGPathSegLinetoHorizontalAbs.idl \
419     svg/SVGPathSegLinetoHorizontalRel.idl \
420     svg/SVGPathSegLinetoRel.idl \
421     svg/SVGPathSegLinetoVerticalAbs.idl \
422     svg/SVGPathSegLinetoVerticalRel.idl \
423     svg/SVGPathSegList.idl \
424     svg/SVGPathSegMovetoAbs.idl \
425     svg/SVGPathSegMovetoRel.idl \
426     svg/SVGPatternElement.idl \
427     svg/SVGPoint.idl \
428     svg/SVGPointList.idl \
429     svg/SVGPolygonElement.idl \
430     svg/SVGPolylineElement.idl \
431     svg/SVGPreserveAspectRatio.idl \
432     svg/SVGRadialGradientElement.idl \
433     svg/SVGRectElement.idl \
434     svg/SVGRect.idl \
435     svg/SVGRenderingIntent.idl \
436     svg/SVGScriptElement.idl \
437     svg/SVGSetElement.idl \
438     svg/SVGStopElement.idl \
439     svg/SVGStringList.idl \
440     svg/SVGStyleElement.idl \
441     svg/SVGSVGElement.idl \
442     svg/SVGSwitchElement.idl \
443     svg/SVGSymbolElement.idl \
444     svg/SVGTextContentElement.idl \
445     svg/SVGTextElement.idl \
446     svg/SVGTextPathElement.idl \
447     svg/SVGTextPositioningElement.idl \
448     svg/SVGTitleElement.idl \
449     svg/SVGTransform.idl \
450     svg/SVGTransformList.idl \
451     svg/SVGTRefElement.idl \
452     svg/SVGTSpanElement.idl \
453     svg/SVGUnitTypes.idl \
454     svg/SVGUseElement.idl \
455     svg/SVGViewElement.idl \
456     svg/SVGVKernElement.idl \
457     websockets/WebSocket.idl \
458     workers/AbstractWorker.idl \
459     workers/DedicatedWorkerContext.idl \
460     workers/SharedWorker.idl \
461     workers/SharedWorkerContext.idl \
462     workers/Worker.idl \
463     workers/WorkerContext.idl \
464     workers/WorkerLocation.idl \
465     xml/DOMParser.idl \
466     xml/XMLHttpRequest.idl \
467     xml/XMLHttpRequestException.idl \
468     xml/XMLHttpRequestProgressEvent.idl \
469     xml/XMLHttpRequestUpload.idl \
470     xml/XMLSerializer.idl \
471     xml/XPathNSResolver.idl \
472     xml/XPathException.idl \
473     xml/XPathExpression.idl \
474     xml/XPathResult.idl \
475     xml/XPathEvaluator.idl \
476     xml/XSLTProcessor.idl
477
478
479 INSPECTOR_INTERFACES = inspector/Inspector.idl
480
481 mathmlnames.output = $${WC_GENERATED_SOURCES_DIR}/MathMLNames.cpp
482 mathmlnames.input = MATHML_NAMES
483 mathmlnames.wkScript = $$PWD/dom/make_names.pl
484 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 --wrapperFactory --outputDir $$WC_GENERATED_SOURCES_DIR
485 mathmlnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/MathMLElementFactory.cpp 
486 addExtraCompiler(mathmlnames)
487
488 contains(DEFINES, ENABLE_WML=1) {
489     wmlnames.output = $${WC_GENERATED_SOURCES_DIR}/WMLNames.cpp
490     wmlnames.input = WML_NAMES
491     wmlnames.wkScript = $$PWD/dom/make_names.pl
492     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
493     wmlnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/WMLElementFactory.cpp
494     addExtraCompiler(wmlnames)
495 }
496
497 # GENERATOR 5-C:
498 svgnames.output = $${WC_GENERATED_SOURCES_DIR}/SVGNames.cpp
499 svgnames.input = SVG_NAMES
500 svgnames.depends = $$PWD/svg/svgattrs.in
501 svgnames.wkScript = $$PWD/dom/make_names.pl
502 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
503 svgnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/SVGElementFactory.cpp $${WC_GENERATED_SOURCES_DIR}/JSSVGElementWrapperFactory.cpp
504 addExtraCompiler(svgnames)
505
506 # GENERATOR 5-D:
507 xlinknames.output = $${WC_GENERATED_SOURCES_DIR}/XLinkNames.cpp
508 xlinknames.wkScript = $$PWD/dom/make_names.pl
509 xlinknames.commands = perl -I$$PWD/bindings/scripts $$xlinknames.wkScript --attrs $$PWD/svg/xlinkattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$WC_GENERATED_SOURCES_DIR
510 xlinknames.input = XLINK_NAMES
511 addExtraCompiler(xlinknames)
512
513 # GENERATOR 6-A:
514 cssprops.wkScript = $$PWD/css/makeprop.pl
515 cssprops.output = $${WC_GENERATED_SOURCES_DIR}/CSSPropertyNames.cpp
516 cssprops.input = WALDOCSSPROPS
517 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
518 cssprops.depends = ${QMAKE_FILE_NAME} $${DASHBOARDSUPPORTCSSPROPERTIES} $${EXTRACSSPROPERTIES}
519 addExtraCompiler(cssprops)
520
521 # GENERATOR 6-B:
522 cssvalues.wkScript = $$PWD/css/makevalues.pl
523 cssvalues.output = $${WC_GENERATED_SOURCES_DIR}/CSSValueKeywords.cpp
524 cssvalues.input = WALDOCSSVALUES
525 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
526 cssvalues.depends = ${QMAKE_FILE_NAME} $${EXTRACSSVALUES}
527 cssvalues.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.h
528 addExtraCompiler(cssvalues)
529
530 # GENERATOR 1: IDL compiler
531 idl.output = $${WC_GENERATED_SOURCES_DIR}/JS${QMAKE_FILE_BASE}.cpp
532 idl.input = IDL_BINDINGS
533 idl.wkScript = $$PWD/bindings/scripts/generate-bindings.pl
534 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}
535 idl.depends = $$PWD/bindings/scripts/CodeGenerator.pm \
536               $$PWD/bindings/scripts/CodeGeneratorJS.pm \
537               $$PWD/bindings/scripts/IDLParser.pm \
538               $$PWD/bindings/scripts/IDLStructure.pm \
539               $$PWD/bindings/scripts/InFilesParser.pm
540 addExtraCompiler(idl)
541
542 # GENERATOR 2: inspector idl compiler
543 inspectorIDL.output = $${WC_GENERATED_SOURCES_DIR}/Remote${QMAKE_FILE_BASE}Frontend.cpp $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}BackendDispatcher.cpp
544 inspectorIDL.input = INSPECTOR_INTERFACES
545 inspectorIDL.wkScript = $$PWD/bindings/scripts/generate-bindings.pl
546 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}
547 inspectorIDL.depends = $$PWD/bindings/scripts/CodeGenerator.pm \
548               $$PWD/inspector/CodeGeneratorInspector.pm \
549               $$PWD/bindings/scripts/IDLParser.pm \
550               $$PWD/bindings/scripts/IDLStructure.pm \
551               $$PWD/bindings/scripts/InFilesParser.pm
552 addExtraCompiler(inspectorIDL)
553
554 # GENERATOR 3: tokenizer (flex)
555 tokenizer.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
556 tokenizer.input = TOKENIZER
557 tokenizer.wkScript = $$PWD/css/maketokenizer
558 tokenizer.commands = flex -t < ${QMAKE_FILE_NAME} | perl $$tokenizer.wkScript > ${QMAKE_FILE_OUT}
559 addExtraCompiler(tokenizer)
560
561 # GENERATOR 4: CSS grammar
562 cssbison.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
563 cssbison.input = CSSBISON
564 cssbison.wkScript = $$PWD/css/makegrammar.pl
565 cssbison.commands = perl $$cssbison.wkScript ${QMAKE_FILE_NAME} $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}
566 cssbison.depends = ${QMAKE_FILE_NAME}
567 addExtraCompiler(cssbison)
568
569 # GENERATOR 5-A:
570 htmlnames.output = $${WC_GENERATED_SOURCES_DIR}/HTMLNames.cpp
571 htmlnames.input = HTML_NAMES
572 htmlnames.wkScript = $$PWD/dom/make_names.pl
573 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
574 htmlnames.depends = $$PWD/html/HTMLAttributeNames.in
575 htmlnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/HTMLElementFactory.cpp $${WC_GENERATED_SOURCES_DIR}/JSHTMLElementWrapperFactory.cpp
576 addExtraCompiler(htmlnames)
577
578 # GENERATOR 5-B:
579 xmlnsnames.output = $${WC_GENERATED_SOURCES_DIR}/XMLNSNames.cpp
580 xmlnsnames.input = XMLNS_NAMES
581 xmlnsnames.wkScript = $$PWD/dom/make_names.pl
582 xmlnsnames.commands = perl -I$$PWD/bindings/scripts $$xmlnsnames.wkScript --attrs $$PWD/xml/xmlnsattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$WC_GENERATED_SOURCES_DIR
583 addExtraCompiler(xmlnsnames)
584
585 # GENERATOR 5-C:
586 xmlnames.output = $${WC_GENERATED_SOURCES_DIR}/XMLNames.cpp
587 xmlnames.input = XML_NAMES
588 xmlnames.wkScript = $$PWD/dom/make_names.pl
589 xmlnames.commands = perl -I$$PWD/bindings/scripts $$xmlnames.wkScript --attrs $$PWD/xml/xmlattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$WC_GENERATED_SOURCES_DIR
590 addExtraCompiler(xmlnames)
591
592 # GENERATOR 8-A:
593 entities.output = $${WC_GENERATED_SOURCES_DIR}/HTMLEntityTable.cpp
594 entities.input = HTML_ENTITIES
595 entities.wkScript = $$PWD/../WebKitTools/Scripts/create-html-entity-table
596 entities.commands = python $$entities.wkScript -o $${WC_GENERATED_SOURCES_DIR}/HTMLEntityTable.cpp $$HTML_ENTITIES
597 entities.clean = ${QMAKE_FILE_OUT}
598 entities.depends = $$PWD/../WebKitTools/Scripts/create-html-entity-table
599 addExtraCompiler(entities)
600
601 # GENERATOR 8-B:
602 doctypestrings.output = $${WC_GENERATED_SOURCES_DIR}/DocTypeStrings.cpp
603 doctypestrings.input = DOCTYPESTRINGS_GPERF
604 doctypestrings.wkScript = $$PWD/make-hash-tools.pl
605 doctypestrings.commands = perl $$doctypestrings.wkScript $${WC_GENERATED_SOURCES_DIR} $$DOCTYPESTRINGS_GPERF
606 doctypestrings.clean = ${QMAKE_FILE_OUT}
607 doctypestrings.depends = $$PWD/make-hash-tools.pl
608 addExtraCompiler(doctypestrings)
609
610 # GENERATOR 8-C:
611 colordata.output = $${WC_GENERATED_SOURCES_DIR}/ColorData.cpp
612 colordata.input = COLORDATA_GPERF
613 colordata.wkScript = $$PWD/make-hash-tools.pl
614 colordata.commands = perl $$colordata.wkScript $${WC_GENERATED_SOURCES_DIR} $$COLORDATA_GPERF
615 colordata.clean = ${QMAKE_FILE_OUT}
616 colordata.depends = $$PWD/make-hash-tools.pl
617 addExtraCompiler(colordata)
618
619 # GENERATOR 9:
620 stylesheets.wkScript = $$PWD/css/make-css-file-arrays.pl
621 stylesheets.output = $${WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheetsData.cpp
622 stylesheets.input = stylesheets.wkScript
623 stylesheets.commands = perl $$stylesheets.wkScript $${WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheets.h ${QMAKE_FILE_OUT} $$STYLESHEETS_EMBED
624 stylesheets.depends = $$STYLESHEETS_EMBED
625 stylesheets.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheets.h
626 addExtraCompiler(stylesheets, $${WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheets.h)
627
628 # GENERATOR 10: XPATH grammar
629 xpathbison.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
630 xpathbison.input = XPATHBISON
631 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
632 xpathbison.depends = ${QMAKE_FILE_NAME}
633 addExtraCompiler(xpathbison)
634
635 # GENERATOR 11: WebKit Version
636 # The appropriate Apple-maintained Version.xcconfig file for WebKit version information is in WebKit/mac/Configurations/.
637 webkitversion.wkScript = $$PWD/../WebKit/scripts/generate-webkitversion.pl
638 webkitversion.output = $${WC_GENERATED_SOURCES_DIR}/WebKitVersion.h
639 webkitversion.input = webkitversion.wkScript
640 webkitversion.commands = perl $$webkitversion.wkScript --config $$PWD/../WebKit/mac/Configurations/Version.xcconfig --outputDir $${WC_GENERATED_SOURCES_DIR}/
641 webkitversion.clean = ${QMAKE_VAR_WC_GENERATED_SOURCES_DIR}/WebKitVersion.h
642 webkitversion.wkAddOutputToSources = false
643 addExtraCompiler(webkitversion)