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