39ec22cd9ea75459956ac32b9cdda14ba2002441
[WebKit-https.git] / WebCore / WebCore.pro
1 # -*- Mode:makefile -*-
2 # WebCore - qmake build info
3 CONFIG += building-libs
4 # do not use implicit rules in nmake Makefiles to avoid the clash
5 # of API/Node.c and dom/Node.cpp
6 CONFIG += no_batch
7 include($$PWD/../WebKit.pri)
8 gtk-port:LIBS -= -lWebKitGtk
9
10 TEMPLATE = lib
11 qt-port:TARGET = QtWebKit
12 gtk-port:TARGET = WebKitGtk
13 OBJECTS_DIR = tmp
14 OBJECTS_DIR_WTR = $$OBJECTS_DIR/
15 win32-*: OBJECTS_DIR_WTR ~= s|/|\|
16 INCLUDEPATH += tmp $$OUTPUT_DIR/WebCore/tmp
17
18 DESTDIR = $$OUTPUT_DIR/lib
19 DEPENDPATH += css dom loader editing history html \
20         loader page platform platform/graphics rendering xml
21
22 include($$OUTPUT_DIR/config.pri)
23
24 CONFIG -= warn_on
25 *-g++*:QMAKE_CXXFLAGS += -Wreturn-type -fno-strict-aliasing
26 #QMAKE_CXXFLAGS += -Wall -Wno-undef -Wno-unused-parameter
27
28 contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
29 unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
30
31 linux-*: DEFINES += HAVE_STDINT_H
32 freebsd-*: DEFINES += HAVE_PTHREAD_NP_H
33
34 # PRE-BUILD: make the required config.h file
35 #config_h.target = config.h
36 #config_h.commands = cp config.h.qmake config.h
37 #config_h.depends = config.h.qmake
38 #QMAKE_EXTRA_TARGETS += config_h
39 #PRE_TARGETDEPS += config.h
40
41 DEFINES += BUILD_WEBKIT
42
43 win32-*: DEFINES += ENABLE_ICONDATABASE=0
44
45 # Pick up 3rdparty libraries from INCLUDE/LIB just like with MSVC
46 win32-g++ {
47     TMPPATH            = $$quote($$(INCLUDE))
48     QMAKE_INCDIR_POST += $$split(TMPPATH,";")
49     TMPPATH            = $$quote($$(LIB))
50     QMAKE_LIBDIR_POST += $$split(TMPPATH,";")
51 }
52
53 # Optional components (look for defs in config.h and included files!)
54 !contains(DEFINES, ENABLE_ICONDATABASE=.): DEFINES += ENABLE_ICONDATABASE=1
55 !contains(DEFINES, ENABLE_XPATH=.): DEFINES += ENABLE_XPATH=1
56 gtk-port:!contains(DEFINES, ENABLE_XSLT=.): DEFINES += ENABLE_XSLT=1
57 #!contains(DEFINES, ENABLE_XBL=.): DEFINES += ENABLE_XBL=1
58 qt-port: !contains(DEFINES, ENABLE_SVG=.): DEFINES += ENABLE_SVG=1
59 gtk-port:DEFINES += ENABLE_SVG=1
60
61 DEFINES += WTF_CHANGES=1
62
63 include($$PWD/../JavaScriptCore/JavaScriptCore.pri)
64
65 #INCLUDEPATH += $$PWD/../JavaScriptCore
66 #LIBS += -L$$OUTPUT_DIR/lib -lJavaScriptCore
67
68 qt-port {
69 !win32-* {
70     LIBS += -L$$OUTPUT_DIR/WebKit/qt/Plugins
71     LIBS += -lqtwebico
72 }
73
74 INCLUDEPATH += \
75                 $$PWD/platform/qt \
76                 $$PWD/platform/network/qt \
77                 $$PWD/platform/graphics/qt \
78                 $$PWD/platform/graphics/svg/qt \
79                 $$PWD/loader/qt \
80                 $$PWD/page/qt \
81                 $$PWD/../WebKit/qt/WebCoreSupport \
82                 $$PWD/../WebKit/qt/Api
83
84 DEPENDPATH += editing/qt history/qt loader/qt page/qt \
85         platform/graphics/qt ../WeKitQt/Api ../WebKit/qt/WebCoreSupport
86
87     DEFINES += WTF_USE_JAVASCRIPTCORE_BINDINGS=1
88 }
89
90 gtk-port {
91     INCLUDEPATH += \
92     $$PWD/platform/graphics/svg/cairo \
93     $$PWD/platform/image-decoders/bmp \
94     $$PWD/platform/image-decoders/gif \
95     $$PWD/platform/image-decoders/ico \
96     $$PWD/platform/image-decoders/jpeg \
97     $$PWD/platform/image-decoders/png \
98     $$PWD/platform/image-decoders/xbm
99
100     DEPENDPATH += platform/graphics/gdk       \
101                   platform/gdk                \
102                   loader/gdk                  \
103                   page/gdk                    \
104                   platform/graphics/cairo     \
105                   platform/graphics/svg/cairo \
106                   platform/network/curl       \
107                   ../WebKit/gtk/Api           \
108                   ../WebKit/gtk/WebCoreSupport
109 }
110
111 INCLUDEPATH +=  $$PWD \
112                 $$PWD/ForwardingHeaders \
113                 $$PWD/.. \
114                 $$PWD/../JavaScriptCore/kjs \
115                 $$PWD/../JavaScriptCore/bindings \
116                 $$PWD/platform \
117                 $$PWD/platform/network \
118                 $$PWD/platform/graphics \
119                 $$PWD/platform/graphics/svg \
120                 $$PWD/platform/graphics/svg/filters \
121                 $$PWD/loader $$PWD/loader/icon \
122                 $$PWD/css \
123                 $$PWD/dom \
124                 $$PWD/page \
125                 $$PWD/bridge \
126                 $$PWD/editing \
127                 $$PWD/rendering \
128                 $$PWD/history \
129                 $$PWD/xml \
130                 $$PWD/html \
131                 $$PWD/bindings/js \
132                 $$PWD/ksvg2 $$PWD/ksvg2/css $$PWD/ksvg2/svg $$PWD/ksvg2/misc $$PWD/ksvg2/events \
133                 $$PWD/platform/image-decoders
134
135 QT += network xml
136
137 FEATURE_DEFINES_JAVASCRIPT = LANGUAGE_JAVASCRIPT=1
138
139 TOKENIZER = $$PWD/css/tokenizer.flex
140
141 DOCTYPESTRINGS = $$PWD/html/DocTypeStrings.gperf
142
143 CSSBISON = $$PWD/css/CSSGrammar.y
144
145 HTML_NAMES = $$PWD/html/HTMLTagNames.in
146
147 XML_NAMES = $$PWD/xml/xmlattrs.in
148
149 ENTITIES_GPERF = $$PWD/html/HTMLEntityNames.gperf
150
151 COLORDAT_GPERF = $$PWD/platform/ColorData.gperf
152
153 WALDOCSSPROPS = $$PWD/css/CSSPropertyNames.in
154
155 WALDOCSSVALUES = $$PWD/css/CSSValueKeywords.in
156
157 SVGCSSPROPERTIES = $$PWD/ksvg2/css/SVGCSSPropertyNames.in
158
159 SVGCSSVALUES = $$PWD/ksvg2/css/SVGCSSValueKeywords.in
160
161 STYLESHEETS_EMBED = $$PWD/css/html4.css
162
163 LUT_FILES += \
164     bindings/js/JSDOMExceptionConstructor.cpp \
165     bindings/js/JSEventTargetNode.cpp \
166     bindings/js/JSXMLHttpRequest.cpp \
167     bindings/js/JSXSLTProcessor.cpp \
168     bindings/js/kjs_css.cpp \
169     bindings/js/kjs_events.cpp \
170     bindings/js/kjs_navigator.cpp \
171     bindings/js/kjs_window.cpp
172
173 LUT_TABLE_FILES += \
174     bindings/js/JSHTMLInputElementBase.cpp
175
176 IDL_BINDINGS += \
177     css/Counter.idl \
178     css/CSSCharsetRule.idl \
179     css/CSSFontFaceRule.idl \
180     css/CSSImportRule.idl \
181     css/CSSMediaRule.idl \
182     css/CSSPageRule.idl \
183     css/CSSPrimitiveValue.idl \
184     css/CSSRule.idl \
185     css/CSSRuleList.idl \
186     css/CSSStyleDeclaration.idl \
187     css/CSSStyleRule.idl \
188     css/CSSStyleSheet.idl \
189     css/CSSValue.idl \
190     css/CSSValueList.idl \
191     css/MediaList.idl \
192     css/Rect.idl \
193     css/StyleSheet.idl \
194     css/StyleSheetList.idl \
195     dom/Attr.idl \
196     dom/CharacterData.idl \
197     dom/CDATASection.idl \
198     dom/Comment.idl \
199     dom/DocumentFragment.idl \
200     dom/Document.idl \
201     dom/DocumentType.idl \
202     dom/DOMImplementation.idl \
203     dom/Element.idl \
204     dom/Entity.idl \
205     dom/EntityReference.idl \
206     dom/Event.idl \
207 #    dom/EventListener.idl \
208 #    dom/EventTarget.idl \
209     dom/KeyboardEvent.idl \
210     dom/MouseEvent.idl \
211     dom/MutationEvent.idl \
212     dom/NamedNodeMap.idl \
213     dom/Node.idl \
214     dom/NodeFilter.idl \
215     dom/NodeIterator.idl \
216     dom/NodeList.idl \
217     dom/Notation.idl \
218     dom/OverflowEvent.idl \
219     dom/ProcessingInstruction.idl \
220     dom/RangeException.idl \
221     dom/Range.idl \
222     dom/Text.idl \
223     dom/TextEvent.idl \
224     dom/TreeWalker.idl \
225     dom/UIEvent.idl \
226     dom/WheelEvent.idl \
227     html/CanvasGradient.idl \
228     html/CanvasPattern.idl \
229     html/CanvasRenderingContext2D.idl \
230     html/HTMLAnchorElement.idl \
231     html/HTMLAppletElement.idl \
232     html/HTMLAreaElement.idl \
233     html/HTMLBaseElement.idl \
234     html/HTMLBaseFontElement.idl \
235     html/HTMLBlockquoteElement.idl \
236     html/HTMLBodyElement.idl \
237     html/HTMLBRElement.idl \
238     html/HTMLButtonElement.idl \
239     html/HTMLCanvasElement.idl \
240     html/HTMLCollection.idl \
241     html/HTMLDirectoryElement.idl \
242     html/HTMLDivElement.idl \
243     html/HTMLDListElement.idl \
244     html/HTMLDocument.idl \
245     html/HTMLElement.idl \
246     html/HTMLEmbedElement.idl \
247     html/HTMLFieldSetElement.idl \
248     html/HTMLFontElement.idl \
249     html/HTMLFormElement.idl \
250     html/HTMLFrameElement.idl \
251     html/HTMLFrameSetElement.idl \
252     html/HTMLHeadElement.idl \
253     html/HTMLHeadingElement.idl \
254     html/HTMLHRElement.idl \
255     html/HTMLHtmlElement.idl \
256     html/HTMLIFrameElement.idl \
257     html/HTMLImageElement.idl \
258     html/HTMLInputElement.idl \
259     html/HTMLIsIndexElement.idl \
260     html/HTMLLabelElement.idl \
261     html/HTMLLegendElement.idl \
262     html/HTMLLIElement.idl \
263     html/HTMLLinkElement.idl \
264     html/HTMLMapElement.idl \
265     html/HTMLMarqueeElement.idl \
266     html/HTMLMenuElement.idl \
267     html/HTMLMetaElement.idl \
268     html/HTMLModElement.idl \
269     html/HTMLObjectElement.idl \
270     html/HTMLOListElement.idl \
271     html/HTMLOptGroupElement.idl \
272     html/HTMLOptionElement.idl \
273     html/HTMLOptionsCollection.idl \
274     html/HTMLParagraphElement.idl \
275     html/HTMLParamElement.idl \
276     html/HTMLPreElement.idl \
277     html/HTMLQuoteElement.idl \
278     html/HTMLScriptElement.idl \
279     html/HTMLSelectElement.idl \
280     html/HTMLStyleElement.idl \
281     html/HTMLTableCaptionElement.idl \
282     html/HTMLTableCellElement.idl \
283     html/HTMLTableColElement.idl \
284     html/HTMLTableElement.idl \
285     html/HTMLTableRowElement.idl \
286     html/HTMLTableSectionElement.idl \
287     html/HTMLTextAreaElement.idl \
288     html/HTMLTitleElement.idl \
289     html/HTMLUListElement.idl \
290     page/BarInfo.idl \
291     page/DOMSelection.idl \
292     page/DOMWindow.idl \
293     page/History.idl \
294     page/Screen.idl \
295     xml/DOMParser.idl \
296     xml/XMLSerializer.idl
297
298
299 SOURCES += \
300     bindings/js/GCController.cpp \
301     bindings/js/JSAttrCustom.cpp \
302     bindings/js/JSCanvasRenderingContext2DCustom.cpp \
303     bindings/js/JSCSSRuleCustom.cpp \
304     bindings/js/JSCSSStyleDeclarationCustom.cpp \
305     bindings/js/JSCSSValueCustom.cpp \
306     bindings/js/JSCustomXPathNSResolver.cpp \
307     bindings/js/JSDocumentCustom.cpp \
308     bindings/js/JSDOMExceptionConstructor.cpp \
309     bindings/js/JSDOMWindowCustom.cpp \
310     bindings/js/JSElementCustom.cpp \
311     bindings/js/JSEventCustom.cpp \
312     bindings/js/JSEventTargetNode.cpp \
313     bindings/js/JSHTMLAppletElementCustom.cpp \
314     bindings/js/JSHTMLCollectionCustom.cpp \
315     bindings/js/JSHTMLDocumentCustom.cpp \
316     bindings/js/JSHTMLElementCustom.cpp \
317     bindings/js/JSHTMLElementWrapperFactory.cpp \
318     bindings/js/JSHTMLEmbedElementCustom.cpp \
319     bindings/js/JSHTMLFormElementCustom.cpp \
320     bindings/js/JSHTMLFrameElementCustom.cpp \
321     bindings/js/JSHTMLFrameSetElementCustom.cpp \
322     bindings/js/JSHTMLIFrameElementCustom.cpp \
323     bindings/js/JSHTMLInputElementBase.cpp \
324     bindings/js/JSHTMLObjectElementCustom.cpp \
325     bindings/js/JSHTMLOptionElementConstructor.cpp \
326     bindings/js/JSHTMLOptionsCollectionCustom.cpp \
327     bindings/js/JSHTMLSelectElementCustom.cpp \
328     bindings/js/JSNamedNodeMapCustom.cpp \
329     bindings/js/JSNamedNodesCollection.cpp  \
330     bindings/js/JSNodeCustom.cpp \
331     bindings/js/JSNodeFilterCondition.cpp \
332     bindings/js/JSNodeFilterCustom.cpp \
333     bindings/js/JSNodeIteratorCustom.cpp \
334     bindings/js/JSNodeListCustom.cpp \
335     bindings/js/JSStyleSheetCustom.cpp \
336     bindings/js/JSStyleSheetListCustom.cpp \
337     bindings/js/JSTreeWalkerCustom.cpp \
338     bindings/js/JSXMLHttpRequest.cpp \
339     bindings/js/JSXSLTProcessor.cpp \
340     bindings/js/kjs_binding.cpp \
341     bindings/js/kjs_css.cpp \
342     bindings/js/kjs_dom.cpp \
343     bindings/js/kjs_events.cpp \
344     bindings/js/kjs_html.cpp \
345     bindings/js/kjs_navigator.cpp \
346     bindings/js/kjs_proxy.cpp \
347     bindings/js/kjs_window.cpp \
348     css/CSSBorderImageValue.cpp \
349     css/CSSCharsetRule.cpp \
350     css/CSSComputedStyleDeclaration.cpp \
351     css/CSSCursorImageValue.cpp \
352     css/CSSFontFace.cpp \
353     css/CSSFontFaceRule.cpp \
354     css/CSSFontFaceSrcValue.cpp \
355     css/CSSFontSelector.cpp \
356     css/CSSFontFaceSource.cpp \
357     css/CSSHelper.cpp \
358     css/CSSImageValue.cpp \
359     css/CSSImportRule.cpp \
360     css/CSSInheritedValue.cpp \
361     css/CSSInitialValue.cpp \
362     css/CSSMediaRule.cpp \
363     css/CSSMutableStyleDeclaration.cpp \
364     css/CSSPageRule.cpp \
365     css/CSSParser.cpp \
366     css/CSSPrimitiveValue.cpp \
367     css/CSSProperty.cpp \
368     css/CSSRule.cpp \
369     css/CSSRuleList.cpp \
370     css/CSSSelector.cpp \
371     css/CSSStyleDeclaration.cpp \
372     css/CSSStyleRule.cpp \
373     css/CSSStyleSelector.cpp \
374     css/CSSStyleSheet.cpp \
375     css/CSSValueList.cpp \
376     css/FontFamilyValue.cpp \
377     css/FontValue.cpp \
378     css/MediaFeatureNames.cpp \
379     css/MediaList.cpp \
380     css/MediaQuery.cpp \
381     css/MediaQueryEvaluator.cpp \
382     css/MediaQueryExp.cpp \
383     css/ShadowValue.cpp \
384     css/StyleBase.cpp \
385     css/StyleList.cpp \
386     css/StyleSheet.cpp \
387     css/StyleSheetList.cpp \
388     dom/Attr.cpp \
389     dom/Attribute.cpp \
390     dom/BeforeTextInsertedEvent.cpp \
391     dom/BeforeUnloadEvent.cpp \
392     dom/CDATASection.cpp \
393     dom/CharacterData.cpp \
394     dom/ChildNodeList.cpp \
395     dom/Clipboard.cpp \
396     dom/ClipboardEvent.cpp \
397     dom/Comment.cpp \
398     dom/ContainerNode.cpp \
399     dom/CSSMappedAttributeDeclaration.cpp \
400     dom/Document.cpp \
401     dom/DocumentFragment.cpp \
402     dom/DocumentType.cpp \
403     dom/DOMImplementation.cpp \
404     dom/EditingText.cpp \
405     dom/Element.cpp \
406     dom/Entity.cpp \
407     dom/EntityReference.cpp \
408     dom/Event.cpp \
409     dom/EventNames.cpp \
410     dom/EventTarget.cpp \
411     dom/EventTargetNode.cpp \
412     dom/KeyboardEvent.cpp \
413     dom/MappedAttribute.cpp \
414     dom/MouseEvent.cpp \
415     dom/MouseRelatedEvent.cpp \
416     dom/MutationEvent.cpp \
417     dom/NamedAttrMap.cpp \
418     dom/NamedMappedAttrMap.cpp \
419     dom/NameNodeList.cpp \
420     dom/Node.cpp \
421     dom/NodeFilterCondition.cpp \
422     dom/NodeFilter.cpp \
423     dom/NodeIterator.cpp \
424     dom/NodeList.cpp \
425     dom/Notation.cpp \
426     dom/OverflowEvent.cpp \
427     dom/Position.cpp \
428     dom/PositionIterator.cpp \
429     dom/ProcessingInstruction.cpp \
430     dom/QualifiedName.cpp \
431     dom/Range.cpp \
432     dom/RegisteredEventListener.cpp \
433     dom/StyledElement.cpp \
434     dom/StyleElement.cpp \
435     dom/Text.cpp \
436     dom/TextEvent.cpp \
437     dom/Traversal.cpp \
438     dom/TreeWalker.cpp \
439     dom/UIEvent.cpp \
440     dom/UIEventWithKeyState.cpp \
441     dom/WheelEvent.cpp \
442     dom/XMLTokenizer.cpp \
443     editing/AppendNodeCommand.cpp \
444     editing/ApplyStyleCommand.cpp \
445     editing/BreakBlockquoteCommand.cpp \
446     editing/CommandByName.cpp \
447     editing/CompositeEditCommand.cpp \
448     editing/CreateLinkCommand.cpp \
449     editing/DeleteButtonController.cpp \
450     editing/DeleteButton.cpp \
451     editing/DeleteFromTextNodeCommand.cpp \
452     editing/DeleteSelectionCommand.cpp \
453     editing/EditCommand.cpp \
454     editing/Editor.cpp \
455     editing/FormatBlockCommand.cpp \
456     editing/htmlediting.cpp \
457     editing/HTMLInterchange.cpp \
458     editing/IndentOutdentCommand.cpp \
459     editing/InsertIntoTextNodeCommand.cpp \
460     editing/InsertLineBreakCommand.cpp \
461     editing/InsertListCommand.cpp \
462     editing/InsertNodeBeforeCommand.cpp \
463     editing/InsertParagraphSeparatorCommand.cpp \
464     editing/InsertTextCommand.cpp \
465     editing/JoinTextNodesCommand.cpp \
466     editing/JSEditor.cpp \
467     editing/markup.cpp \
468     editing/MergeIdenticalElementsCommand.cpp \
469     editing/ModifySelectionListLevel.cpp \
470     editing/MoveSelectionCommand.cpp \
471     editing/RemoveCSSPropertyCommand.cpp \
472     editing/RemoveNodeAttributeCommand.cpp \
473     editing/RemoveNodeCommand.cpp \
474     editing/RemoveNodePreservingChildrenCommand.cpp \
475     editing/ReplaceSelectionCommand.cpp \
476     editing/SelectionController.cpp \
477     editing/Selection.cpp \
478     editing/SetNodeAttributeCommand.cpp \
479     editing/SmartReplace.cpp \
480     editing/SplitElementCommand.cpp \
481     editing/SplitTextNodeCommand.cpp \
482     editing/SplitTextNodeContainingElementCommand.cpp \
483     editing/TextIterator.cpp \
484     editing/TypingCommand.cpp \
485     editing/UnlinkCommand.cpp \
486     editing/VisiblePosition.cpp \
487     editing/visible_units.cpp \
488     editing/WrapContentsInDummySpanCommand.cpp \
489     history/BackForwardList.cpp \
490     history/CachedPage.cpp \
491     history/HistoryItem.cpp \
492     history/PageCache.cpp \
493     html/CanvasGradient.cpp \
494     html/CanvasPattern.cpp \
495     html/CanvasRenderingContext2D.cpp \
496     html/CanvasStyle.cpp \
497     html/FormDataList.cpp \
498     html/HTMLAnchorElement.cpp \
499     html/HTMLAppletElement.cpp \
500     html/HTMLAreaElement.cpp \
501     html/HTMLBaseElement.cpp \
502     html/HTMLBaseFontElement.cpp \
503     html/HTMLBlockquoteElement.cpp \
504     html/HTMLBodyElement.cpp \
505     html/HTMLBRElement.cpp \
506     html/HTMLButtonElement.cpp \
507     html/HTMLCanvasElement.cpp \
508     html/HTMLCollection.cpp \
509     html/HTMLDirectoryElement.cpp \
510     html/HTMLDivElement.cpp \
511     html/HTMLDListElement.cpp \
512     html/HTMLDocument.cpp \
513     html/HTMLElement.cpp \
514     html/HTMLElementFactory.cpp \
515     html/HTMLEmbedElement.cpp \
516     html/HTMLFieldSetElement.cpp \
517     html/HTMLFontElement.cpp \
518     html/HTMLFormCollection.cpp \
519     html/HTMLFormElement.cpp \
520     html/HTMLFrameElementBase.cpp \
521     html/HTMLFrameElement.cpp \
522     html/HTMLFrameOwnerElement.cpp \
523     html/HTMLFrameSetElement.cpp \
524     html/HTMLGenericFormElement.cpp \
525     html/HTMLHeadElement.cpp \
526     html/HTMLHeadingElement.cpp \
527     html/HTMLHRElement.cpp \
528     html/HTMLHtmlElement.cpp \
529     html/HTMLIFrameElement.cpp \
530     html/HTMLImageElement.cpp \
531     html/HTMLImageLoader.cpp \
532     html/HTMLInputElement.cpp \
533     html/HTMLIsIndexElement.cpp \
534     html/HTMLKeygenElement.cpp \
535     html/HTMLLabelElement.cpp \
536     html/HTMLLegendElement.cpp \
537     html/HTMLLIElement.cpp \
538     html/HTMLLinkElement.cpp \
539     html/HTMLMapElement.cpp \
540     html/HTMLMarqueeElement.cpp \
541     html/HTMLMenuElement.cpp \
542     html/HTMLMetaElement.cpp \
543     html/HTMLModElement.cpp \
544     html/HTMLNameCollection.cpp \
545     html/HTMLObjectElement.cpp \
546     html/HTMLOListElement.cpp \
547     html/HTMLOptGroupElement.cpp \
548     html/HTMLOptionElement.cpp \
549     html/HTMLOptionsCollection.cpp \
550     html/HTMLParagraphElement.cpp \
551     html/HTMLParamElement.cpp \
552     html/HTMLParser.cpp \
553     html/HTMLParserErrorCodes.cpp \
554     html/HTMLPlugInElement.cpp \
555     html/HTMLPreElement.cpp \
556     html/HTMLQuoteElement.cpp \
557     html/HTMLScriptElement.cpp \
558     html/HTMLSelectElement.cpp \
559     html/HTMLStyleElement.cpp \
560     html/HTMLTableCaptionElement.cpp \
561     html/HTMLTableCellElement.cpp \
562     html/HTMLTableColElement.cpp \
563     html/HTMLTableElement.cpp \
564     html/HTMLTablePartElement.cpp \
565     html/HTMLTableRowElement.cpp \
566     html/HTMLTableSectionElement.cpp \
567     html/HTMLTextAreaElement.cpp \
568     html/HTMLTextFieldInnerElement.cpp \
569     html/HTMLTitleElement.cpp \
570     html/HTMLTokenizer.cpp \
571     html/HTMLUListElement.cpp \
572     html/HTMLViewSourceDocument.cpp \
573     loader/Cache.cpp \
574     loader/CachedCSSStyleSheet.cpp \
575     loader/CachedFont.cpp \
576     loader/CachedImage.cpp \
577     loader/CachedResourceClientWalker.cpp \
578     loader/CachedResource.cpp \
579     loader/CachedScript.cpp \
580     loader/CachedXSLStyleSheet.cpp \
581     loader/DocLoader.cpp \
582     loader/DocumentLoader.cpp \
583     loader/FormState.cpp \
584     loader/FrameLoader.cpp \
585     loader/FTPDirectoryDocument.cpp \
586     loader/FTPDirectoryParser.cpp \
587     loader/icon/IconLoader.cpp \
588     loader/ImageDocument.cpp \
589     loader/loader.cpp \
590     loader/MainResourceLoader.cpp \
591     loader/NavigationAction.cpp \
592     loader/NetscapePlugInStreamLoader.cpp \
593     loader/PluginDocument.cpp \
594     loader/ProgressTracker.cpp \
595     loader/Request.cpp \
596     loader/ResourceLoader.cpp \
597     loader/SubresourceLoader.cpp \
598     loader/TextDocument.cpp \
599     loader/TextResourceDecoder.cpp \
600     page/BarInfo.cpp \
601     page/Chrome.cpp \
602     page/ContextMenuController.cpp \
603     page/DOMSelection.cpp \
604     page/DOMWindow.cpp \
605     page/DragController.cpp \
606     page/EventHandler.cpp \
607     page/FocusController.cpp \
608     page/Frame.cpp \
609     page/FrameTree.cpp \
610     page/FrameView.cpp \
611     page/History.cpp \
612     page/InspectorController.cpp \
613     page/MouseEventWithHitTestResults.cpp \
614     page/Page.cpp \
615     page/Screen.cpp \
616     page/Settings.cpp \
617     platform/Arena.cpp \
618     platform/ArrayImpl.cpp \
619     platform/AtomicString.cpp \
620     platform/Base64.cpp \
621     platform/BidiContext.cpp \
622     platform/ContextMenu.cpp \
623     platform/CString.cpp \
624     platform/DeprecatedCString.cpp \
625     platform/DeprecatedPtrListImpl.cpp \
626     platform/DeprecatedString.cpp \
627     platform/DeprecatedStringList.cpp \
628     platform/DeprecatedValueListImpl.cpp \
629     platform/DragData.cpp \
630     platform/DragImage.cpp \
631     platform/FileChooser.cpp \
632     platform/FontFamily.cpp \
633     platform/graphics/AffineTransform.cpp \
634     platform/graphics/BitmapImage.cpp \
635     platform/graphics/Color.cpp \
636     platform/graphics/FloatPoint3D.cpp \
637     platform/graphics/FloatPoint.cpp \
638     platform/graphics/FloatRect.cpp \
639     platform/graphics/FloatSize.cpp \
640     platform/graphics/GraphicsContext.cpp \
641     platform/graphics/GraphicsTypes.cpp \
642     platform/graphics/ImageBuffer.cpp \
643     platform/graphics/Image.cpp \
644     platform/graphics/IntRect.cpp \
645     platform/graphics/Path.cpp \
646     platform/graphics/PathTraversalState.cpp \
647     platform/graphics/Pen.cpp \
648     platform/KURL.cpp \
649     platform/Logging.cpp \
650     platform/MIMETypeRegistry.cpp \
651     platform/network/AuthenticationChallenge.cpp \
652     platform/network/Credential.cpp \
653     platform/network/FormData.cpp \
654     platform/network/HTTPParsers.cpp \
655     platform/network/ProtectionSpace.cpp \
656     platform/network/ResourceHandle.cpp \
657     platform/network/ResourceRequestBase.cpp \
658     platform/network/ResourceResponse.cpp \
659     platform/RegularExpression.cpp \
660     platform/ScrollBar.cpp \
661 #    platform/SearchPopupMenu.cpp \
662     platform/SegmentedString.cpp \
663     platform/SharedBuffer.cpp \
664     platform/String.cpp \
665     platform/StringImpl.cpp \
666     platform/TextCodec.cpp \
667     platform/TextCodecLatin1.cpp \
668     platform/TextCodecUTF16.cpp \
669     platform/TextDecoder.cpp \
670     platform/TextEncoding.cpp \
671     platform/TextEncodingRegistry.cpp \
672     platform/TextStream.cpp \
673     platform/Timer.cpp \
674     platform/Widget.cpp \
675     rendering/AutoTableLayout.cpp \
676     rendering/bidi.cpp \
677     rendering/break_lines.cpp \
678     rendering/CounterNode.cpp \
679     rendering/EllipsisBox.cpp \
680     rendering/FixedTableLayout.cpp \
681     rendering/HitTestResult.cpp \
682     rendering/InlineBox.cpp \
683     rendering/InlineFlowBox.cpp \
684     rendering/InlineTextBox.cpp \
685     rendering/LayoutState.cpp \
686     rendering/ListMarkerBox.cpp \
687     rendering/RenderApplet.cpp \
688     rendering/RenderArena.cpp \
689     rendering/RenderBlock.cpp \
690     rendering/RenderBox.cpp \
691     rendering/RenderBR.cpp \
692     rendering/RenderButton.cpp \
693     rendering/RenderContainer.cpp \
694     rendering/RenderCounter.cpp \
695     rendering/RenderFieldset.cpp \
696     rendering/RenderFileUploadControl.cpp \
697     rendering/RenderFlexibleBox.cpp \
698     rendering/RenderFlow.cpp \
699     rendering/RenderFrame.cpp \
700     rendering/RenderFrameSet.cpp \
701     rendering/RenderHTMLCanvas.cpp \
702     rendering/RenderImage.cpp \
703     rendering/RenderInline.cpp \
704     rendering/RenderLayer.cpp \
705     rendering/RenderLegend.cpp \
706     rendering/RenderListBox.cpp \
707     rendering/RenderListItem.cpp \
708     rendering/RenderListMarker.cpp \
709     rendering/RenderMenuList.cpp \
710     rendering/RenderObject.cpp \
711     rendering/RenderPart.cpp \
712     rendering/RenderPartObject.cpp \
713     rendering/RenderReplaced.cpp \
714     rendering/RenderSlider.cpp \
715     rendering/RenderStyle.cpp \
716     rendering/RenderTableCell.cpp \
717     rendering/RenderTableCol.cpp \
718     rendering/RenderTable.cpp \
719     rendering/RenderTableRow.cpp \
720     rendering/RenderTableSection.cpp \
721     rendering/RenderTextControl.cpp \
722     rendering/RenderText.cpp \
723     rendering/RenderTextFragment.cpp \
724     rendering/RenderTheme.cpp \
725     rendering/RenderTreeAsText.cpp \
726     rendering/RenderView.cpp \
727     rendering/RenderWidget.cpp \
728     rendering/RenderWordBreak.cpp \
729     rendering/RootInlineBox.cpp \
730     rendering/SVGRenderTreeAsText.cpp \
731     xml/DOMParser.cpp \
732     xml/NativeXPathNSResolver.cpp \
733     xml/XMLHttpRequest.cpp \
734     xml/XMLSerializer.cpp \
735     xml/XPathEvaluator.cpp \
736     xml/XPathExpression.cpp \
737     xml/XPathExpressionNode.cpp \
738     xml/XPathFunctions.cpp \
739     xml/XPathNamespace.cpp \
740     xml/XPathNodeSet.cpp \
741     xml/XPathNSResolver.cpp \
742     xml/XPathParser.cpp \
743     xml/XPathPath.cpp \
744     xml/XPathPredicate.cpp \
745     xml/XPathResult.cpp \
746     xml/XPathStep.cpp \
747     xml/XPathUtil.cpp \
748     xml/XPathValue.cpp \
749     xml/XPathVariableReference.cpp \
750     xml/XSLImportRule.cpp \
751     xml/XSLStyleSheet.cpp \
752     xml/XSLTExtensions.cpp \
753     xml/XSLTProcessor.cpp
754
755 gtk-port {
756   SOURCES += \
757     platform/GlyphPageTreeNode.cpp \
758     platform/GlyphWidthMap.cpp \
759     platform/FontCache.cpp \
760     platform/Font.cpp \
761     platform/FontData.cpp \
762     platform/FontFallbackList.cpp 
763 }
764
765 qt-port {
766
767     HEADERS += \
768     $$PWD/platform/qt/QWebPopup.h \
769     $$PWD/platform/qt/MenuEventProxy.h \
770     $$PWD/platform/qt/SharedTimerQt.h \
771     $$PWD/../WebKit/qt/Api/qwebframe.h \
772     $$PWD/../WebKit/qt/Api/qwebpage.h \
773     $$PWD/../WebKit/qt/Api/qwebnetworkinterface.h \
774     $$PWD/../WebKit/qt/Api/qwebnetworkinterface_p.h \
775     $$PWD/../WebKit/qt/Api/qwebobjectplugin.h \
776     $$PWD/../WebKit/qt/Api/qwebobjectplugin_p.h \
777     $$PWD/../WebKit/qt/Api/qwebobjectpluginconnector.h \
778     $$PWD/../WebKit/qt/Api/qwebhistoryinterface.h \
779     $$PWD/../WebKit/qt/Api/qcookiejar.h \
780     $$PWD/../WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h
781
782     SOURCES += \
783     page/qt/DragControllerQt.cpp \
784     page/qt/EventHandlerQt.cpp \
785     page/qt/FrameQt.cpp \
786     loader/qt/DocumentLoaderQt.cpp \
787     platform/graphics/qt/AffineTransformQt.cpp \
788     platform/graphics/qt/ColorQt.cpp \
789     platform/graphics/qt/FloatPointQt.cpp \
790     platform/graphics/qt/FloatRectQt.cpp \
791     platform/graphics/qt/GraphicsContextQt.cpp \
792     platform/graphics/qt/IconQt.cpp \
793     platform/graphics/qt/ImageBufferQt.cpp \
794     platform/graphics/qt/ImageDecoderQt.cpp \
795     platform/graphics/qt/ImageQt.cpp \
796     platform/graphics/qt/ImageSourceQt.cpp \
797     platform/graphics/qt/IntPointQt.cpp \
798     platform/graphics/qt/IntRectQt.cpp \
799     platform/graphics/qt/IntSizeQt.cpp \
800     platform/graphics/qt/PathQt.cpp \
801     platform/network/qt/ResourceHandleQt.cpp \
802     editing/qt/EditorQt.cpp \
803     history/qt/CachedPageQt.cpp \
804     platform/qt/ClipboardQt.cpp \
805     platform/qt/ContextMenuItemQt.cpp \
806     platform/qt/ContextMenuQt.cpp \
807     platform/qt/CookieJarQt.cpp \
808     platform/qt/CursorQt.cpp \
809     platform/qt/DragDataQt.cpp \
810     platform/qt/DragImageQt.cpp \
811     platform/qt/FileChooserQt.cpp \
812     platform/qt/FileSystemQt.cpp \
813     platform/qt/FontQt.cpp \
814     platform/qt/Localizations.cpp \
815     platform/qt/MIMETypeRegistryQt.cpp \
816     platform/qt/PasteboardQt.cpp \
817     platform/qt/PlatformKeyboardEventQt.cpp \
818     platform/qt/PlatformMouseEventQt.cpp \
819     platform/qt/PlatformScreenQt.cpp \
820     platform/qt/PlatformScrollBarQt.cpp \
821     platform/qt/PlugInInfoStoreQt.cpp \
822     platform/qt/PopupMenuQt.cpp \
823     platform/qt/QWebPopup.cpp \
824     platform/qt/RenderThemeQt.cpp \
825     platform/qt/ScrollViewQt.cpp \
826     platform/qt/SearchPopupMenuQt.cpp \
827     platform/qt/SharedTimerQt.cpp \
828     platform/qt/SoundQt.cpp \
829     platform/qt/StringQt.cpp \
830     platform/qt/TemporaryLinkStubs.cpp \
831     platform/qt/TextBoundaries.cpp \
832     platform/qt/TextBreakIteratorQt.cpp \
833     platform/qt/TextCodecQt.cpp \
834     platform/qt/ThreadingQt.cpp \
835     platform/qt/WheelEventQt.cpp \
836     platform/qt/WidgetQt.cpp \
837     ../WebKit/qt/WebCoreSupport/ChromeClientQt.cpp \
838     ../WebKit/qt/WebCoreSupport/ContextMenuClientQt.cpp \
839     ../WebKit/qt/WebCoreSupport/DragClientQt.cpp \
840     ../WebKit/qt/WebCoreSupport/EditorClientQt.cpp \
841     ../WebKit/qt/WebCoreSupport/EditCommandQt.cpp \
842     ../WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp \
843     ../WebKit/qt/WebCoreSupport/InspectorClientQt.cpp \
844     ../WebKit/qt/Api/qwebframe.cpp \
845     ../WebKit/qt/Api/qwebnetworkinterface.cpp \
846     ../WebKit/qt/Api/qcookiejar.cpp \
847     ../WebKit/qt/Api/qwebpage.cpp \
848     ../WebKit/qt/Api/qwebpagehistory.cpp \
849     ../WebKit/qt/Api/qwebsettings.cpp \
850     ../WebKit/qt/Api/qwebobjectplugin.cpp \
851     ../WebKit/qt/Api/qwebobjectpluginconnector.cpp \
852     ../WebKit/qt/Api/qwebhistoryinterface.cpp
853
854     unix: SOURCES += platform/qt/SystemTimeQt.cpp
855     else: SOURCES += platform/win/SystemTimeWin.cpp
856 }
857
858 gtk-port {
859     HEADERS += \
860         ../WebCore/platform/gtk/ClipboardGtk.h \
861         ../WebKit/gtk/Api/webkitgtkdefines.h \
862         ../WebKit/gtk/Api/webkitgtkframe.h \
863         ../WebKit/gtk/Api/webkitgtkglobal.h \
864         ../WebKit/gtk/Api/webkitgtknetworkrequest.h \
865         ../WebKit/gtk/Api/webkitgtkpage.h \
866         ../WebKit/gtk/Api/webkitgtkprivate.h \
867         ../WebKit/gtk/Api/webkitgtksettings.h \
868         ../WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
869         ../WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
870         ../WebKit/gtk/WebCoreSupport/DragClientGtk.h \
871         ../WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
872         ../WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
873         ../WebKit/gtk/WebCoreSupport/InspectorClientGtk.h
874     SOURCES += \
875         platform/StringTruncator.cpp \
876         platform/TextCodecICU.cpp \
877         platform/TextBreakIteratorICU.cpp \
878         page/gtk/EventHandlerGtk.cpp \
879         page/gtk/FrameGtk.cpp \
880         page/gtk/DragControllerGtk.cpp \
881         loader/gtk/DocumentLoaderGtk.cpp \
882         platform/gtk/ClipboardGtk.cpp \
883         platform/gtk/CookieJarGtk.cpp \
884         platform/gtk/CursorGtk.cpp \
885         platform/gtk/ContextMenuGtk.cpp \
886         platform/gtk/ContextMenuItemGtk.cpp \
887         platform/gtk/DragDataGtk.cpp \
888         platform/gtk/DragImageGtk.cpp \
889         platform/gtk/FileChooserGtk.cpp \
890         platform/gtk/FileSystemGtk.cpp \
891         platform/gtk/FontCacheGtk.cpp \
892         platform/gtk/FontDataGtk.cpp \
893         platform/gtk/FontGtk.cpp \
894         platform/gtk/FontPlatformDataGtk.cpp \
895         platform/gtk/GlyphPageTreeNodeGtk.cpp \
896         platform/gtk/KeyEventGtk.cpp \
897         platform/gtk/LocalizedStringsGtk.cpp \
898         platform/gtk/LoggingGtk.cpp \
899         platform/gtk/MIMETypeRegistryGtk.cpp \
900         platform/gtk/MouseEventGtk.cpp \
901         platform/gtk/PasteboardGtk.cpp \
902         platform/gtk/PlatformScreenGtk.cpp \
903         platform/gtk/PlatformScrollBarGtk.cpp \
904         platform/gtk/PopupMenuGtk.cpp \
905         platform/gtk/RenderThemeGtk.cpp \
906         platform/gtk/SearchPopupMenuGtk.cpp \
907         platform/gtk/ScrollViewGtk.cpp \
908         platform/gtk/SharedTimerLinux.cpp \
909         platform/gtk/SoundGtk.cpp \
910         platform/gtk/SystemTimeLinux.cpp \
911         platform/gtk/TemporaryLinkStubs.cpp \
912         platform/gtk/WheelEventGtk.cpp \
913         platform/gtk/WidgetGtk.cpp \
914         platform/graphics/gtk/IconGtk.cpp \
915         platform/graphics/gtk/ImageGtk.cpp \
916         platform/network/curl/ResourceHandleCurl.cpp \
917         platform/network/curl/ResourceHandleManager.cpp \
918         platform/graphics/cairo/AffineTransformCairo.cpp \
919         platform/graphics/cairo/GraphicsContextCairo.cpp \
920         platform/graphics/cairo/ImageBufferCairo.cpp \
921         platform/graphics/cairo/ImageCairo.cpp \
922         platform/graphics/cairo/ImageSourceCairo.cpp \
923         platform/graphics/cairo/PathCairo.cpp \
924         platform/image-decoders/gif/GIFImageDecoder.cpp \
925         platform/image-decoders/gif/GIFImageReader.cpp  \
926         platform/image-decoders/png/PNGImageDecoder.cpp \
927         platform/image-decoders/jpeg/JPEGImageDecoder.cpp \
928         platform/image-decoders/bmp/BMPImageDecoder.cpp \
929         platform/image-decoders/ico/ICOImageDecoder.cpp \
930         platform/image-decoders/xbm/XBMImageDecoder.cpp \
931         ../WebKit/gtk/Api/webkitgtkframe.cpp \
932         ../WebKit/gtk/Api/webkitgtkglobal.cpp \
933         ../WebKit/gtk/Api/webkitgtknetworkrequest.cpp \
934         ../WebKit/gtk/Api/webkitgtkpage.cpp \
935         ../WebKit/gtk/Api/webkitgtkprivate.cpp \
936         ../WebKit/gtk/Api/webkitgtksettings.cpp \
937         ../WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
938         ../WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
939         ../WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
940         ../WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \
941         ../WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \
942         ../WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp
943 }
944  
945 contains(DEFINES, ENABLE_ICONDATABASE=1) {
946     qt-port: INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/sqlite/
947     LIBS += -lsqlite3
948     SOURCES += \
949         loader/icon/IconDatabase.cpp \
950         loader/icon/IconRecord.cpp \
951         loader/icon/PageURLRecord.cpp \
952         loader/icon/SQLDatabase.cpp \
953         loader/icon/SQLStatement.cpp \
954         loader/icon/SQLTransaction.cpp
955 } else {
956     SOURCES += \
957         loader/icon/IconDatabaseNone.cpp
958 }
959
960 contains(DEFINES, ENABLE_XPATH=1) {
961     FEATURE_DEFINES_JAVASCRIPT += ENABLE_XPATH=1
962
963     XPATHBISON = $$PWD/xml/XPathGrammar.y
964
965     IDL_BINDINGS += \
966         xml/XPathNSResolver.idl \
967         xml/XPathExpression.idl \
968         xml/XPathResult.idl \
969         xml/XPathEvaluator.idl
970 }
971
972 unix:!mac:CONFIG += link_pkgconfig
973
974 contains(DEFINES, ENABLE_XSLT=1) {
975     FEATURE_DEFINES_JAVASCRIPT += ENABLE_XSLT=1
976     PKGCONFIG += libxml-2.0 libxslt
977
978     macx {
979         INCLUDEPATH += /usr/include/libxml2
980         LIBS += -lxml2 -lxslt
981     }
982
983     win32-msvc* {
984         LIBS += -llibxml2 -llibxslt
985     }
986 }
987
988 contains(DEFINES, ENABLE_XBL=1) {
989     FEATURE_DEFINES_JAVASCRIPT += ENABLE_XBL=1
990 }
991
992 contains(DEFINES, ENABLE_SVG=1) {
993     FEATURE_DEFINES_JAVASCRIPT += ENABLE_SVG=1
994
995     DEPENDPATH += ksvg2/css ksvg2/events ksvg2/misc ksvg2/svg platform/graphics/svg
996     qt-port {
997         DEPENDPATH += platform/graphics/svg/qt
998     }
999
1000     gtk-port {
1001         DEPENDPATH += platform/graphics/svg/cairo
1002     }
1003
1004     SVG_NAMES = $$PWD/ksvg2/svg/svgtags.in
1005
1006     XLINK_NAMES = $$PWD/ksvg2/misc/xlinkattrs.in
1007
1008     IDL_BINDINGS += ksvg2/events/SVGZoomEvent.idl \
1009         ksvg2/svg/SVGAElement.idl \
1010         ksvg2/svg/SVGAngle.idl \
1011         ksvg2/svg/SVGAnimateColorElement.idl \
1012         ksvg2/svg/SVGAnimatedAngle.idl \
1013         ksvg2/svg/SVGAnimatedBoolean.idl \
1014         ksvg2/svg/SVGAnimatedEnumeration.idl \
1015         ksvg2/svg/SVGAnimatedInteger.idl \
1016         ksvg2/svg/SVGAnimatedLength.idl \
1017         ksvg2/svg/SVGAnimatedLengthList.idl \
1018         ksvg2/svg/SVGAnimatedNumber.idl \
1019         ksvg2/svg/SVGAnimatedNumberList.idl \
1020         ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl \
1021         ksvg2/svg/SVGAnimatedRect.idl \
1022         ksvg2/svg/SVGAnimatedString.idl \
1023         ksvg2/svg/SVGAnimatedTransformList.idl \
1024         ksvg2/svg/SVGAnimateElement.idl \
1025         ksvg2/svg/SVGAnimateTransformElement.idl \
1026         ksvg2/svg/SVGAnimationElement.idl \
1027         ksvg2/svg/SVGCircleElement.idl \
1028         ksvg2/svg/SVGClipPathElement.idl \
1029         ksvg2/svg/SVGColor.idl \
1030         ksvg2/svg/SVGComponentTransferFunctionElement.idl \
1031         ksvg2/svg/SVGCursorElement.idl \
1032         ksvg2/svg/SVGDefsElement.idl \
1033         ksvg2/svg/SVGDescElement.idl \
1034         ksvg2/svg/SVGDocument.idl \
1035         ksvg2/svg/SVGElement.idl \
1036         ksvg2/svg/SVGElementInstance.idl \
1037         ksvg2/svg/SVGElementInstanceList.idl \
1038         ksvg2/svg/SVGEllipseElement.idl \
1039         ksvg2/svg/SVGException.idl \
1040         ksvg2/svg/SVGFEBlendElement.idl \
1041         ksvg2/svg/SVGFEColorMatrixElement.idl \
1042         ksvg2/svg/SVGFEComponentTransferElement.idl \
1043         ksvg2/svg/SVGFECompositeElement.idl \
1044         ksvg2/svg/SVGFEDiffuseLightingElement.idl \
1045         ksvg2/svg/SVGFEDisplacementMapElement.idl \
1046         ksvg2/svg/SVGFEDistantLightElement.idl \
1047         ksvg2/svg/SVGFEFloodElement.idl \
1048         ksvg2/svg/SVGFEFuncAElement.idl \
1049         ksvg2/svg/SVGFEFuncBElement.idl \
1050         ksvg2/svg/SVGFEFuncGElement.idl \
1051         ksvg2/svg/SVGFEFuncRElement.idl \
1052         ksvg2/svg/SVGFEGaussianBlurElement.idl \
1053         ksvg2/svg/SVGFEImageElement.idl \
1054         ksvg2/svg/SVGFEMergeElement.idl \
1055         ksvg2/svg/SVGFEMergeNodeElement.idl \
1056         ksvg2/svg/SVGFEOffsetElement.idl \
1057         ksvg2/svg/SVGFEPointLightElement.idl \
1058         ksvg2/svg/SVGFESpecularLightingElement.idl \
1059         ksvg2/svg/SVGFESpotLightElement.idl \
1060         ksvg2/svg/SVGFETileElement.idl \
1061         ksvg2/svg/SVGFETurbulenceElement.idl \
1062         ksvg2/svg/SVGFilterElement.idl \
1063         ksvg2/svg/SVGForeignObjectElement.idl \
1064         ksvg2/svg/SVGGElement.idl \
1065         ksvg2/svg/SVGGradientElement.idl \
1066         ksvg2/svg/SVGImageElement.idl \
1067         ksvg2/svg/SVGLength.idl \
1068         ksvg2/svg/SVGLengthList.idl \
1069         ksvg2/svg/SVGLinearGradientElement.idl \
1070         ksvg2/svg/SVGLineElement.idl \
1071         ksvg2/svg/SVGMarkerElement.idl \
1072         ksvg2/svg/SVGMaskElement.idl \
1073         ksvg2/svg/SVGMatrix.idl \
1074         ksvg2/svg/SVGMetadataElement.idl \
1075         ksvg2/svg/SVGNumber.idl \
1076         ksvg2/svg/SVGNumberList.idl \
1077         ksvg2/svg/SVGPaint.idl \
1078         ksvg2/svg/SVGPathElement.idl \
1079         ksvg2/svg/SVGPathSegArcAbs.idl \
1080         ksvg2/svg/SVGPathSegArcRel.idl \
1081         ksvg2/svg/SVGPathSegClosePath.idl \
1082         ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl \
1083         ksvg2/svg/SVGPathSegCurvetoCubicRel.idl \
1084         ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl \
1085         ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl \
1086         ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl \
1087         ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl \
1088         ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl \
1089         ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl \
1090         ksvg2/svg/SVGPathSeg.idl \
1091         ksvg2/svg/SVGPathSegLinetoAbs.idl \
1092         ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl \
1093         ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl \
1094         ksvg2/svg/SVGPathSegLinetoRel.idl \
1095         ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl \
1096         ksvg2/svg/SVGPathSegLinetoVerticalRel.idl \
1097         ksvg2/svg/SVGPathSegList.idl \
1098         ksvg2/svg/SVGPathSegMovetoAbs.idl \
1099         ksvg2/svg/SVGPathSegMovetoRel.idl \
1100         ksvg2/svg/SVGPatternElement.idl \
1101         ksvg2/svg/SVGPoint.idl \
1102         ksvg2/svg/SVGPointList.idl \
1103         ksvg2/svg/SVGPolygonElement.idl \
1104         ksvg2/svg/SVGPolylineElement.idl \
1105         ksvg2/svg/SVGPreserveAspectRatio.idl \
1106         ksvg2/svg/SVGRadialGradientElement.idl \
1107         ksvg2/svg/SVGRectElement.idl \
1108         ksvg2/svg/SVGRect.idl \
1109         ksvg2/svg/SVGRenderingIntent.idl \
1110         ksvg2/svg/SVGScriptElement.idl \
1111         ksvg2/svg/SVGSetElement.idl \
1112         ksvg2/svg/SVGStopElement.idl \
1113         ksvg2/svg/SVGStringList.idl \
1114         ksvg2/svg/SVGStyleElement.idl \
1115         ksvg2/svg/SVGSVGElement.idl \
1116         ksvg2/svg/SVGSwitchElement.idl \
1117         ksvg2/svg/SVGSymbolElement.idl \
1118         ksvg2/svg/SVGTextContentElement.idl \
1119         ksvg2/svg/SVGTextElement.idl \
1120         ksvg2/svg/SVGTextPathElement.idl \
1121         ksvg2/svg/SVGTextPositioningElement.idl \
1122         ksvg2/svg/SVGTitleElement.idl \
1123         ksvg2/svg/SVGTransform.idl \
1124         ksvg2/svg/SVGTransformList.idl \
1125         ksvg2/svg/SVGTRefElement.idl \
1126         ksvg2/svg/SVGTSpanElement.idl \
1127         ksvg2/svg/SVGUnitTypes.idl \
1128         ksvg2/svg/SVGUseElement.idl \
1129         ksvg2/svg/SVGViewElement.idl 
1130
1131     SOURCES += \
1132 # TODO: this-one-is-not-auto-added! FIXME! tmp/SVGElementFactory.cpp \
1133         bindings/js/JSSVGElementWrapperFactory.cpp \
1134         bindings/js/JSSVGMatrixCustom.cpp \
1135         bindings/js/JSSVGPathSegCustom.cpp \
1136         bindings/js/JSSVGPathSegListCustom.cpp \
1137         bindings/js/JSSVGPointListCustom.cpp \
1138         bindings/js/JSSVGTransformListCustom.cpp \
1139         ksvg2/css/SVGCSSComputedStyleDeclaration.cpp \
1140         ksvg2/css/SVGCSSParser.cpp \
1141         ksvg2/css/SVGCSSStyleSelector.cpp \
1142         ksvg2/css/SVGRenderStyle.cpp \
1143         ksvg2/css/SVGRenderStyleDefs.cpp \
1144         ksvg2/events/JSSVGLazyEventListener.cpp \
1145         ksvg2/events/SVGZoomEvent.cpp \
1146         ksvg2/misc/PointerEventsHitRules.cpp \
1147         ksvg2/misc/SVGDocumentExtensions.cpp \
1148         ksvg2/misc/SVGImageLoader.cpp \
1149         ksvg2/misc/SVGTimer.cpp \
1150         ksvg2/misc/TimeScheduler.cpp \
1151         ksvg2/svg/ColorDistance.cpp \
1152         ksvg2/svg/SVGAElement.cpp \
1153         ksvg2/svg/SVGAngle.cpp \
1154         ksvg2/svg/SVGAnimateColorElement.cpp \
1155         ksvg2/svg/SVGAnimatedPathData.cpp \
1156         ksvg2/svg/SVGAnimatedPoints.cpp \
1157         ksvg2/svg/SVGAnimateElement.cpp \
1158         ksvg2/svg/SVGAnimateMotionElement.cpp \
1159         ksvg2/svg/SVGAnimateTransformElement.cpp \
1160         ksvg2/svg/SVGAnimationElement.cpp \
1161         ksvg2/svg/SVGCircleElement.cpp \
1162         ksvg2/svg/SVGClipPathElement.cpp \
1163         ksvg2/svg/SVGColor.cpp \
1164         ksvg2/svg/SVGComponentTransferFunctionElement.cpp \
1165         ksvg2/svg/SVGCursorElement.cpp \
1166         ksvg2/svg/SVGDefsElement.cpp \
1167         ksvg2/svg/SVGDescElement.cpp \
1168         ksvg2/svg/SVGDocument.cpp \
1169         ksvg2/svg/SVGElement.cpp \
1170         ksvg2/svg/SVGElementInstance.cpp \
1171         ksvg2/svg/SVGElementInstanceList.cpp \
1172         ksvg2/svg/SVGEllipseElement.cpp \
1173         ksvg2/svg/SVGExternalResourcesRequired.cpp \
1174         ksvg2/svg/SVGFEBlendElement.cpp \
1175         ksvg2/svg/SVGFEColorMatrixElement.cpp \
1176         ksvg2/svg/SVGFEComponentTransferElement.cpp \
1177         ksvg2/svg/SVGFECompositeElement.cpp \
1178         ksvg2/svg/SVGFEDiffuseLightingElement.cpp \
1179         ksvg2/svg/SVGFEDisplacementMapElement.cpp \
1180         ksvg2/svg/SVGFEDistantLightElement.cpp \
1181         ksvg2/svg/SVGFEFloodElement.cpp \
1182         ksvg2/svg/SVGFEFuncAElement.cpp \
1183         ksvg2/svg/SVGFEFuncBElement.cpp \
1184         ksvg2/svg/SVGFEFuncGElement.cpp \
1185         ksvg2/svg/SVGFEFuncRElement.cpp \
1186         ksvg2/svg/SVGFEGaussianBlurElement.cpp \
1187         ksvg2/svg/SVGFEImageElement.cpp \
1188         ksvg2/svg/SVGFELightElement.cpp \
1189         ksvg2/svg/SVGFEMergeElement.cpp \
1190         ksvg2/svg/SVGFEMergeNodeElement.cpp \
1191         ksvg2/svg/SVGFEOffsetElement.cpp \
1192         ksvg2/svg/SVGFEPointLightElement.cpp \
1193         ksvg2/svg/SVGFESpecularLightingElement.cpp \
1194         ksvg2/svg/SVGFESpotLightElement.cpp \
1195         ksvg2/svg/SVGFETileElement.cpp \
1196         ksvg2/svg/SVGFETurbulenceElement.cpp \
1197         ksvg2/svg/SVGFilterElement.cpp \
1198         ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp \
1199         ksvg2/svg/SVGFitToViewBox.cpp \
1200         ksvg2/svg/SVGForeignObjectElement.cpp \
1201         ksvg2/svg/SVGGElement.cpp \
1202         ksvg2/svg/SVGGradientElement.cpp \
1203         ksvg2/svg/SVGImageElement.cpp \
1204         ksvg2/svg/SVGLangSpace.cpp \
1205         ksvg2/svg/SVGLength.cpp \
1206         ksvg2/svg/SVGLengthList.cpp \
1207         ksvg2/svg/SVGLinearGradientElement.cpp \
1208         ksvg2/svg/SVGLineElement.cpp \
1209         ksvg2/svg/SVGLocatable.cpp \
1210         ksvg2/svg/SVGMarkerElement.cpp \
1211         ksvg2/svg/SVGMaskElement.cpp \
1212         ksvg2/svg/SVGMetadataElement.cpp \
1213         ksvg2/svg/SVGMPathElement.cpp \
1214         ksvg2/svg/SVGNumberList.cpp \
1215         ksvg2/svg/SVGPaint.cpp \
1216         ksvg2/svg/SVGParserUtilities.cpp \
1217         ksvg2/svg/SVGPathElement.cpp \
1218         ksvg2/svg/SVGPathSegArc.cpp \
1219         ksvg2/svg/SVGPathSegClosePath.cpp \
1220         ksvg2/svg/SVGPathSegCurvetoCubic.cpp \
1221         ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp \
1222         ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp \
1223         ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp \
1224         ksvg2/svg/SVGPathSegLineto.cpp \
1225         ksvg2/svg/SVGPathSegLinetoHorizontal.cpp \
1226         ksvg2/svg/SVGPathSegLinetoVertical.cpp \
1227         ksvg2/svg/SVGPathSegList.cpp \
1228         ksvg2/svg/SVGPathSegMoveto.cpp \
1229         ksvg2/svg/SVGPatternElement.cpp \
1230         ksvg2/svg/SVGPointList.cpp \
1231         ksvg2/svg/SVGPolyElement.cpp \
1232         ksvg2/svg/SVGPolygonElement.cpp \
1233         ksvg2/svg/SVGPolylineElement.cpp \
1234         ksvg2/svg/SVGPreserveAspectRatio.cpp \
1235         ksvg2/svg/SVGRadialGradientElement.cpp \
1236         ksvg2/svg/SVGRectElement.cpp \
1237         ksvg2/svg/SVGScriptElement.cpp \
1238         ksvg2/svg/SVGSetElement.cpp \
1239         ksvg2/svg/SVGStopElement.cpp \
1240         ksvg2/svg/SVGStringList.cpp \
1241         ksvg2/svg/SVGStylable.cpp \
1242         ksvg2/svg/SVGStyledElement.cpp \
1243         ksvg2/svg/SVGStyledLocatableElement.cpp \
1244         ksvg2/svg/SVGStyledTransformableElement.cpp \
1245         ksvg2/svg/SVGStyleElement.cpp \
1246         ksvg2/svg/SVGSVGElement.cpp \
1247         ksvg2/svg/SVGSwitchElement.cpp \
1248         ksvg2/svg/SVGSymbolElement.cpp \
1249         ksvg2/svg/SVGTests.cpp \
1250         ksvg2/svg/SVGTextContentElement.cpp \
1251         ksvg2/svg/SVGTextElement.cpp \
1252         ksvg2/svg/SVGTextPathElement.cpp \
1253         ksvg2/svg/SVGTextPositioningElement.cpp \
1254         ksvg2/svg/SVGTitleElement.cpp \
1255         ksvg2/svg/SVGTransformable.cpp \
1256         ksvg2/svg/SVGTransform.cpp \
1257         ksvg2/svg/SVGTransformDistance.cpp \
1258         ksvg2/svg/SVGTransformList.cpp \
1259         ksvg2/svg/SVGTRefElement.cpp \
1260         ksvg2/svg/SVGTSpanElement.cpp \
1261         ksvg2/svg/SVGURIReference.cpp \
1262         ksvg2/svg/SVGUseElement.cpp \
1263         ksvg2/svg/SVGViewElement.cpp \
1264         ksvg2/svg/SVGViewSpec.cpp \
1265         ksvg2/svg/SVGZoomAndPan.cpp \
1266         platform/graphics/svg/filters/SVGFEBlend.cpp \
1267         platform/graphics/svg/filters/SVGFEColorMatrix.cpp \
1268         platform/graphics/svg/filters/SVGFEComponentTransfer.cpp \
1269         platform/graphics/svg/filters/SVGFEComposite.cpp \
1270         platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp \
1271         platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp \
1272         platform/graphics/svg/filters/SVGFEDisplacementMap.cpp \
1273         platform/graphics/svg/filters/SVGFEFlood.cpp \
1274         platform/graphics/svg/filters/SVGFEGaussianBlur.cpp \
1275         platform/graphics/svg/filters/SVGFEImage.cpp \
1276         platform/graphics/svg/filters/SVGFEMerge.cpp \
1277         platform/graphics/svg/filters/SVGFEMorphology.cpp \
1278         platform/graphics/svg/filters/SVGFEOffset.cpp \
1279         platform/graphics/svg/filters/SVGFESpecularLighting.cpp \
1280         platform/graphics/svg/filters/SVGFETurbulence.cpp \
1281         platform/graphics/svg/filters/SVGFilterEffect.cpp \
1282         platform/graphics/svg/filters/SVGLightSource.cpp \
1283         platform/graphics/svg/SVGImage.cpp \
1284         platform/graphics/svg/SVGPaintServer.cpp \
1285         platform/graphics/svg/SVGPaintServerGradient.cpp \
1286         platform/graphics/svg/SVGPaintServerLinearGradient.cpp \
1287         platform/graphics/svg/SVGPaintServerPattern.cpp \
1288         platform/graphics/svg/SVGPaintServerRadialGradient.cpp \
1289         platform/graphics/svg/SVGPaintServerSolid.cpp \
1290         platform/graphics/svg/SVGResourceClipper.cpp \
1291         platform/graphics/svg/SVGResource.cpp \
1292         platform/graphics/svg/SVGResourceFilter.cpp \
1293         platform/graphics/svg/SVGResourceMarker.cpp \
1294         platform/graphics/svg/SVGResourceMasker.cpp \
1295         rendering/RenderForeignObject.cpp \
1296         rendering/RenderPath.cpp \
1297         rendering/RenderSVGBlock.cpp \
1298         rendering/RenderSVGContainer.cpp \
1299         rendering/RenderSVGGradientStop.cpp \
1300         rendering/RenderSVGHiddenContainer.cpp \
1301         rendering/RenderSVGImage.cpp \
1302         rendering/RenderSVGInline.cpp \
1303         rendering/RenderSVGInlineText.cpp \
1304         rendering/RenderSVGRoot.cpp \
1305         rendering/RenderSVGText.cpp \
1306         rendering/RenderSVGTextPath.cpp \
1307         rendering/RenderSVGTSpan.cpp \
1308         rendering/RenderSVGViewportContainer.cpp \
1309         rendering/SVGCharacterLayoutInfo.cpp \
1310         rendering/SVGInlineFlowBox.cpp \
1311         rendering/SVGInlineTextBox.cpp \
1312         rendering/SVGRenderSupport.cpp \
1313         rendering/SVGRootInlineBox.cpp
1314
1315 qt-port:SOURCES += \
1316         platform/graphics/svg/qt/RenderPathQt.cpp \
1317         platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp \
1318         platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp \
1319         platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp \
1320         platform/graphics/svg/qt/SVGPaintServerQt.cpp \
1321         platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp \
1322         platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp \
1323         platform/graphics/svg/qt/SVGResourceClipperQt.cpp \
1324         platform/graphics/svg/qt/SVGResourceFilterQt.cpp \
1325         platform/graphics/svg/qt/SVGResourceMaskerQt.cpp
1326
1327 gtk-port:SOURCES += \
1328         platform/graphics/svg/cairo/RenderPathCairo.cpp \
1329         platform/graphics/svg/cairo/SVGPaintServerCairo.cpp \
1330         platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp \
1331         platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp \
1332         platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp \
1333         platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp \
1334         platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp
1335
1336         # GENERATOR 5-C:
1337         svgnames_a.output = tmp/SVGNames.cpp
1338         svgnames_a.commands = perl $$PWD/ksvg2/scripts/make_names.pl --tags $$PWD/ksvg2/svg/svgtags.in --attrs $$PWD/ksvg2/svg/svgattrs.in --namespace SVG --cppNamespace WebCore --namespaceURI 'http://www.w3.org/2000/svg' --factory --attrsNullNamespace --preprocessor \"$${QMAKE_MOC} -E\" --output tmp
1339         svgnames_a.input = SVG_NAMES
1340         svgnames_a.dependency_type = TYPE_C
1341         svgnames_a.CONFIG = target_predeps
1342         svgnames_a.variable_out = GENERATED_SOURCES
1343         svgnames_a.clean = ${QMAKE_FILE_OUT} tmp/SVGNames.h
1344         QMAKE_EXTRA_COMPILERS += svgnames_a
1345         svgnames_b.output = tmp/SVGElementFactory.cpp
1346         svgnames_b.commands = @echo -n ''
1347         svgnames_b.input = SVG_NAMES
1348         svgnames_b.depends = tmp/SVGNames.cpp
1349         svgnames_b.CONFIG = target_predeps
1350         svgnames_b.variable_out = GENERATED_SOURCES
1351         svgnames_b.clean += tmp/SVGElementFactory.h ${QMAKE_FILE_OUT}
1352         QMAKE_EXTRA_COMPILERS += svgnames_b
1353
1354         # GENERATOR 5-D:
1355         xlinknames.output = tmp/XLinkNames.cpp
1356         xlinknames.commands = perl $$PWD/ksvg2/scripts/make_names.pl --attrs $$PWD/ksvg2/misc/xlinkattrs.in --namespace XLink --cppNamespace WebCore --namespaceURI 'http://www.w3.org/1999/xlink' --preprocessor \"$${QMAKE_MOC} -E\" --output tmp
1357         xlinknames.input = XLINK_NAMES
1358         xlinknames.dependency_type = TYPE_C
1359         xlinknames.CONFIG = target_predeps
1360         xlinknames.variable_out = GENERATED_SOURCES
1361         xlinknames.clean = ${QMAKE_FILE_OUT} tmp/XLinkNames.h
1362         QMAKE_EXTRA_COMPILERS += xlinknames
1363
1364     # GENERATOR 6-A:
1365     cssprops.output = tmp/${QMAKE_FILE_BASE}.c
1366     cssprops.input = WALDOCSSPROPS
1367     cssprops.commands = cat ${QMAKE_FILE_NAME} $$SVGCSSPROPERTIES > tmp/${QMAKE_FILE_BASE}.in && cd tmp && perl $$PWD/css/makeprop.pl && $(DEL_FILE) ${QMAKE_FILE_BASE}.strip ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.gperf
1368     cssprops.CONFIG = target_predeps no_link
1369     cssprops.depend = ${QMAKE_FILE_NAME} SVGCSSPROPERTIES
1370     cssprops.clean = ${QMAKE_FILE_OUT} tmp/${QMAKE_FILE_BASE}.h
1371     QMAKE_EXTRA_COMPILERS += cssprops
1372
1373     # GENERATOR 6-B:
1374     cssvalues.output = tmp/${QMAKE_FILE_BASE}.c
1375     cssvalues.input = WALDOCSSVALUES
1376     cssvalues.commands = perl -ne \"print lc\" ${QMAKE_FILE_NAME} $$SVGCSSVALUES > tmp/${QMAKE_FILE_BASE}.in && cd tmp && perl $$PWD/css/makevalues.pl && $(DEL_FILE) ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.strip ${QMAKE_FILE_BASE}.gperf
1377     cssvalues.CONFIG = target_predeps no_link
1378     cssvalues.depend = ${QMAKE_FILE_NAME} SVGCSSVALUES
1379     cssvalues.clean = ${QMAKE_FILE_OUT} tmp/${QMAKE_FILE_BASE}.h
1380     QMAKE_EXTRA_COMPILERS += cssvalues
1381 } else {
1382     # GENERATOR 6-A:
1383     cssprops.output = tmp/${QMAKE_FILE_BASE}.c
1384     cssprops.input = WALDOCSSPROPS
1385     cssprops.commands = $(COPY_FILE) ${QMAKE_FILE_NAME} tmp && cd tmp && perl $$PWD/css/makeprop.pl && $(DEL_FILE) ${QMAKE_FILE_BASE}.strip ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.gperf
1386     cssprops.CONFIG = target_predeps no_link
1387     cssprops.clean = ${QMAKE_FILE_OUT} tmp/${QMAKE_FILE_BASE}.h
1388     QMAKE_EXTRA_COMPILERS += cssprops
1389
1390     # GENERATOR 6-B:
1391     cssvalues.output = tmp/${QMAKE_FILE_BASE}.c
1392     cssvalues.input = WALDOCSSVALUES
1393     cssvalues.commands = $(COPY_FILE) ${QMAKE_FILE_NAME} tmp && cd tmp && perl $$PWD/css/makevalues.pl && $(DEL_FILE) ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.strip ${QMAKE_FILE_BASE}.gperf
1394     cssvalues.CONFIG = target_predeps no_link
1395     cssvalues.clean = ${QMAKE_FILE_OUT} tmp/${QMAKE_FILE_BASE}.h
1396     QMAKE_EXTRA_COMPILERS += cssvalues
1397 }
1398
1399
1400 # GENERATOR 1: IDL compiler
1401 idl.output = tmp/JS${QMAKE_FILE_BASE}.cpp
1402 idl.variable_out = GENERATED_SOURCES
1403 idl.input = IDL_BINDINGS
1404 idl.commands = perl -I$$PWD/bindings/scripts $$PWD/bindings/scripts/generate-bindings.pl --defines \"$${FEATURE_DEFINES_JAVASCRIPT}\" --generator JS --include $$PWD/dom --include $$PWD/html --include $$PWD/xml --include $$PWD/ksvg2/svg --outputdir tmp --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_FILE_NAME}
1405 idl.CONFIG += target_predeps
1406 idl.clean = tmp/JS${QMAKE_FILE_BASE}.h ${QMAKE_FILE_OUT}
1407 QMAKE_EXTRA_COMPILERS += idl
1408
1409 # GENERATOR 2-A: LUT creator
1410 #lut.output = tmp/${QMAKE_FILE_BASE}.lut.h
1411 #lut.commands = perl $$PWD/../JavaScriptCore/kjs/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
1412 #lut.depend = ${QMAKE_FILE_NAME}
1413 #lut.input = LUT_FILES
1414 #lut.CONFIG += no_link
1415 #QMAKE_EXTRA_COMPILERS += lut
1416
1417 # GENERATOR 2-B: like JavaScriptCore/LUT Generator, but rename output
1418 luttable.output = tmp/${QMAKE_FILE_BASE}Table.cpp
1419 luttable.commands = perl $$PWD/../JavaScriptCore/kjs/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
1420 luttable.depend = ${QMAKE_FILE_NAME}
1421 luttable.input = LUT_TABLE_FILES
1422 luttable.CONFIG += no_link
1423 luttable.dependency_type = TYPE_C
1424 QMAKE_EXTRA_COMPILERS += luttable
1425
1426 # GENERATOR 3: tokenizer (flex)
1427 tokenizer.output = tmp/${QMAKE_FILE_BASE}.cpp
1428 tokenizer.commands = flex -t < ${QMAKE_FILE_NAME} | perl $$PWD/css/maketokenizer > ${QMAKE_FILE_OUT}
1429 tokenizer.dependency_type = TYPE_C
1430 tokenizer.input = TOKENIZER
1431 tokenizer.CONFIG += target_predeps no_link
1432 QMAKE_EXTRA_COMPILERS += tokenizer
1433
1434 # GENERATOR 4: CSS grammar
1435 cssbison.output = tmp/${QMAKE_FILE_BASE}.cpp
1436 cssbison.commands = perl $$PWD/css/makegrammar.pl ${QMAKE_FILE_NAME} tmp/${QMAKE_FILE_BASE}
1437 cssbison.depend = ${QMAKE_FILE_NAME}
1438 cssbison.input = CSSBISON
1439 cssbison.CONFIG = target_predeps
1440 cssbison.dependency_type = TYPE_C
1441 cssbison.variable_out = GENERATED_SOURCES
1442 cssbison.clean = ${QMAKE_FILE_OUT} tmp/${QMAKE_FILE_BASE}.h
1443 QMAKE_EXTRA_COMPILERS += cssbison
1444 #PRE_TARGETDEPS += tmp/CSSGrammar.cpp
1445 grammar_h_dep.target = tmp/CSSParser.o
1446 grammar_h_dep.depends = tmp/CSSGrammar.cpp tmp/HTMLNames.cpp
1447 QMAKE_EXTRA_TARGETS += grammar_h_dep
1448
1449 # GENERATOR 5-A:
1450 htmlnames.output = tmp/HTMLNames.cpp
1451 htmlnames.commands = perl $$PWD/ksvg2/scripts/make_names.pl --tags $$PWD/html/HTMLTagNames.in --attrs $$PWD/html/HTMLAttributeNames.in --namespace HTML --namespacePrefix xhtml --cppNamespace WebCore --namespaceURI 'http://www.w3.org/1999/xhtml' --attrsNullNamespace --preprocessor \"$${QMAKE_MOC} -E\" --output tmp
1452 htmlnames.input = HTML_NAMES
1453 htmlnames.dependency_type = TYPE_C
1454 htmlnames.CONFIG = target_predeps
1455 htmlnames.variable_out = GENERATED_SOURCES
1456 htmlnames.clean = ${QMAKE_FILE_OUT} tmp/HTMLNames.h
1457 QMAKE_EXTRA_COMPILERS += htmlnames
1458
1459 # GENERATOR 5-B:
1460 xmlnames.output = tmp/XMLNames.cpp
1461 xmlnames.commands = perl $$PWD/ksvg2/scripts/make_names.pl --attrs $$PWD/xml/xmlattrs.in --namespace XML --cppNamespace WebCore --namespaceURI 'http://www.w3.org/XML/1998/namespace' --preprocessor \"$${QMAKE_MOC} -E\" --output tmp
1462 xmlnames.input = XML_NAMES
1463 xmlnames.dependency_type = TYPE_C
1464 xmlnames.CONFIG = target_predeps
1465 xmlnames.variable_out = GENERATED_SOURCES
1466 xmlnames.clean = ${QMAKE_FILE_OUT} tmp/XMLNames.h
1467 QMAKE_EXTRA_COMPILERS += xmlnames
1468
1469
1470 # GENERATOR 8-A:
1471 entities.output = tmp/HTMLEntityNames.c
1472 entities.commands = gperf -a -L ANSI-C -C -G -c -o -t --key-positions="*" -N findEntity -D -s 2 < $$PWD/html/HTMLEntityNames.gperf > tmp/HTMLEntityNames.c
1473 entities.input = ENTITIES_GPERF
1474 entities.dependency_type = TYPE_C
1475 entities.CONFIG = target_predeps no_link
1476 entities.clean = ${QMAKE_FILE_OUT}
1477 QMAKE_EXTRA_COMPILERS += entities
1478
1479 # GENERATOR 8-B:
1480 doctypestrings.output = tmp/${QMAKE_FILE_BASE}.cpp
1481 doctypestrings.input = DOCTYPESTRINGS
1482 doctypestrings.commands = perl -e \"print \'$${LITERAL_HASH}include <string.h>\';\" > ${QMAKE_FILE_OUT} && echo // bogus >> ${QMAKE_FILE_OUT} && gperf -CEot -L ANSI-C --key-positions="*" -N findDoctypeEntry -F ,PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards < ${QMAKE_FILE_NAME} >> ${QMAKE_FILE_OUT}
1483 doctypestrings.dependency_type = TYPE_C
1484 doctypestrings.CONFIG += target_predeps no_link
1485 doctypestrings.clean = ${QMAKE_FILE_OUT}
1486 QMAKE_EXTRA_COMPILERS += doctypestrings
1487
1488 # GENERATOR 8-C:
1489 colordata.output = tmp/ColorData.c
1490 colordata.commands = perl -e \"print \'$${LITERAL_HASH}include <string.h>\';\" > ${QMAKE_FILE_OUT} && echo // bogus >> ${QMAKE_FILE_OUT} && gperf -CDEot -L ANSI-C --key-positions="*" -N findColor -D -s 2 < ${QMAKE_FILE_NAME} >> ${QMAKE_FILE_OUT}
1491 colordata.input = COLORDAT_GPERF
1492 colordata.CONFIG = target_predeps no_link
1493 QMAKE_EXTRA_COMPILERS += colordata
1494
1495 # GENERATOR 9:
1496 stylesheets.output = tmp/UserAgentStyleSheetsData.cpp
1497 stylesheets.commands = perl $$PWD/css/make-css-file-arrays.pl --preprocessor \"$${QMAKE_MOC} -E\" tmp/UserAgentStyleSheets.h tmp/UserAgentStyleSheetsData.cpp $$PWD/css/html4.css $$PWD/css/quirks.css $$PWD/css/svg.css $$PWD/css/view-source.css
1498 stylesheets.input = STYLESHEETS_EMBED
1499 stylesheets.CONFIG = target_predeps
1500 stylesheets.variable_out = GENERATED_SOURCES
1501 stylesheets.clean = ${QMAKE_FILE_OUT} tmp/UserAgentStyleSheets.h
1502 QMAKE_EXTRA_COMPILERS += stylesheets
1503
1504 # GENERATOR 10: XPATH grammar
1505 xpathbison.output = tmp/${QMAKE_FILE_BASE}.cpp
1506 xpathbison.commands = bison -d -p xpathyy ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_BASE}.tab.c && $(MOVE) ${QMAKE_FILE_BASE}.tab.c tmp/${QMAKE_FILE_BASE}.cpp && $(MOVE) ${QMAKE_FILE_BASE}.tab.h tmp/${QMAKE_FILE_BASE}.h
1507 xpathbison.depend = ${QMAKE_FILE_NAME}
1508 xpathbison.input = XPATHBISON
1509 xpathbison.CONFIG = target_predeps
1510 xpathbison.dependency_type = TYPE_C
1511 xpathbison.variable_out = GENERATED_SOURCES
1512 xpathbison.clean = ${QMAKE_FILE_OUT} tmp/${QMAKE_FILE_BASE}.h
1513 QMAKE_EXTRA_COMPILERS += xpathbison
1514
1515 qt-port {
1516     target.path = $$[QT_INSTALL_LIBS]
1517     include($$PWD/../WebKit/qt/Api/headers.pri)
1518     headers.files = $$WEBKIT_API_HEADERS
1519     headers.path = $$[QT_INSTALL_HEADERS]/QtWebKit
1520     prf.files = $$PWD/../WebKit/qt/Api/qtwebkit.prf
1521     prf.path = $$[QT_INSTALL_PREFIX]/mkspecs/features
1522
1523
1524     win32-* {
1525         DLLDESTDIR = $$OUTPUT_DIR/bin
1526
1527         dlltarget.commands = $(COPY_FILE) $(DESTDIR)$(TARGET) $$[QT_INSTALL_BINS]
1528         dlltarget.CONFIG = no_path
1529         INSTALLS += dlltarget
1530     }
1531
1532
1533     INSTALLS += target headers prf
1534
1535     unix {
1536         CONFIG += create_pc create_prl
1537         QMAKE_PKGCONFIG_LIBDIR = $$target.path
1538         QMAKE_PKGCONFIG_INCDIR = $$headers.path
1539         QMAKE_PKGCONFIG_DESTDIR = pkgconfig
1540         lib_replace.match = $$DESTDIR
1541         lib_replace.replace = $$[QT_INSTALL_LIBS]
1542         QMAKE_PKGCONFIG_INSTALL_REPLACE += lib_replace
1543     }
1544 }
1545
1546 gtk-port {
1547     isEmpty(WEBKIT_LIB_DIR):WEBKIT_LIB_DIR=$$[QT_INSTALL_LIBS]
1548     isEmpty(WEBKIT_INC_DIR):WEBKIT_INC_DIR=$$[QT_INSTALL_HEADERS]/WebKitGtk
1549
1550     target.path = $$WEBKIT_LIB_DIR
1551     include($$PWD/../WebKit/gtk/Api/headers.pri)
1552     headers.files = $$WEBKIT_API_HEADERS
1553     headers.path = $$WEBKIT_INC_DIR
1554     INSTALLS += target headers
1555
1556     unix {
1557         CONFIG += create_pc create_prl
1558         QMAKE_PKGCONFIG_LIBDIR = $$target.path
1559         QMAKE_PKGCONFIG_INCDIR = $$headers.path
1560         QMAKE_PKGCONFIG_DESTDIR = pkgconfig
1561         lib_replace.match = $$DESTDIR
1562         lib_replace.replace = $$[QT_INSTALL_LIBS]
1563         QMAKE_PKGCONFIG_INSTALL_REPLACE += lib_replace
1564     }
1565
1566     GENMARSHALS = ../WebKit/gtk/Api/webkitgtk-marshal.list
1567     GENMARSHALS_PREFIX = webkit_marshal
1568
1569     #
1570     # integrate glib-genmarshal as additional compiler
1571     #
1572     QMAKE_GENMARSHAL_CC  = glib-genmarshal
1573     glib-genmarshal.commands = $${QMAKE_GENMARSHAL_CC} --prefix=$${GENMARSHALS_PREFIX} ${QMAKE_FILE_IN} --header --body >${QMAKE_FILE_OUT}
1574     glib-genmarshal.output = $$OUT_PWD/${QMAKE_FILE_BASE}.h
1575     glib-genmarshal.input = GENMARSHALS
1576     glib-genmarshal.CONFIG = no_link
1577     glib-genmarshal.variable_out = PRE_TARGETDEPS
1578     glib-genmarshal.name = GENMARSHALS
1579     QMAKE_EXTRA_UNIX_COMPILERS += glib-genmarshal
1580 }