2008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
[WebKit-https.git] / WebCore / WebCore.pro
1 # WebCore - qmake build info
2 CONFIG += building-libs
3 CONFIG += depend_includepath
4 include($$PWD/../WebKit.pri)
5
6 TEMPLATE = lib
7 TARGET = QtWebKit
8
9 contains(QT_CONFIG, embedded):CONFIG += embedded
10
11 CONFIG(QTDIR_build) {
12     GENERATED_SOURCES_DIR = $$PWD/generated
13     include($$QT_SOURCE_TREE/src/qbase.pri)
14     PRECOMPILED_HEADER = $$PWD/../WebKit/qt/WebKit_pch.h
15     DEFINES *= NDEBUG
16 }
17
18 isEmpty(GENERATED_SOURCES_DIR):GENERATED_SOURCES_DIR = tmp
19 GENERATED_SOURCES_DIR_SLASH = $$GENERATED_SOURCES_DIR/
20 win32-*: GENERATED_SOURCES_DIR_SLASH ~= s|/|\|
21
22 !CONFIG(QTDIR_build) {
23      OBJECTS_DIR = tmp
24      DESTDIR = $$OUTPUT_DIR/lib
25 }
26
27 include($$OUTPUT_DIR/config.pri)
28
29 CONFIG -= warn_on
30 *-g++*:QMAKE_CXXFLAGS += -Wreturn-type -fno-strict-aliasing
31 #QMAKE_CXXFLAGS += -Wall -Wno-undef -Wno-unused-parameter
32
33 CONFIG(release):!CONFIG(QTDIR_build) {
34     contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
35     unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
36 }
37
38 linux-*: DEFINES += HAVE_STDINT_H
39 freebsd-*: DEFINES += HAVE_PTHREAD_NP_H
40
41 # PRE-BUILD: make the required config.h file
42 #config_h.target = config.h
43 #config_h.commands = cp config.h.qmake config.h
44 #config_h.depends = config.h.qmake
45 #QMAKE_EXTRA_TARGETS += config_h
46 #PRE_TARGETDEPS += config.h
47
48 DEFINES += BUILD_WEBKIT
49
50 !CONFIG(QTDIR_build):win32-*: DEFINES += ENABLE_ICONDATABASE=0 ENABLE_DATABASE=0
51
52 # Pick up 3rdparty libraries from INCLUDE/LIB just like with MSVC
53 win32-g++ {
54     TMPPATH            = $$quote($$(INCLUDE))
55     QMAKE_INCDIR_POST += $$split(TMPPATH,";")
56     TMPPATH            = $$quote($$(LIB))
57     QMAKE_LIBDIR_POST += $$split(TMPPATH,";")
58 }
59
60 # Optional components (look for defs in config.h and included files!)
61 !contains(DEFINES, ENABLE_CROSS_DOCUMENT_MESSAGING=.): DEFINES += ENABLE_CROSS_DOCUMENT_MESSAGING=1
62 !contains(DEFINES, ENABLE_DASHBOARD_SUPPORT=.): DEFINES += ENABLE_DASHBOARD_SUPPORT=0
63 !contains(DEFINES, ENABLE_DATABASE=.): DEFINES += ENABLE_DATABASE=1
64 !contains(DEFINES, ENABLE_ICONDATABASE=.): DEFINES += ENABLE_ICONDATABASE=1
65 !contains(DEFINES, ENABLE_XPATH=.): DEFINES += ENABLE_XPATH=1
66 #!contains(DEFINES, ENABLE_XBL=.): DEFINES += ENABLE_XBL=1
67 !contains(DEFINES, ENABLE_SVG=.): DEFINES += ENABLE_SVG=1
68 #!contains(DEFINES, ENABLE_SVG_FONTS=.): DEFINES += ENABLE_SVG_FONTS=1
69 !contains(DEFINES, ENABLE_SVG_FILTERS=.): DEFINES += ENABLE_SVG_FILTERS=1
70 !contains(DEFINES, ENABLE_SVG_FOREIGN_OBJECT=.): DEFINES += ENABLE_SVG_FOREIGN_OBJECT=1
71 !contains(DEFINES, ENABLE_SVG_ANIMATION=.): DEFINES += ENABLE_SVG_ANIMATION=1
72 !contains(DEFINES, ENABLE_SVG_AS_IMAGE=.): DEFINES += ENABLE_SVG_AS_IMAGE=1
73 !contains(DEFINES, ENABLE_SVG_USE=.): DEFINES += ENABLE_SVG_USE=1
74 contains(QT_CONFIG, phonon):DEFINES += ENABLE_VIDEO=1
75 else:DEFINES += ENABLE_VIDEO=0
76 unix:!mac:!embedded: DEFINES += XP_UNIX ENABLE_NETSCAPE_PLUGIN_API=1
77 win32: DEFINES += ENABLE_NETSCAPE_PLUGIN_API=1
78 DEFINES += WTF_USE_JAVASCRIPTCORE_BINDINGS=1
79
80 DEFINES += WTF_CHANGES=1
81
82 INCLUDEPATH += $$PWD/../JavaScriptCore $$PWD/../JavaScriptCore/ForwardingHeaders \
83                $$PWD/../JavaScriptCore/VM \
84                $$PWD/../JavaScriptCore/kjs \
85                $$PWD/../JavaScriptCore/bindings \
86                $$PWD/../JavaScriptCore/wtf
87
88 contains(CONFIG, debug_and_release_target) {
89     CONFIG(debug, debug|release) {
90         LIBS += -L../JavaScriptCore/debug
91     } else {
92         LIBS += -L../JavaScriptCore/release
93     }
94 } else {
95     LIBS += -L../JavaScriptCore
96 }
97
98 unset(JSCORE_LINKAGE)
99 CONFIG(QTDIR_build) {
100     CONFIG(debug, debug|release) {
101         win32:JSCORE_LINKAGE = -lJavaScriptCored
102         mac:JSCORE_LINKAGE = -lJavaScriptCore_debug
103     }
104 }
105 isEmpty(JSCORE_LINKAGE):JSCORE_LINKAGE += -lJavaScriptCore
106 LIBS += $$JSCORE_LINKAGE
107
108 RESOURCES += \
109     $$PWD/../WebCore/page/inspector/WebKit.qrc \
110     $$PWD/../WebCore/Resources/WebKitResources.qrc \
111     $$PWD/../WebCore/platform/qt/WebCoreResources.qrc
112 INCLUDEPATH += \
113     $$PWD/platform/qt \
114     $$PWD/platform/network/qt \
115     $$PWD/platform/graphics/filters \
116     $$PWD/platform/graphics/qt \
117     $$PWD/svg/graphics/qt \
118     $$PWD/loader \
119     $$PWD/page/qt \
120     $$PWD/../WebKit/qt/WebCoreSupport \
121     $$PWD/../WebKit/qt/Api \
122     $$PWD/bridge/qt
123
124 # Make sure storage/ appears before JavaScriptCore/kjs. Both provide LocalStorage.h
125 # but the header from the former include path is included across directories while
126 # kjs/LocalStorage.h is included only from files within the same directory
127 INCLUDEPATH = $$PWD/storage $$INCLUDEPATH
128
129 INCLUDEPATH +=  $$PWD \
130                 $$PWD/ForwardingHeaders \
131                 $$PWD/.. \
132                 $$PWD/platform \
133                 $$PWD/platform/network \
134                 $$PWD/platform/graphics \
135                 $$PWD/svg/animation \
136                 $$PWD/svg/graphics \
137                 $$PWD/svg/graphics/filters \
138                 $$PWD/platform/sql \
139                 $$PWD/platform/text \
140                 $$PWD/loader \
141                 $$PWD/loader/appcache \
142                 $$PWD/loader/archive \
143                 $$PWD/loader/icon \
144                 $$PWD/css \
145                 $$PWD/dom \
146                 $$PWD/page \
147                 $$PWD/page/animation \
148                 $$PWD/bridge \
149                 $$PWD/editing \
150                 $$PWD/rendering \
151                 $$PWD/rendering/style \
152                 $$PWD/history \
153                 $$PWD/xml \
154                 $$PWD/html \
155                 $$PWD/bindings/js \
156                 $$PWD/svg \
157                 $$PWD/platform/image-decoders \
158                 $$PWD/plugins \
159                 $$PWD/bridge \
160                 $$PWD/bridge/c \
161                 $$PWD/bridge/qt \
162                 $$GENERATED_SOURCES_DIR
163
164 QT += network
165 lessThan(QT_MINOR_VERSION, 4): QT += xml
166
167 QMAKE_EXTRA_TARGETS += generated_files
168
169 FEATURE_DEFINES_JAVASCRIPT = LANGUAGE_JAVASCRIPT=1
170
171 TOKENIZER = $$PWD/css/tokenizer.flex
172
173 DOCTYPESTRINGS = $$PWD/html/DocTypeStrings.gperf
174
175 CSSBISON = $$PWD/css/CSSGrammar.y
176
177 HTML_NAMES = $$PWD/html/HTMLTagNames.in
178
179 XML_NAMES = $$PWD/xml/xmlattrs.in
180
181 ENTITIES_GPERF = $$PWD/html/HTMLEntityNames.gperf
182
183 COLORDAT_GPERF = $$PWD/platform/ColorData.gperf
184
185 WALDOCSSPROPS = $$PWD/css/CSSPropertyNames.in
186
187 WALDOCSSVALUES = $$PWD/css/CSSValueKeywords.in
188
189 DASHBOARDSUPPORTCSSPROPERTIES = $$PWD/css/DashboardSupportCSSPropertyNames.in
190
191 SVGCSSPROPERTIES = $$PWD/css/SVGCSSPropertyNames.in
192
193 SVGCSSVALUES = $$PWD/css/SVGCSSValueKeywords.in
194
195 STYLESHEETS_EMBED = $$PWD/css/html4.css
196
197 LUT_FILES += \
198     bindings/js/JSDOMWindowBase.cpp \
199     bindings/js/JSEventTargetBase.cpp \
200     bindings/js/JSRGBColor.cpp
201
202 LUT_TABLE_FILES += \
203     bindings/js/JSHTMLInputElementBase.cpp
204
205 IDL_BINDINGS += \
206     css/Counter.idl \
207     css/CSSCharsetRule.idl \
208     css/CSSFontFaceRule.idl \
209     css/CSSImportRule.idl \
210     css/CSSMediaRule.idl \
211     css/CSSPageRule.idl \
212     css/CSSPrimitiveValue.idl \
213     css/CSSRule.idl \
214     css/CSSRuleList.idl \
215     css/CSSStyleDeclaration.idl \
216     css/CSSStyleRule.idl \
217     css/CSSStyleSheet.idl \
218     css/CSSValue.idl \
219     css/CSSValueList.idl \
220     css/CSSVariablesDeclaration.idl \
221     css/CSSVariablesRule.idl \
222     css/MediaList.idl \
223     css/Rect.idl \
224     css/StyleSheet.idl \
225     css/StyleSheetList.idl \
226     css/WebKitCSSKeyframeRule.idl \
227     css/WebKitCSSKeyframesRule.idl \
228     css/WebKitCSSTransformValue.idl \
229     dom/Attr.idl \
230     dom/CharacterData.idl \
231     dom/Clipboard.idl \
232     dom/CDATASection.idl \
233     dom/Comment.idl \
234     dom/DocumentFragment.idl \
235     dom/Document.idl \
236     dom/DocumentType.idl \
237     dom/DOMCoreException.idl \
238     dom/DOMImplementation.idl \
239     dom/Element.idl \
240     dom/Entity.idl \
241     dom/EntityReference.idl \
242     dom/Event.idl \
243     dom/EventException.idl \
244 #    dom/EventListener.idl \
245 #    dom/EventTarget.idl \
246     dom/KeyboardEvent.idl \
247     dom/MouseEvent.idl \
248     dom/MutationEvent.idl \
249     dom/NamedNodeMap.idl \
250     dom/Node.idl \
251     dom/NodeFilter.idl \
252     dom/NodeIterator.idl \
253     dom/NodeList.idl \
254     dom/Notation.idl \
255     dom/OverflowEvent.idl \
256     dom/ProcessingInstruction.idl \
257     dom/ProgressEvent.idl \
258     dom/RangeException.idl \
259     dom/Range.idl \
260     dom/Text.idl \
261     dom/TextEvent.idl \
262     dom/TreeWalker.idl \
263     dom/UIEvent.idl \
264     dom/WebKitAnimationEvent.idl \
265     dom/WebKitTransitionEvent.idl \
266     dom/WheelEvent.idl \
267     html/CanvasGradient.idl \
268     html/CanvasPattern.idl \
269     html/CanvasPixelArray.idl \
270     html/CanvasRenderingContext2D.idl \
271     html/File.idl \
272     html/FileList.idl \
273     html/HTMLAnchorElement.idl \
274     html/HTMLAppletElement.idl \
275     html/HTMLAreaElement.idl \
276     html/HTMLBaseElement.idl \
277     html/HTMLBaseFontElement.idl \
278     html/HTMLBlockquoteElement.idl \
279     html/HTMLBodyElement.idl \
280     html/HTMLBRElement.idl \
281     html/HTMLButtonElement.idl \
282     html/HTMLCanvasElement.idl \
283     html/HTMLCollection.idl \
284     html/HTMLDirectoryElement.idl \
285     html/HTMLDivElement.idl \
286     html/HTMLDListElement.idl \
287     html/HTMLDocument.idl \
288     html/HTMLElement.idl \
289     html/HTMLEmbedElement.idl \
290     html/HTMLFieldSetElement.idl \
291     html/HTMLFontElement.idl \
292     html/HTMLFormElement.idl \
293     html/HTMLFrameElement.idl \
294     html/HTMLFrameSetElement.idl \
295     html/HTMLHeadElement.idl \
296     html/HTMLHeadingElement.idl \
297     html/HTMLHRElement.idl \
298     html/HTMLHtmlElement.idl \
299     html/HTMLIFrameElement.idl \
300     html/HTMLImageElement.idl \
301     html/HTMLInputElement.idl \
302     html/HTMLIsIndexElement.idl \
303     html/HTMLLabelElement.idl \
304     html/HTMLLegendElement.idl \
305     html/HTMLLIElement.idl \
306     html/HTMLLinkElement.idl \
307     html/HTMLMapElement.idl \
308     html/HTMLMarqueeElement.idl \
309     html/HTMLMenuElement.idl \
310     html/HTMLMetaElement.idl \
311     html/HTMLModElement.idl \
312     html/HTMLObjectElement.idl \
313     html/HTMLOListElement.idl \
314     html/HTMLOptGroupElement.idl \
315     html/HTMLOptionElement.idl \
316     html/HTMLOptionsCollection.idl \
317     html/HTMLParagraphElement.idl \
318     html/HTMLParamElement.idl \
319     html/HTMLPreElement.idl \
320     html/HTMLQuoteElement.idl \
321     html/HTMLScriptElement.idl \
322     html/HTMLSelectElement.idl \
323     html/HTMLStyleElement.idl \
324     html/HTMLTableCaptionElement.idl \
325     html/HTMLTableCellElement.idl \
326     html/HTMLTableColElement.idl \
327     html/HTMLTableElement.idl \
328     html/HTMLTableRowElement.idl \
329     html/HTMLTableSectionElement.idl \
330     html/HTMLTextAreaElement.idl \
331     html/HTMLTitleElement.idl \
332     html/HTMLUListElement.idl \
333     html/ImageData.idl \
334     page/BarInfo.idl \
335     page/Console.idl \
336     page/DOMSelection.idl \
337     page/DOMWindow.idl \
338     page/History.idl \
339     page/JavaScriptCallFrame.idl \
340     page/Location.idl \
341     page/Screen.idl \
342     page/Navigator.idl \
343     plugins/Plugin.idl \
344     plugins/MimeType.idl \
345     plugins/PluginArray.idl \
346     plugins/MimeTypeArray.idl \
347     xml/DOMParser.idl \
348     xml/XMLHttpRequest.idl \
349     xml/XMLHttpRequestException.idl \
350     xml/XMLHttpRequestProgressEvent.idl \
351     xml/XMLHttpRequestUpload.idl \
352     xml/XMLSerializer.idl \
353     xml/XSLTProcessor.idl
354
355
356 SOURCES += \
357     bindings/js/GCController.cpp \
358     bindings/js/JSAttrCustom.cpp \
359     bindings/js/JSCanvasPixelArrayCustom.cpp \
360     bindings/js/JSCanvasRenderingContext2DCustom.cpp \
361     bindings/js/JSClipboardCustom.cpp \
362     bindings/js/JSConsoleCustom.cpp \
363     bindings/js/JSCSSRuleCustom.cpp \
364     bindings/js/JSCSSStyleDeclarationCustom.cpp \
365     bindings/js/JSCSSValueCustom.cpp \
366     bindings/js/JSCustomVoidCallback.cpp \
367     bindings/js/JSCustomXPathNSResolver.cpp \
368     bindings/js/JSDocumentCustom.cpp \
369     bindings/js/JSDocumentFragmentCustom.cpp \
370     bindings/js/JSDOMWindowBase.cpp \
371     bindings/js/JSDOMWindowCustom.cpp \
372     bindings/js/JSDOMWindowShell.cpp \
373     bindings/js/JSElementCustom.cpp \
374     bindings/js/JSEventCustom.cpp \
375     bindings/js/JSEventTargetBase.cpp \
376     bindings/js/JSEventTargetNode.cpp \
377     bindings/js/JSHistoryCustom.cpp \
378     bindings/js/JSJavaScriptCallFrameCustom.cpp \
379     bindings/js/JSHTMLAppletElementCustom.cpp \
380     bindings/js/JSHTMLCollectionCustom.cpp \
381     bindings/js/JSHTMLDocumentCustom.cpp \
382     bindings/js/JSHTMLElementCustom.cpp \
383     bindings/js/JSHTMLEmbedElementCustom.cpp \
384     bindings/js/JSHTMLFormElementCustom.cpp \
385     bindings/js/JSHTMLFrameElementCustom.cpp \
386     bindings/js/JSHTMLFrameSetElementCustom.cpp \
387     bindings/js/JSHTMLIFrameElementCustom.cpp \
388     bindings/js/JSHTMLInputElementBase.cpp \
389     bindings/js/JSHTMLObjectElementCustom.cpp \
390     bindings/js/JSHTMLOptionElementConstructor.cpp \
391     bindings/js/JSHTMLOptionsCollectionCustom.cpp \
392     bindings/js/JSHTMLSelectElementCustom.cpp \
393     bindings/js/JSImageConstructor.cpp \
394     bindings/js/JSInspectedObjectWrapper.cpp \
395     bindings/js/JSInspectorCallbackWrapper.cpp \
396     bindings/js/JSLocationCustom.cpp \
397     bindings/js/JSNamedNodeMapCustom.cpp \
398     bindings/js/JSNamedNodesCollection.cpp  \
399     bindings/js/JSNavigatorCustom.cpp  \
400     bindings/js/JSNodeCustom.cpp \
401     bindings/js/JSNodeFilterCondition.cpp \
402     bindings/js/JSNodeFilterCustom.cpp \
403     bindings/js/JSNodeIteratorCustom.cpp \
404     bindings/js/JSNodeListCustom.cpp \
405     bindings/js/JSNSResolver.cpp \
406     bindings/js/JSQuarantinedObjectWrapper.cpp \
407     bindings/js/JSRGBColor.cpp \
408     bindings/js/JSStyleSheetCustom.cpp \
409     bindings/js/JSStyleSheetListCustom.cpp \
410     bindings/js/JSTreeWalkerCustom.cpp \
411     bindings/js/JSXMLHttpRequestConstructor.cpp \
412     bindings/js/JSXMLHttpRequestCustom.cpp \
413     bindings/js/JSXMLHttpRequestUploadCustom.cpp \
414     bindings/js/JSXSLTProcessorConstructor.cpp \
415     bindings/js/JSXSLTProcessorCustom.cpp \
416     bindings/js/JSPluginCustom.cpp \
417     bindings/js/JSPluginArrayCustom.cpp \
418     bindings/js/JSMimeTypeArrayCustom.cpp \
419     bindings/js/JSDOMBinding.cpp \
420     bindings/js/JSEventListener.cpp \
421     bindings/js/JSPluginElementFunctions.cpp \
422     bindings/js/ScriptController.cpp \
423     bindings/js/PausedTimeouts.cpp \
424     bindings/js/ScheduledAction.cpp \
425     bridge/NP_jsobject.cpp \
426     bridge/npruntime.cpp \
427     bridge/runtime_array.cpp \
428     bridge/runtime.cpp \
429     bridge/runtime_method.cpp \
430     bridge/runtime_object.cpp \
431     bridge/runtime_root.cpp \
432     bridge/c/c_class.cpp \
433     bridge/c/c_instance.cpp \
434     bridge/c/c_runtime.cpp \
435     bridge/c/c_utility.cpp \
436     css/CSSBorderImageValue.cpp \
437     css/CSSCanvasValue.cpp \
438     css/CSSCharsetRule.cpp \
439     css/CSSComputedStyleDeclaration.cpp \
440     css/CSSCursorImageValue.cpp \
441     css/CSSFontFace.cpp \
442     css/CSSFontFaceRule.cpp \
443     css/CSSFontFaceSrcValue.cpp \
444     css/CSSFontSelector.cpp \
445     css/CSSFontFaceSource.cpp \
446     css/CSSFunctionValue.cpp \
447     css/CSSGradientValue.cpp \
448     css/CSSHelper.cpp \
449     css/CSSImageValue.cpp \
450     css/CSSImageGeneratorValue.cpp \
451     css/CSSImportRule.cpp \
452     css/CSSInheritedValue.cpp \
453     css/CSSInitialValue.cpp \
454     css/CSSMediaRule.cpp \
455     css/CSSMutableStyleDeclaration.cpp \
456     css/CSSPageRule.cpp \
457     css/CSSParser.cpp \
458     css/CSSParserValues.cpp \
459     css/CSSPrimitiveValue.cpp \
460     css/CSSProperty.cpp \
461     css/CSSReflectValue.cpp \
462     css/CSSRule.cpp \
463     css/CSSRuleList.cpp \
464     css/CSSSelector.cpp \
465     css/CSSSegmentedFontFace.cpp \
466     css/CSSStyleDeclaration.cpp \
467     css/CSSStyleRule.cpp \
468     css/CSSStyleSelector.cpp \
469     css/CSSStyleSheet.cpp \
470     css/CSSTimingFunctionValue.cpp \
471     css/CSSUnicodeRangeValue.cpp \
472     css/CSSValueList.cpp \
473     css/CSSVariableDependentValue.cpp \
474     css/CSSVariablesDeclaration.cpp \
475     css/CSSVariablesRule.cpp \
476     css/FontFamilyValue.cpp \
477     css/FontValue.cpp \
478     css/MediaFeatureNames.cpp \
479     css/MediaList.cpp \
480     css/MediaQuery.cpp \
481     css/MediaQueryEvaluator.cpp \
482     css/MediaQueryExp.cpp \
483     css/ShadowValue.cpp \
484     css/StyleBase.cpp \
485     css/StyleList.cpp \
486     css/StyleSheet.cpp \
487     css/StyleSheetList.cpp \
488     css/WebKitCSSKeyframeRule.cpp \
489     css/WebKitCSSKeyframesRule.cpp \
490     css/WebKitCSSTransformValue.cpp \
491     dom/Attr.cpp \
492     dom/Attribute.cpp \
493     dom/BeforeTextInsertedEvent.cpp \
494     dom/BeforeUnloadEvent.cpp \
495     dom/CDATASection.cpp \
496     dom/CharacterData.cpp \
497     dom/ChildNodeList.cpp \
498     dom/ClassNames.cpp \
499     dom/ClassNodeList.cpp \
500     dom/Clipboard.cpp \
501     dom/ClipboardEvent.cpp \
502     dom/Comment.cpp \
503     dom/ContainerNode.cpp \
504     dom/CSSMappedAttributeDeclaration.cpp \
505     dom/Document.cpp \
506     dom/DocumentFragment.cpp \
507     dom/DocumentType.cpp \
508     dom/DOMImplementation.cpp \
509     dom/DynamicNodeList.cpp \
510     dom/EditingText.cpp \
511     dom/Element.cpp \
512     dom/Entity.cpp \
513     dom/EntityReference.cpp \
514     dom/Event.cpp \
515     dom/EventNames.cpp \
516     dom/EventTarget.cpp \
517     dom/EventTargetNode.cpp \
518     dom/ExceptionBase.cpp \
519     dom/ExceptionCode.cpp \
520     dom/KeyboardEvent.cpp \
521     dom/MappedAttribute.cpp \
522     dom/MouseEvent.cpp \
523     dom/MouseRelatedEvent.cpp \
524     dom/MutationEvent.cpp \
525     dom/NamedAttrMap.cpp \
526     dom/NamedMappedAttrMap.cpp \
527     dom/NameNodeList.cpp \
528     dom/Node.cpp \
529     dom/NodeFilterCondition.cpp \
530     dom/NodeFilter.cpp \
531     dom/NodeIterator.cpp \
532     dom/Notation.cpp \
533     dom/OverflowEvent.cpp \
534     dom/Position.cpp \
535     dom/PositionIterator.cpp \
536     dom/ProcessingInstruction.cpp \
537     dom/ProgressEvent.cpp \
538     dom/QualifiedName.cpp \
539     dom/Range.cpp \
540     dom/RegisteredEventListener.cpp \
541     dom/ScriptElement.cpp \
542     dom/SelectorNodeList.cpp \
543     dom/StaticNodeList.cpp \
544     dom/StyledElement.cpp \
545     dom/StyleElement.cpp \
546     dom/TagNodeList.cpp \
547     dom/Text.cpp \
548     dom/TextEvent.cpp \
549     dom/Traversal.cpp \
550     dom/TreeWalker.cpp \
551     dom/UIEvent.cpp \
552     dom/UIEventWithKeyState.cpp \
553     dom/WebKitAnimationEvent.cpp \
554     dom/WebKitTransitionEvent.cpp \
555     dom/WheelEvent.cpp \
556     dom/XMLTokenizer.cpp \
557     editing/AppendNodeCommand.cpp \
558     editing/ApplyStyleCommand.cpp \
559     editing/BreakBlockquoteCommand.cpp \
560     editing/CompositeEditCommand.cpp \
561     editing/CreateLinkCommand.cpp \
562     editing/DeleteButtonController.cpp \
563     editing/DeleteButton.cpp \
564     editing/DeleteFromTextNodeCommand.cpp \
565     editing/DeleteSelectionCommand.cpp \
566     editing/EditCommand.cpp \
567     editing/Editor.cpp \
568     editing/EditorCommand.cpp \
569     editing/FormatBlockCommand.cpp \
570     editing/htmlediting.cpp \
571     editing/HTMLInterchange.cpp \
572     editing/IndentOutdentCommand.cpp \
573     editing/InsertIntoTextNodeCommand.cpp \
574     editing/InsertLineBreakCommand.cpp \
575     editing/InsertListCommand.cpp \
576     editing/InsertNodeBeforeCommand.cpp \
577     editing/InsertParagraphSeparatorCommand.cpp \
578     editing/InsertTextCommand.cpp \
579     editing/JoinTextNodesCommand.cpp \
580     editing/markup.cpp \
581     editing/MergeIdenticalElementsCommand.cpp \
582     editing/ModifySelectionListLevel.cpp \
583     editing/MoveSelectionCommand.cpp \
584     editing/RemoveCSSPropertyCommand.cpp \
585     editing/RemoveFormatCommand.cpp \
586     editing/RemoveNodeAttributeCommand.cpp \
587     editing/RemoveNodeCommand.cpp \
588     editing/RemoveNodePreservingChildrenCommand.cpp \
589     editing/ReplaceSelectionCommand.cpp \
590     editing/SelectionController.cpp \
591     editing/Selection.cpp \
592     editing/SetNodeAttributeCommand.cpp \
593     editing/SmartReplace.cpp \
594     editing/SmartReplaceICU.cpp \
595     editing/SplitElementCommand.cpp \
596     editing/SplitTextNodeCommand.cpp \
597     editing/SplitTextNodeContainingElementCommand.cpp \
598     editing/TextIterator.cpp \
599     editing/TypingCommand.cpp \
600     editing/UnlinkCommand.cpp \
601     editing/VisiblePosition.cpp \
602     editing/visible_units.cpp \
603     editing/WrapContentsInDummySpanCommand.cpp \
604     history/BackForwardList.cpp \
605     history/CachedPage.cpp \
606     history/HistoryItem.cpp \
607     history/PageCache.cpp \
608     html/CanvasGradient.cpp \
609     html/CanvasPattern.cpp \
610     html/CanvasPixelArray.cpp \
611     html/CanvasRenderingContext2D.cpp \
612     html/CanvasStyle.cpp \
613     html/File.cpp \
614     html/FileList.cpp \
615     html/FormDataList.cpp \
616     html/HTMLAnchorElement.cpp \
617     html/HTMLAppletElement.cpp \
618     html/HTMLAreaElement.cpp \
619     html/HTMLBaseElement.cpp \
620     html/HTMLBaseFontElement.cpp \
621     html/HTMLBlockquoteElement.cpp \
622     html/HTMLBodyElement.cpp \
623     html/HTMLBRElement.cpp \
624     html/HTMLButtonElement.cpp \
625     html/HTMLCanvasElement.cpp \
626     html/HTMLCollection.cpp \
627     html/HTMLDirectoryElement.cpp \
628     html/HTMLDivElement.cpp \
629     html/HTMLDListElement.cpp \
630     html/HTMLDocument.cpp \
631     html/HTMLElement.cpp \
632     html/HTMLElementFactory.cpp \
633     html/HTMLEmbedElement.cpp \
634     html/HTMLFieldSetElement.cpp \
635     html/HTMLFontElement.cpp \
636     html/HTMLFormCollection.cpp \
637     html/HTMLFormElement.cpp \
638     html/HTMLFrameElementBase.cpp \
639     html/HTMLFrameElement.cpp \
640     html/HTMLFrameOwnerElement.cpp \
641     html/HTMLFrameSetElement.cpp \
642     html/HTMLFormControlElement.cpp \
643     html/HTMLHeadElement.cpp \
644     html/HTMLHeadingElement.cpp \
645     html/HTMLHRElement.cpp \
646     html/HTMLHtmlElement.cpp \
647     html/HTMLIFrameElement.cpp \
648     html/HTMLImageElement.cpp \
649     html/HTMLImageLoader.cpp \
650     html/HTMLInputElement.cpp \
651     html/HTMLIsIndexElement.cpp \
652     html/HTMLKeygenElement.cpp \
653     html/HTMLLabelElement.cpp \
654     html/HTMLLegendElement.cpp \
655     html/HTMLLIElement.cpp \
656     html/HTMLLinkElement.cpp \
657     html/HTMLMapElement.cpp \
658     html/HTMLMarqueeElement.cpp \
659     html/HTMLMenuElement.cpp \
660     html/HTMLMetaElement.cpp \
661     html/HTMLModElement.cpp \
662     html/HTMLNameCollection.cpp \
663     html/HTMLObjectElement.cpp \
664     html/HTMLOListElement.cpp \
665     html/HTMLOptGroupElement.cpp \
666     html/HTMLOptionElement.cpp \
667     html/HTMLOptionsCollection.cpp \
668     html/HTMLParagraphElement.cpp \
669     html/HTMLParamElement.cpp \
670     html/HTMLParser.cpp \
671     html/HTMLParserErrorCodes.cpp \
672     html/HTMLPlugInElement.cpp \
673     html/HTMLPlugInImageElement.cpp \
674     html/HTMLPreElement.cpp \
675     html/HTMLQuoteElement.cpp \
676     html/HTMLScriptElement.cpp \
677     html/HTMLSelectElement.cpp \
678     html/HTMLStyleElement.cpp \
679     html/HTMLTableCaptionElement.cpp \
680     html/HTMLTableCellElement.cpp \
681     html/HTMLTableColElement.cpp \
682     html/HTMLTableElement.cpp \
683     html/HTMLTablePartElement.cpp \
684     html/HTMLTableRowElement.cpp \
685     html/HTMLTableRowsCollection.cpp \
686     html/HTMLTableSectionElement.cpp \
687     html/HTMLTextAreaElement.cpp \
688     html/HTMLTitleElement.cpp \
689     html/HTMLTokenizer.cpp \
690     html/HTMLUListElement.cpp \
691     html/HTMLViewSourceDocument.cpp \
692     html/ImageData.cpp \
693     html/PreloadScanner.cpp \
694     loader/archive/ArchiveFactory.cpp \
695     loader/archive/ArchiveResource.cpp \
696     loader/archive/ArchiveResourceCollection.cpp \
697     loader/UserStyleSheetLoader.cpp \
698     loader/Cache.cpp \
699     loader/CachedCSSStyleSheet.cpp \
700     loader/CachedFont.cpp \
701     loader/CachedImage.cpp \
702     loader/CachedResourceClientWalker.cpp \
703     loader/CachedResource.cpp \
704     loader/CachedScript.cpp \
705     loader/CachedXSLStyleSheet.cpp \
706     loader/DocLoader.cpp \
707     loader/DocumentLoader.cpp \
708     loader/FormState.cpp \
709     loader/FrameLoader.cpp \
710     loader/FTPDirectoryDocument.cpp \
711     loader/FTPDirectoryParser.cpp \
712     loader/icon/IconLoader.cpp \
713     loader/ImageDocument.cpp \
714     loader/loader.cpp \
715     loader/MainResourceLoader.cpp \
716     loader/MediaDocument.cpp \
717     loader/NavigationAction.cpp \
718     loader/NetscapePlugInStreamLoader.cpp \
719     loader/PluginDocument.cpp \
720     loader/ProgressTracker.cpp \
721     loader/Request.cpp \
722     loader/ResourceLoader.cpp \
723     loader/SubresourceLoader.cpp \
724     loader/TextDocument.cpp \
725     loader/TextResourceDecoder.cpp \
726     page/AccessibilityImageMapLink.cpp \
727     page/AccessibilityObject.cpp \    
728     page/AccessibilityListBox.cpp \    
729     page/AccessibilityListBoxOption.cpp \    
730     page/AccessibilityRenderObject.cpp \    
731     page/AccessibilityTable.cpp \    
732     page/AccessibilityTableCell.cpp \    
733     page/AccessibilityTableColumn.cpp \    
734     page/AccessibilityTableHeaderContainer.cpp \    
735     page/AccessibilityTableRow.cpp \    
736     page/animation/AnimationBase.cpp \
737     page/animation/AnimationController.cpp \
738     page/animation/CompositeAnimation.cpp \
739     page/animation/ImplicitAnimation.cpp \
740     page/animation/KeyframeAnimation.cpp \
741     page/AXObjectCache.cpp \
742     page/BarInfo.cpp \
743     page/Chrome.cpp \
744     page/Console.cpp \
745     page/ContextMenuController.cpp \
746     page/DOMSelection.cpp \
747     page/DOMWindow.cpp \
748     page/Navigator.cpp \
749     page/DragController.cpp \
750     page/EventHandler.cpp \
751     page/FocusController.cpp \
752     page/Frame.cpp \
753     page/FrameTree.cpp \
754     page/FrameView.cpp \
755     page/History.cpp \
756     page/InspectorController.cpp \
757     page/JavaScriptCallFrame.cpp \
758     page/JavaScriptDebugServer.cpp \
759     page/JavaScriptProfile.cpp \
760     page/JavaScriptProfileNode.cpp \
761     page/Location.cpp \
762     page/MouseEventWithHitTestResults.cpp \
763     page/Page.cpp \
764     page/PageGroup.cpp \
765     page/PrintContext.cpp \
766     page/Screen.cpp \
767     page/Settings.cpp \
768     page/WindowFeatures.cpp \
769     plugins/PluginData.cpp \
770     plugins/PluginArray.cpp \
771     plugins/Plugin.cpp \
772     plugins/PluginMainThreadScheduler.cpp \
773     plugins/MimeType.cpp \
774     plugins/MimeTypeArray.cpp \
775     platform/Arena.cpp \
776     platform/text/AtomicString.cpp \
777     platform/text/Base64.cpp \
778     platform/text/BidiContext.cpp \
779     platform/ContextMenu.cpp \
780     platform/text/CString.cpp \
781     platform/DeprecatedPtrListImpl.cpp \
782     platform/DeprecatedValueListImpl.cpp \
783     platform/DragData.cpp \
784     platform/DragImage.cpp \
785     platform/FileChooser.cpp \
786     platform/graphics/FontDescription.cpp \
787     platform/graphics/FontFamily.cpp \
788     platform/graphics/AffineTransform.cpp \
789     platform/graphics/BitmapImage.cpp \
790     platform/graphics/Color.cpp \
791     platform/graphics/FloatPoint3D.cpp \
792     platform/graphics/FloatPoint.cpp \
793     platform/graphics/FloatRect.cpp \
794     platform/graphics/FloatSize.cpp \
795     platform/graphics/FontData.cpp \
796     platform/graphics/GeneratedImage.cpp \
797     platform/graphics/Gradient.cpp \
798     platform/graphics/GraphicsContext.cpp \
799     platform/graphics/GraphicsTypes.cpp \
800     platform/graphics/Image.cpp \
801     platform/graphics/IntRect.cpp \
802     platform/graphics/Path.cpp \
803     platform/graphics/PathTraversalState.cpp \
804     platform/graphics/Pattern.cpp \
805     platform/graphics/Pen.cpp \
806     platform/graphics/SegmentedFontData.cpp \
807     platform/KURL.cpp \
808     platform/Logging.cpp \
809     platform/MIMETypeRegistry.cpp \
810     platform/network/AuthenticationChallengeBase.cpp \
811     platform/network/Credential.cpp \
812     platform/network/FormData.cpp \
813     platform/network/HTTPParsers.cpp \
814     platform/network/NetworkStateNotifier.cpp \
815     platform/network/ProtectionSpace.cpp \
816     platform/network/ResourceErrorBase.cpp \
817     platform/network/ResourceHandle.cpp \
818     platform/network/ResourceRequestBase.cpp \
819     platform/network/ResourceResponseBase.cpp \
820     platform/text/RegularExpression.cpp \
821     platform/ScrollBar.cpp \
822 #    platform/SearchPopupMenu.cpp \
823     platform/SecurityOrigin.cpp \
824     platform/text/SegmentedString.cpp \
825     platform/SharedBuffer.cpp \
826     platform/text/String.cpp \
827     platform/text/StringBuilder.cpp \
828     platform/text/StringImpl.cpp \
829     platform/text/TextCodec.cpp \
830     platform/text/TextCodecLatin1.cpp \
831     platform/text/TextCodecUserDefined.cpp \
832     platform/text/TextCodecUTF16.cpp \
833     platform/text/TextDecoder.cpp \
834     platform/text/TextEncoding.cpp \
835     platform/text/TextEncodingRegistry.cpp \
836     platform/text/TextStream.cpp \
837     platform/Timer.cpp \
838     platform/text/UnicodeRange.cpp \
839     platform/Widget.cpp \
840     plugins/PluginDatabase.cpp \
841     plugins/PluginInfoStore.cpp \
842     plugins/PluginPackage.cpp \
843     plugins/PluginStream.cpp \
844     plugins/PluginView.cpp \
845     rendering/AutoTableLayout.cpp \
846     rendering/bidi.cpp \
847     rendering/break_lines.cpp \
848     rendering/CounterNode.cpp \
849     rendering/EllipsisBox.cpp \
850     rendering/FixedTableLayout.cpp \
851     rendering/HitTestResult.cpp \
852     rendering/InlineBox.cpp \
853     rendering/InlineFlowBox.cpp \
854     rendering/InlineTextBox.cpp \
855     rendering/LayoutState.cpp \
856     rendering/ListMarkerBox.cpp \
857     rendering/RenderApplet.cpp \
858     rendering/RenderArena.cpp \
859     rendering/RenderBlock.cpp \
860     rendering/RenderBox.cpp \
861     rendering/RenderBR.cpp \
862     rendering/RenderButton.cpp \
863     rendering/RenderContainer.cpp \
864     rendering/RenderCounter.cpp \
865     rendering/RenderFieldset.cpp \
866     rendering/RenderFileUploadControl.cpp \
867     rendering/RenderFlexibleBox.cpp \
868     rendering/RenderFlow.cpp \
869     rendering/RenderFrame.cpp \
870     rendering/RenderFrameSet.cpp \
871     rendering/RenderHTMLCanvas.cpp \
872     rendering/RenderImage.cpp \
873     rendering/RenderImageGeneratedContent.cpp \
874     rendering/RenderInline.cpp \
875     rendering/RenderLayer.cpp \
876     rendering/RenderLegend.cpp \
877     rendering/RenderListBox.cpp \
878     rendering/RenderListItem.cpp \
879     rendering/RenderListMarker.cpp \
880     rendering/RenderMarquee.cpp \
881     rendering/RenderMenuList.cpp \
882     rendering/RenderObject.cpp \
883     rendering/RenderPart.cpp \
884     rendering/RenderPartObject.cpp \
885     rendering/RenderReplaced.cpp \
886     rendering/RenderReplica.cpp \
887     rendering/RenderSlider.cpp \
888     rendering/RenderTableCell.cpp \
889     rendering/RenderTableCol.cpp \
890     rendering/RenderTable.cpp \
891     rendering/RenderTableRow.cpp \
892     rendering/RenderTableSection.cpp \
893     rendering/RenderTextControl.cpp \
894     rendering/RenderText.cpp \
895     rendering/RenderTextFragment.cpp \
896     rendering/RenderTheme.cpp \
897     rendering/RenderTreeAsText.cpp \
898     rendering/RenderView.cpp \
899     rendering/RenderWidget.cpp \
900     rendering/RenderWordBreak.cpp \
901     rendering/RootInlineBox.cpp \
902     rendering/SVGRenderTreeAsText.cpp \
903     rendering/TextControlInnerElements.cpp \
904     rendering/style/RenderStyle.cpp \
905     rendering/style/StyleCachedImage.cpp \
906     rendering/style/StyleGeneratedImage.cpp \
907     rendering/style/NinePieceImage.cpp \
908     xml/DOMParser.cpp \
909     xml/NativeXPathNSResolver.cpp \
910     xml/XMLHttpRequest.cpp \
911     xml/XMLHttpRequestUpload.cpp \
912     xml/XMLSerializer.cpp \
913     xml/XPathEvaluator.cpp \
914     xml/XPathExpression.cpp \
915     xml/XPathExpressionNode.cpp \
916     xml/XPathFunctions.cpp \
917     xml/XPathNamespace.cpp \
918     xml/XPathNodeSet.cpp \
919     xml/XPathNSResolver.cpp \
920     xml/XPathParser.cpp \
921     xml/XPathPath.cpp \
922     xml/XPathPredicate.cpp \
923     xml/XPathResult.cpp \
924     xml/XPathStep.cpp \
925     xml/XPathUtil.cpp \
926     xml/XPathValue.cpp \
927     xml/XPathVariableReference.cpp \
928     xml/XSLImportRule.cpp \
929     xml/XSLStyleSheet.cpp \
930     xml/XSLTExtensions.cpp \
931     xml/XSLTUnicodeSort.cpp \
932     xml/XSLTProcessor.cpp
933
934 HEADERS += \
935     $$PWD/platform/graphics/qt/StillImageQt.h \
936     $$PWD/platform/qt/QWebPopup.h \
937     $$PWD/platform/qt/MenuEventProxy.h \
938     $$PWD/platform/qt/SharedTimerQt.h \
939     $$PWD/../WebKit/qt/Api/qwebframe.h \
940     $$PWD/../WebKit/qt/Api/qwebpage.h \
941     $$PWD/../WebKit/qt/Api/qwebview.h \
942     $$PWD/../WebKit/qt/Api/qwebhistoryinterface.h \
943     $$PWD/../WebKit/qt/Api/qwebpluginfactory.h \
944     $$PWD/../WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h \
945     $$PWD/platform/network/qt/QNetworkReplyHandler.h
946
947 SOURCES += \
948     bindings/js/ScriptControllerQt.cpp \
949     bridge/qt/qt_class.cpp \
950     bridge/qt/qt_instance.cpp \
951     bridge/qt/qt_runtime.cpp \
952     page/qt/AccessibilityObjectQt.cpp \
953     page/qt/DragControllerQt.cpp \
954     page/qt/EventHandlerQt.cpp \
955     page/qt/FrameQt.cpp \
956     platform/graphics/qt/AffineTransformQt.cpp \
957     platform/graphics/qt/ColorQt.cpp \
958     platform/graphics/qt/FloatPointQt.cpp \
959     platform/graphics/qt/FloatRectQt.cpp \
960     platform/graphics/qt/GradientQt.cpp \
961     platform/graphics/qt/GraphicsContextQt.cpp \
962     platform/graphics/qt/IconQt.cpp \
963     platform/graphics/qt/ImageBufferQt.cpp \
964     platform/graphics/qt/ImageDecoderQt.cpp \
965     platform/graphics/qt/ImageQt.cpp \
966     platform/graphics/qt/ImageSourceQt.cpp \
967     platform/graphics/qt/IntPointQt.cpp \
968     platform/graphics/qt/IntRectQt.cpp \
969     platform/graphics/qt/IntSizeQt.cpp \
970     platform/graphics/qt/PathQt.cpp \
971     platform/graphics/qt/PatternQt.cpp \
972     platform/graphics/qt/StillImageQt.cpp \
973     platform/network/qt/ResourceHandleQt.cpp \
974     platform/network/qt/ResourceRequestQt.cpp \
975     platform/network/qt/QNetworkReplyHandler.cpp \
976     editing/qt/EditorQt.cpp \
977     platform/qt/ClipboardQt.cpp \
978     platform/qt/ContextMenuItemQt.cpp \
979     platform/qt/ContextMenuQt.cpp \
980     platform/qt/CookieJarQt.cpp \
981     platform/qt/CursorQt.cpp \
982     platform/qt/DragDataQt.cpp \
983     platform/qt/DragImageQt.cpp \
984     platform/qt/EventLoopQt.cpp \
985     platform/qt/FileChooserQt.cpp \
986     platform/qt/FileSystemQt.cpp \
987     platform/graphics/qt/FontCacheQt.cpp \
988     platform/graphics/qt/FontCustomPlatformData.cpp \
989     platform/graphics/qt/FontQt.cpp \
990     platform/graphics/qt/GlyphPageTreeNodeQt.cpp \
991     platform/graphics/qt/SimpleFontDataQt.cpp \
992     platform/qt/KURLQt.cpp \
993     platform/qt/Localizations.cpp \
994     platform/qt/MIMETypeRegistryQt.cpp \
995     platform/qt/PasteboardQt.cpp \
996     platform/qt/PlatformKeyboardEventQt.cpp \
997     platform/qt/PlatformMouseEventQt.cpp \
998     platform/qt/PlatformScreenQt.cpp \
999     platform/qt/PlatformScrollBarQt.cpp \
1000     platform/qt/PopupMenuQt.cpp \
1001     platform/qt/QWebPopup.cpp \
1002     platform/qt/RenderThemeQt.cpp \
1003     platform/qt/ScrollViewQt.cpp \
1004     platform/qt/SearchPopupMenuQt.cpp \
1005     platform/qt/SharedTimerQt.cpp \
1006     platform/qt/SoundQt.cpp \
1007     platform/qt/LoggingQt.cpp \
1008     platform/text/qt/StringQt.cpp \
1009     platform/qt/TemporaryLinkStubs.cpp \
1010     platform/text/qt/TextBoundaries.cpp \
1011     platform/text/qt/TextBreakIteratorQt.cpp \
1012     platform/text/qt/TextCodecQt.cpp \
1013     platform/qt/WheelEventQt.cpp \
1014     platform/qt/WidgetQt.cpp \
1015     plugins/qt/PluginDataQt.cpp \
1016     ../WebKit/qt/WebCoreSupport/ChromeClientQt.cpp \
1017     ../WebKit/qt/WebCoreSupport/ContextMenuClientQt.cpp \
1018     ../WebKit/qt/WebCoreSupport/DragClientQt.cpp \
1019     ../WebKit/qt/WebCoreSupport/EditorClientQt.cpp \
1020     ../WebKit/qt/WebCoreSupport/EditCommandQt.cpp \
1021     ../WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp \
1022     ../WebKit/qt/WebCoreSupport/InspectorClientQt.cpp \
1023     ../WebKit/qt/Api/qwebframe.cpp \
1024     ../WebKit/qt/Api/qwebpage.cpp \
1025     ../WebKit/qt/Api/qwebview.cpp \
1026     ../WebKit/qt/Api/qwebhistory.cpp \
1027     ../WebKit/qt/Api/qwebsettings.cpp \
1028     ../WebKit/qt/Api/qwebhistoryinterface.cpp \
1029     ../WebKit/qt/Api/qwebpluginfactory.cpp
1030
1031     win32-*: SOURCES += platform/win/SystemTimeWin.cpp
1032     else: SOURCES += platform/qt/SystemTimeQt.cpp
1033
1034     win32-* {
1035         LIBS += -lgdi32
1036         LIBS += -luser32
1037     }
1038
1039     # Files belonging to the Qt 4.3 build
1040     lessThan(QT_MINOR_VERSION, 4) {
1041         HEADERS += \
1042             $$PWD/../WebKit/qt/Api/qwebnetworkinterface.h \
1043             $$PWD/../WebKit/qt/Api/qwebnetworkinterface_p.h \
1044             $$PWD/../WebKit/qt/Api/qcookiejar.h
1045
1046         SOURCES += \
1047             ../WebKit/qt/Api/qwebnetworkinterface.cpp \
1048             ../WebKit/qt/Api/qcookiejar.cpp
1049
1050         DEFINES += QT_BEGIN_NAMESPACE="" QT_END_NAMESPACE=""
1051      }
1052
1053 contains(DEFINES, ENABLE_NETSCAPE_PLUGIN_API=1) {
1054
1055         SOURCES += plugins/npapi.cpp
1056
1057         unix:!mac {
1058             SOURCES += \
1059                 plugins/qt/PluginPackageQt.cpp \
1060                 plugins/qt/PluginViewQt.cpp
1061         }
1062
1063         win32-* {
1064             INCLUDEPATH += $$PWD/plugins/win
1065
1066             SOURCES += page/win/PageWin.cpp \
1067                        plugins/win/PluginDatabaseWin.cpp \
1068                        plugins/win/PluginPackageWin.cpp \
1069                        plugins/win/PluginMessageThrottlerWin.cpp \
1070                        plugins/win/PluginViewWin.cpp
1071
1072             LIBS += \
1073                 -ladvapi32 \
1074                 -lgdi32 \
1075                 -lshell32 \
1076                 -lshlwapi \
1077                 -luser32 \
1078                 -lversion
1079         }
1080
1081 }
1082
1083 contains(DEFINES, ENABLE_CROSS_DOCUMENT_MESSAGING=1) {
1084     FEATURE_DEFINES_JAVASCRIPT += ENABLE_CROSS_DOCUMENT_MESSAGING=1
1085
1086     SOURCES += \
1087         dom/MessageEvent.cpp
1088
1089     IDL_BINDINGS += \
1090         dom/MessageEvent.idl
1091 }
1092
1093 contains(DEFINES, ENABLE_DASHBOARD_SUPPORT=0) {
1094     DASHBOARDSUPPORTCSSPROPERTIES -= $$PWD/css/DashboardSupportCSSPropertyNames.in
1095 }
1096
1097 contains(DEFINES, ENABLE_DATABASE=1) {
1098     FEATURE_DEFINES_JAVASCRIPT += ENABLE_DATABASE=1
1099
1100     CONFIG(QTDIR_build) {
1101         # some what copied from src/plugins/sqldrivers/sqlite/sqlite.pro
1102         system-sqlite {
1103             LIBS *= $$QT_LFLAGS_SQLITE
1104             QMAKE_CXXFLAGS *= $$QT_CFLAGS_SQLITE
1105         } else {
1106             CONFIG(release, debug|release):DEFINES *= NDEBUG
1107             INCLUDEPATH += $$QT_SOURCE_TREE/src/3rdparty/sqlite/
1108             SOURCES += $$QT_SOURCE_TREE/src/3rdparty/sqlite/sqlite3.c
1109         }
1110     } else {
1111         SQLITE3SRCDIR = $$(SQLITE3SRCDIR)
1112         isEmpty(SQLITE3SRCDIR) {
1113             INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/sqlite/
1114             LIBS += -lsqlite3
1115         } else {
1116             CONFIG(release, debug|release):DEFINES *= NDEBUG
1117             INCLUDEPATH += $${SQLITE3SRCDIR}
1118             SOURCES += $${SQLITE3SRCDIR}/sqlite3.c
1119         }
1120     }
1121
1122     SOURCES += \
1123         platform/sql/SQLiteAuthorizer.cpp \
1124         platform/sql/SQLiteDatabase.cpp \
1125         platform/sql/SQLiteStatement.cpp \
1126         platform/sql/SQLiteTransaction.cpp \
1127         platform/sql/SQLValue.cpp \
1128         storage/ChangeVersionWrapper.cpp \
1129         storage/DatabaseAuthorizer.cpp \
1130         storage/Database.cpp \
1131         storage/DatabaseTask.cpp \
1132         storage/DatabaseThread.cpp \
1133         storage/DatabaseTracker.cpp \
1134         storage/LocalStorage.cpp \
1135         storage/LocalStorageArea.cpp \
1136         storage/LocalStorageTask.cpp \
1137         storage/LocalStorageThread.cpp \
1138         storage/OriginQuotaManager.cpp \
1139         storage/OriginUsageRecord.cpp \
1140         storage/StorageArea.cpp \
1141         storage/StorageMap.cpp \
1142         storage/SQLResultSet.cpp \
1143         storage/SQLResultSetRowList.cpp \
1144         storage/SQLStatement.cpp \
1145         storage/SQLTransaction.cpp \
1146         bindings/js/JSCustomSQLStatementCallback.cpp \
1147         bindings/js/JSCustomSQLStatementErrorCallback.cpp \
1148         bindings/js/JSCustomSQLTransactionCallback.cpp \
1149         bindings/js/JSCustomSQLTransactionErrorCallback.cpp \
1150         bindings/js/JSDatabaseCustom.cpp \
1151         bindings/js/JSSQLResultSetRowListCustom.cpp \
1152         bindings/js/JSSQLTransactionCustom.cpp
1153
1154     IDL_BINDINGS += \
1155         storage/Database.idl \
1156         storage/SQLError.idl \
1157         storage/SQLResultSet.idl \
1158         storage/SQLResultSetRowList.idl \
1159         storage/SQLTransaction.idl
1160 }
1161
1162 contains(DEFINES, ENABLE_DOM_STORAGE=1) {
1163     FEATURE_DEFINES_JAVASCRIPT += ENABLE_DOM_STORAGE =1
1164
1165     SOURCES += \
1166         storage/LocalStorage.cpp \
1167         storage/LocalStorageArea.cpp \
1168         storage/Storage.cpp \
1169         storage/StorageArea.cpp \
1170         storage/StorageEvent.cpp \
1171         storage/StorageMap.cpp \
1172         storage/SessionStorage.cpp \
1173         storage/SessionStorageArea.cpp \
1174         bindings/js/JSStorage.cpp \
1175         bindings/js/JSStorageCustom.cpp \
1176         bindings/js/JSStorageEvent.cpp \
1177
1178     IDL_BINDINGS += \
1179         storage/Storage.idl \
1180         storage/StorageEvent.idl
1181 }
1182
1183 contains(DEFINES, ENABLE_ICONDATABASE=1) {
1184     SOURCES += \
1185         loader/icon/IconDatabase.cpp \
1186         loader/icon/IconRecord.cpp \
1187         loader/icon/PageURLRecord.cpp
1188 } else {
1189     SOURCES += \
1190         loader/icon/IconDatabaseNone.cpp
1191 }
1192
1193 contains(DEFINES, ENABLE_VIDEO=1) {
1194     FEATURE_DEFINES_JAVASCRIPT += ENABLE_VIDEO=1
1195
1196     IDL_BINDINGS += \
1197         html/HTMLAudioElement.idl \
1198         html/HTMLMediaElement.idl \
1199         html/HTMLSourceElement.idl \
1200         html/HTMLVideoElement.idl \
1201         html/MediaError.idl \
1202         html/TimeRanges.idl \
1203         html/VoidCallback.idl 
1204
1205     SOURCES += \
1206         html/HTMLAudioElement.cpp \
1207         html/HTMLMediaElement.cpp \
1208         html/HTMLSourceElement.cpp \
1209         html/HTMLVideoElement.cpp \
1210         html/TimeRanges.cpp \
1211         platform/graphics/MediaPlayer.cpp \
1212         rendering/MediaControlElements.cpp \
1213         rendering/RenderVideo.cpp \
1214         rendering/RenderMedia.cpp \
1215         bindings/js/JSAudioConstructor.cpp
1216
1217         HEADERS += \
1218             platform/graphics/qt/MediaPlayerPrivatePhonon.h
1219
1220         SOURCES += \
1221             platform/graphics/qt/MediaPlayerPrivatePhonon.cpp
1222
1223         # Add phonon manually to prevent it from coming first in
1224         # the include paths, as Phonon's path.h conflicts with
1225         # WebCore's Path.h on case-insensitive filesystems.
1226         qtAddLibrary(phonon)
1227         INCLUDEPATH -= $$QMAKE_INCDIR_QT/phonon
1228         INCLUDEPATH += $$QMAKE_INCDIR_QT/phonon
1229         mac {
1230             INCLUDEPATH -= $$QMAKE_LIBDIR_QT/phonon.framework/Headers
1231             INCLUDEPATH += $$QMAKE_LIBDIR_QT/phonon.framework/Headers
1232         }
1233
1234 }
1235
1236 contains(DEFINES, ENABLE_XPATH=1) {
1237     FEATURE_DEFINES_JAVASCRIPT += ENABLE_XPATH=1
1238
1239     XPATHBISON = $$PWD/xml/XPathGrammar.y
1240
1241     IDL_BINDINGS += \
1242         xml/XPathNSResolver.idl \
1243         xml/XPathException.idl \
1244         xml/XPathExpression.idl \
1245         xml/XPathResult.idl \
1246         xml/XPathEvaluator.idl
1247 }
1248
1249 unix:!mac:CONFIG += link_pkgconfig
1250
1251 contains(DEFINES, ENABLE_XSLT=1) {
1252     FEATURE_DEFINES_JAVASCRIPT += ENABLE_XSLT=1
1253     PKGCONFIG += libxml-2.0 libxslt
1254
1255     macx {
1256         INCLUDEPATH += /usr/include/libxml2
1257         LIBS += -lxml2 -lxslt
1258     }
1259
1260     win32-msvc* {
1261         LIBS += -llibxml2 -llibxslt
1262     }
1263 }
1264
1265 contains(DEFINES, ENABLE_XBL=1) {
1266     FEATURE_DEFINES_JAVASCRIPT += ENABLE_XBL=1
1267 }
1268
1269 contains(DEFINES, ENABLE_SVG=1) {
1270     FEATURE_DEFINES_JAVASCRIPT += ENABLE_SVG=1
1271
1272     SVG_NAMES = $$PWD/svg/svgtags.in
1273
1274     XLINK_NAMES = $$PWD/svg/xlinkattrs.in
1275
1276     IDL_BINDINGS += \
1277         svg/SVGZoomEvent.idl \
1278         svg/SVGAElement.idl \
1279         svg/SVGAltGlyphElement.idl \
1280         svg/SVGAngle.idl \
1281         svg/SVGAnimateColorElement.idl \
1282         svg/SVGAnimatedAngle.idl \
1283         svg/SVGAnimatedBoolean.idl \
1284         svg/SVGAnimatedEnumeration.idl \
1285         svg/SVGAnimatedInteger.idl \
1286         svg/SVGAnimatedLength.idl \
1287         svg/SVGAnimatedLengthList.idl \
1288         svg/SVGAnimatedNumber.idl \
1289         svg/SVGAnimatedNumberList.idl \
1290         svg/SVGAnimatedPreserveAspectRatio.idl \
1291         svg/SVGAnimatedRect.idl \
1292         svg/SVGAnimatedString.idl \
1293         svg/SVGAnimatedTransformList.idl \
1294         svg/SVGAnimateElement.idl \
1295         svg/SVGAnimateTransformElement.idl \
1296         svg/SVGAnimationElement.idl \
1297         svg/SVGCircleElement.idl \
1298         svg/SVGClipPathElement.idl \
1299         svg/SVGColor.idl \
1300         svg/SVGComponentTransferFunctionElement.idl \
1301         svg/SVGCursorElement.idl \
1302         svg/SVGDefinitionSrcElement.idl \
1303         svg/SVGDefsElement.idl \
1304         svg/SVGDescElement.idl \
1305         svg/SVGDocument.idl \
1306         svg/SVGElement.idl \
1307         svg/SVGElementInstance.idl \
1308         svg/SVGElementInstanceList.idl \
1309         svg/SVGEllipseElement.idl \
1310         svg/SVGException.idl \
1311         svg/SVGFEBlendElement.idl \
1312         svg/SVGFEColorMatrixElement.idl \
1313         svg/SVGFEComponentTransferElement.idl \
1314         svg/SVGFECompositeElement.idl \
1315         svg/SVGFEDiffuseLightingElement.idl \
1316         svg/SVGFEDisplacementMapElement.idl \
1317         svg/SVGFEDistantLightElement.idl \
1318         svg/SVGFEFloodElement.idl \
1319         svg/SVGFEFuncAElement.idl \
1320         svg/SVGFEFuncBElement.idl \
1321         svg/SVGFEFuncGElement.idl \
1322         svg/SVGFEFuncRElement.idl \
1323         svg/SVGFEGaussianBlurElement.idl \
1324         svg/SVGFEImageElement.idl \
1325         svg/SVGFEMergeElement.idl \
1326         svg/SVGFEMergeNodeElement.idl \
1327         svg/SVGFEOffsetElement.idl \
1328         svg/SVGFEPointLightElement.idl \
1329         svg/SVGFESpecularLightingElement.idl \
1330         svg/SVGFESpotLightElement.idl \
1331         svg/SVGFETileElement.idl \
1332         svg/SVGFETurbulenceElement.idl \
1333         svg/SVGFilterElement.idl \
1334         svg/SVGFontElement.idl \
1335         svg/SVGFontFaceElement.idl \
1336         svg/SVGFontFaceFormatElement.idl \
1337         svg/SVGFontFaceNameElement.idl \
1338         svg/SVGFontFaceSrcElement.idl \
1339         svg/SVGFontFaceUriElement.idl \
1340         svg/SVGForeignObjectElement.idl \
1341         svg/SVGGElement.idl \
1342         svg/SVGGlyphElement.idl \
1343         svg/SVGGradientElement.idl \
1344         svg/SVGImageElement.idl \
1345         svg/SVGLength.idl \
1346         svg/SVGLengthList.idl \
1347         svg/SVGLinearGradientElement.idl \
1348         svg/SVGLineElement.idl \
1349         svg/SVGMarkerElement.idl \
1350         svg/SVGMaskElement.idl \
1351         svg/SVGMatrix.idl \
1352         svg/SVGMetadataElement.idl \
1353         svg/SVGMissingGlyphElement.idl \
1354         svg/SVGNumber.idl \
1355         svg/SVGNumberList.idl \
1356         svg/SVGPaint.idl \
1357         svg/SVGPathElement.idl \
1358         svg/SVGPathSegArcAbs.idl \
1359         svg/SVGPathSegArcRel.idl \
1360         svg/SVGPathSegClosePath.idl \
1361         svg/SVGPathSegCurvetoCubicAbs.idl \
1362         svg/SVGPathSegCurvetoCubicRel.idl \
1363         svg/SVGPathSegCurvetoCubicSmoothAbs.idl \
1364         svg/SVGPathSegCurvetoCubicSmoothRel.idl \
1365         svg/SVGPathSegCurvetoQuadraticAbs.idl \
1366         svg/SVGPathSegCurvetoQuadraticRel.idl \
1367         svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl \
1368         svg/SVGPathSegCurvetoQuadraticSmoothRel.idl \
1369         svg/SVGPathSeg.idl \
1370         svg/SVGPathSegLinetoAbs.idl \
1371         svg/SVGPathSegLinetoHorizontalAbs.idl \
1372         svg/SVGPathSegLinetoHorizontalRel.idl \
1373         svg/SVGPathSegLinetoRel.idl \
1374         svg/SVGPathSegLinetoVerticalAbs.idl \
1375         svg/SVGPathSegLinetoVerticalRel.idl \
1376         svg/SVGPathSegList.idl \
1377         svg/SVGPathSegMovetoAbs.idl \
1378         svg/SVGPathSegMovetoRel.idl \
1379         svg/SVGPatternElement.idl \
1380         svg/SVGPoint.idl \
1381         svg/SVGPointList.idl \
1382         svg/SVGPolygonElement.idl \
1383         svg/SVGPolylineElement.idl \
1384         svg/SVGPreserveAspectRatio.idl \
1385         svg/SVGRadialGradientElement.idl \
1386         svg/SVGRectElement.idl \
1387         svg/SVGRect.idl \
1388         svg/SVGRenderingIntent.idl \
1389         svg/SVGScriptElement.idl \
1390         svg/SVGSetElement.idl \
1391         svg/SVGStopElement.idl \
1392         svg/SVGStringList.idl \
1393         svg/SVGStyleElement.idl \
1394         svg/SVGSVGElement.idl \
1395         svg/SVGSwitchElement.idl \
1396         svg/SVGSymbolElement.idl \
1397         svg/SVGTextContentElement.idl \
1398         svg/SVGTextElement.idl \
1399         svg/SVGTextPathElement.idl \
1400         svg/SVGTextPositioningElement.idl \
1401         svg/SVGTitleElement.idl \
1402         svg/SVGTransform.idl \
1403         svg/SVGTransformList.idl \
1404         svg/SVGTRefElement.idl \
1405         svg/SVGTSpanElement.idl \
1406         svg/SVGUnitTypes.idl \
1407         svg/SVGUseElement.idl \
1408         svg/SVGViewElement.idl 
1409
1410     SOURCES += \
1411 # TODO: this-one-is-not-auto-added! FIXME! tmp/SVGElementFactory.cpp \
1412         bindings/js/JSSVGLengthCustom.cpp \
1413         bindings/js/JSSVGMatrixCustom.cpp \
1414         bindings/js/JSSVGPathSegCustom.cpp \
1415         bindings/js/JSSVGPathSegListCustom.cpp \
1416         bindings/js/JSSVGPointListCustom.cpp \
1417         bindings/js/JSSVGTransformListCustom.cpp \
1418         css/SVGCSSComputedStyleDeclaration.cpp \
1419         css/SVGCSSParser.cpp \
1420         css/SVGCSSStyleSelector.cpp \
1421         rendering/SVGRenderStyle.cpp \
1422         rendering/SVGRenderStyleDefs.cpp \
1423         bindings/js/JSSVGLazyEventListener.cpp \
1424         svg/SVGZoomEvent.cpp \
1425         rendering/PointerEventsHitRules.cpp \
1426         svg/FilterEffect.cpp \
1427         svg/SVGDocumentExtensions.cpp \
1428         svg/SVGImageLoader.cpp \
1429         svg/ColorDistance.cpp \
1430         svg/SVGAElement.cpp \
1431         svg/SVGAltGlyphElement.cpp \
1432         svg/SVGAngle.cpp \
1433         svg/SVGAnimateColorElement.cpp \
1434         svg/SVGAnimatedPathData.cpp \
1435         svg/SVGAnimatedPoints.cpp \
1436         svg/SVGAnimateElement.cpp \
1437         svg/SVGAnimateMotionElement.cpp \
1438         svg/SVGAnimateTransformElement.cpp \
1439         svg/SVGAnimationElement.cpp \
1440         svg/SVGCircleElement.cpp \
1441         svg/SVGClipPathElement.cpp \
1442         svg/SVGColor.cpp \
1443         svg/SVGComponentTransferFunctionElement.cpp \
1444         svg/SVGCursorElement.cpp \
1445         svg/SVGDefinitionSrcElement.cpp \
1446         svg/SVGDefsElement.cpp \
1447         svg/SVGDescElement.cpp \
1448         svg/SVGDocument.cpp \
1449         svg/SVGElement.cpp \
1450         svg/SVGElementInstance.cpp \
1451         svg/SVGElementInstanceList.cpp \
1452         svg/SVGEllipseElement.cpp \
1453         svg/SVGExternalResourcesRequired.cpp \
1454         svg/SVGFEBlendElement.cpp \
1455         svg/SVGFEColorMatrixElement.cpp \
1456         svg/SVGFEComponentTransferElement.cpp \
1457         svg/SVGFECompositeElement.cpp \
1458         svg/SVGFEDiffuseLightingElement.cpp \
1459         svg/SVGFEDisplacementMapElement.cpp \
1460         svg/SVGFEDistantLightElement.cpp \
1461         svg/SVGFEFloodElement.cpp \
1462         svg/SVGFEFuncAElement.cpp \
1463         svg/SVGFEFuncBElement.cpp \
1464         svg/SVGFEFuncGElement.cpp \
1465         svg/SVGFEFuncRElement.cpp \
1466         svg/SVGFEGaussianBlurElement.cpp \
1467         svg/SVGFEImageElement.cpp \
1468         svg/SVGFELightElement.cpp \
1469         svg/SVGFEMergeElement.cpp \
1470         svg/SVGFEMergeNodeElement.cpp \
1471         svg/SVGFEOffsetElement.cpp \
1472         svg/SVGFEPointLightElement.cpp \
1473         svg/SVGFESpecularLightingElement.cpp \
1474         svg/SVGFESpotLightElement.cpp \
1475         svg/SVGFETileElement.cpp \
1476         svg/SVGFETurbulenceElement.cpp \
1477         svg/SVGFilterElement.cpp \
1478         svg/SVGFilterPrimitiveStandardAttributes.cpp \
1479         svg/SVGFitToViewBox.cpp \
1480         svg/SVGFont.cpp \
1481         svg/SVGFontData.cpp \
1482         svg/SVGFontElement.cpp \
1483         svg/SVGFontFaceElement.cpp \
1484         svg/SVGFontFaceFormatElement.cpp \
1485         svg/SVGFontFaceNameElement.cpp \
1486         svg/SVGFontFaceSrcElement.cpp \
1487         svg/SVGFontFaceUriElement.cpp \
1488         svg/SVGForeignObjectElement.cpp \
1489         svg/SVGGElement.cpp \
1490         svg/SVGGlyphElement.cpp \
1491         svg/SVGGradientElement.cpp \
1492         svg/SVGImageElement.cpp \
1493         svg/SVGLangSpace.cpp \
1494         svg/SVGLength.cpp \
1495         svg/SVGLengthList.cpp \
1496         svg/SVGLinearGradientElement.cpp \
1497         svg/SVGLineElement.cpp \
1498         svg/SVGLocatable.cpp \
1499         svg/SVGMarkerElement.cpp \
1500         svg/SVGMaskElement.cpp \
1501         svg/SVGMetadataElement.cpp \
1502         svg/SVGMissingGlyphElement.cpp \
1503         svg/SVGMPathElement.cpp \
1504         svg/SVGNumberList.cpp \
1505         svg/SVGPaint.cpp \
1506         svg/SVGParserUtilities.cpp \
1507         svg/SVGPathElement.cpp \
1508         svg/SVGPathSegArc.cpp \
1509         svg/SVGPathSegClosePath.cpp \
1510         svg/SVGPathSegCurvetoCubic.cpp \
1511         svg/SVGPathSegCurvetoCubicSmooth.cpp \
1512         svg/SVGPathSegCurvetoQuadratic.cpp \
1513         svg/SVGPathSegCurvetoQuadraticSmooth.cpp \
1514         svg/SVGPathSegLineto.cpp \
1515         svg/SVGPathSegLinetoHorizontal.cpp \
1516         svg/SVGPathSegLinetoVertical.cpp \
1517         svg/SVGPathSegList.cpp \
1518         svg/SVGPathSegMoveto.cpp \
1519         svg/SVGPatternElement.cpp \
1520         svg/SVGPointList.cpp \
1521         svg/SVGPolyElement.cpp \
1522         svg/SVGPolygonElement.cpp \
1523         svg/SVGPolylineElement.cpp \
1524         svg/SVGPreserveAspectRatio.cpp \
1525         svg/SVGRadialGradientElement.cpp \
1526         svg/SVGRectElement.cpp \
1527         svg/SVGScriptElement.cpp \
1528         svg/SVGSetElement.cpp \
1529         svg/SVGStopElement.cpp \
1530         svg/SVGStringList.cpp \
1531         svg/SVGStylable.cpp \
1532         svg/SVGStyledElement.cpp \
1533         svg/SVGStyledLocatableElement.cpp \
1534         svg/SVGStyledTransformableElement.cpp \
1535         svg/SVGStyleElement.cpp \
1536         svg/SVGSVGElement.cpp \
1537         svg/SVGSwitchElement.cpp \
1538         svg/SVGSymbolElement.cpp \
1539         svg/SVGTests.cpp \
1540         svg/SVGTextContentElement.cpp \
1541         svg/SVGTextElement.cpp \
1542         svg/SVGTextPathElement.cpp \
1543         svg/SVGTextPositioningElement.cpp \
1544         svg/SVGTitleElement.cpp \
1545         svg/SVGTransformable.cpp \
1546         svg/SVGTransform.cpp \
1547         svg/SVGTransformDistance.cpp \
1548         svg/SVGTransformList.cpp \
1549         svg/SVGTRefElement.cpp \
1550         svg/SVGTSpanElement.cpp \
1551         svg/SVGURIReference.cpp \
1552         svg/SVGUseElement.cpp \
1553         svg/SVGViewElement.cpp \
1554         svg/SVGViewSpec.cpp \
1555         svg/SVGZoomAndPan.cpp \
1556         svg/animation/SMILTime.cpp \
1557         svg/animation/SMILTimeContainer.cpp \
1558         svg/animation/SVGSMILElement.cpp \
1559         platform/graphics/filters/FEBlend.cpp \
1560         platform/graphics/filters/FEColorMatrix.cpp \
1561         platform/graphics/filters/FEComponentTransfer.cpp \
1562         platform/graphics/filters/FEComposite.cpp \
1563         svg/graphics/filters/SVGFEConvolveMatrix.cpp \
1564         svg/graphics/filters/SVGFEDiffuseLighting.cpp \
1565         svg/graphics/filters/SVGFEDisplacementMap.cpp \
1566         svg/graphics/filters/SVGFEFlood.cpp \
1567         svg/graphics/filters/SVGFEGaussianBlur.cpp \
1568         svg/graphics/filters/SVGFEImage.cpp \
1569         svg/graphics/filters/SVGFEMerge.cpp \
1570         svg/graphics/filters/SVGFEMorphology.cpp \
1571         svg/graphics/filters/SVGFEOffset.cpp \
1572         svg/graphics/filters/SVGFESpecularLighting.cpp \
1573         svg/graphics/filters/SVGFETile.cpp \
1574         svg/graphics/filters/SVGFETurbulence.cpp \
1575         svg/graphics/filters/SVGFilterEffect.cpp \
1576         svg/graphics/filters/SVGLightSource.cpp \
1577         svg/graphics/SVGImage.cpp \
1578         svg/graphics/SVGPaintServer.cpp \
1579         svg/graphics/SVGPaintServerGradient.cpp \
1580         svg/graphics/SVGPaintServerLinearGradient.cpp \
1581         svg/graphics/SVGPaintServerPattern.cpp \
1582         svg/graphics/SVGPaintServerRadialGradient.cpp \
1583         svg/graphics/SVGPaintServerSolid.cpp \
1584         svg/graphics/SVGResourceClipper.cpp \
1585         svg/graphics/SVGResource.cpp \
1586         svg/graphics/SVGResourceFilter.cpp \
1587         svg/graphics/SVGResourceMarker.cpp \
1588         svg/graphics/SVGResourceMasker.cpp \
1589         rendering/RenderForeignObject.cpp \
1590         rendering/RenderPath.cpp \
1591         rendering/RenderSVGBlock.cpp \
1592         rendering/RenderSVGContainer.cpp \
1593         rendering/RenderSVGGradientStop.cpp \
1594         rendering/RenderSVGHiddenContainer.cpp \
1595         rendering/RenderSVGImage.cpp \
1596         rendering/RenderSVGInline.cpp \
1597         rendering/RenderSVGInlineText.cpp \
1598         rendering/RenderSVGRoot.cpp \
1599         rendering/RenderSVGText.cpp \
1600         rendering/RenderSVGTextPath.cpp \
1601         rendering/RenderSVGTransformableContainer.cpp \
1602         rendering/RenderSVGTSpan.cpp \
1603         rendering/RenderSVGViewportContainer.cpp \
1604         rendering/SVGCharacterLayoutInfo.cpp \
1605         rendering/SVGInlineFlowBox.cpp \
1606         rendering/SVGInlineTextBox.cpp \
1607         rendering/SVGRenderSupport.cpp \
1608         rendering/SVGRootInlineBox.cpp
1609
1610 SOURCES += \
1611         svg/graphics/qt/RenderPathQt.cpp \
1612         svg/graphics/qt/SVGPaintServerGradientQt.cpp \
1613         svg/graphics/qt/SVGPaintServerLinearGradientQt.cpp \
1614         svg/graphics/qt/SVGPaintServerPatternQt.cpp \
1615         svg/graphics/qt/SVGPaintServerQt.cpp \
1616         svg/graphics/qt/SVGPaintServerRadialGradientQt.cpp \
1617         svg/graphics/qt/SVGPaintServerSolidQt.cpp \
1618         svg/graphics/qt/SVGResourceClipperQt.cpp \
1619         svg/graphics/qt/SVGResourceFilterQt.cpp \
1620         svg/graphics/qt/SVGResourceMaskerQt.cpp
1621
1622
1623         # GENERATOR 5-C:
1624         svgnames_a.output = $$GENERATED_SOURCES_DIR/SVGNames.cpp
1625         svgnames_a.commands = perl -I$$PWD/bindings/scripts $$PWD/dom/make_names.pl --tags $$PWD/svg/svgtags.in --attrs $$PWD/svg/svgattrs.in --extraDefines \"$${DEFINES}\" --namespace SVG --guardFactoryWith \"ENABLE(SVG)\" --cppNamespace WebCore --namespaceURI 'http://www.w3.org/2000/svg' --factory --wrapperFactory --attrsNullNamespace --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$GENERATED_SOURCES_DIR
1626         svgnames_a.input = SVG_NAMES
1627         svgnames_a.dependency_type = TYPE_C
1628         svgnames_a.CONFIG = target_predeps
1629         svgnames_a.variable_out = GENERATED_SOURCES
1630         addExtraCompilerWithHeader(svgnames_a)
1631         svgnames_b.output = $$GENERATED_SOURCES_DIR/SVGElementFactory.cpp
1632         svgnames_b.commands = @echo -n ''
1633         svgnames_b.input = SVG_NAMES
1634         svgnames_b.depends = $$GENERATED_SOURCES_DIR/SVGNames.cpp
1635         svgnames_b.CONFIG = target_predeps
1636         svgnames_b.variable_out = GENERATED_SOURCES
1637         addExtraCompilerWithHeader(svgnames_b)
1638         svgelementwrapper.output = $$GENERATED_SOURCES_DIR/JSSVGElementWrapperFactory.cpp
1639         svgelementwrapper.commands = @echo -n ''
1640         svgelementwrapper.input = SVG_NAMES
1641         svgelementwrapper.depends = $$GENERATED_SOURCES_DIR/SVGNames.cpp
1642         svgelementwrapper.CONFIG = target_predeps
1643         svgelementwrapper.variable_out = GENERATED_SOURCES
1644         addExtraCompiler(svgelementwrapper)
1645         svgelementwrapper_header.output = $$GENERATED_SOURCES_DIR/JSSVGElementWrapperFactory.h
1646         svgelementwrapper_header.commands = @echo -n ''
1647         svgelementwrapper_header.input = SVG_NAMES
1648         svgelementwrapper_header.depends = $$GENERATED_SOURCES_DIR/SVGNames.cpp
1649         svgelementwrapper_header.CONFIG = target_predeps
1650         svgelementwrapper_header.variable_out = GENERATED_FILES
1651         addExtraCompiler(svgelementwrapper_header)
1652
1653         # GENERATOR 5-D:
1654         xlinknames.output = $$GENERATED_SOURCES_DIR/XLinkNames.cpp
1655         xlinknames.commands = perl -I$$PWD/bindings/scripts $$PWD/dom/make_names.pl --attrs $$PWD/svg/xlinkattrs.in --namespace XLink --cppNamespace WebCore --namespaceURI 'http://www.w3.org/1999/xlink' --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$GENERATED_SOURCES_DIR
1656         xlinknames.input = XLINK_NAMES
1657         xlinknames.dependency_type = TYPE_C
1658         xlinknames.CONFIG = target_predeps
1659         xlinknames.variable_out = GENERATED_SOURCES
1660         addExtraCompilerWithHeader(xlinknames)
1661
1662     # GENERATOR 6-A:
1663     cssprops.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.cpp
1664     cssprops.input = WALDOCSSPROPS
1665     cssprops.commands = perl -ne \"print lc\" ${QMAKE_FILE_NAME} $$DASHBOARDSUPPORTCSSPROPERTIES $$SVGCSSPROPERTIES > $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.in && cd $$GENERATED_SOURCES_DIR && perl $$PWD/css/makeprop.pl && $(DEL_FILE) ${QMAKE_FILE_BASE}.strip ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.gperf
1666     cssprops.CONFIG = target_predeps no_link
1667     cssprops.depend = ${QMAKE_FILE_NAME} DASHBOARDSUPPORTCSSPROPERTIES SVGCSSPROPERTIES
1668     addExtraCompilerWithHeader(cssprops)
1669
1670     # GENERATOR 6-B:
1671     cssvalues.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.c
1672     cssvalues.input = WALDOCSSVALUES
1673     cssvalues.commands = perl -ne \"print lc\" ${QMAKE_FILE_NAME} $$SVGCSSVALUES > $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.in && cd $$GENERATED_SOURCES_DIR && perl $$PWD/css/makevalues.pl && $(DEL_FILE) ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.strip ${QMAKE_FILE_BASE}.gperf
1674     cssvalues.CONFIG = target_predeps no_link
1675     cssvalues.depend = ${QMAKE_FILE_NAME} SVGCSSVALUES
1676     addExtraCompilerWithHeader(cssvalues)
1677 } else {
1678     # GENERATOR 6-A:
1679     cssprops.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.c
1680     cssprops.input = WALDOCSSPROPS
1681     cssprops.commands = perl -ne \"print lc\" ${QMAKE_FILE_NAME} $$DASHBOARDSUPPORTCSSPROPERTIES > $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.in && cd $$GENERATED_SOURCES_DIR && perl $$PWD/css/makeprop.pl && $(DEL_FILE) ${QMAKE_FILE_BASE}.strip ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.gperf
1682     cssprops.CONFIG = target_predeps no_link
1683     cssprops.depend = ${QMAKE_FILE_NAME} DASHBOARDSUPPORTCSSPROPERTIES
1684     addExtraCompilerWithHeader(cssprops)
1685
1686     # GENERATOR 6-B:
1687     cssvalues.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.c
1688     cssvalues.input = WALDOCSSVALUES
1689     cssvalues.commands = $(COPY_FILE) ${QMAKE_FILE_NAME} $$GENERATED_SOURCES_DIR && cd $$GENERATED_SOURCES_DIR && perl $$PWD/css/makevalues.pl && $(DEL_FILE) ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.strip ${QMAKE_FILE_BASE}.gperf
1690     cssvalues.CONFIG = target_predeps no_link
1691     cssvalues.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_GENERATED_SOURCES_DIR_SLASH}${QMAKE_FILE_BASE}.h
1692     addExtraCompiler(cssvalues)
1693 }
1694
1695
1696 # GENERATOR 1: IDL compiler
1697 idl.output = $$GENERATED_SOURCES_DIR/JS${QMAKE_FILE_BASE}.cpp
1698 idl.variable_out = GENERATED_SOURCES
1699 idl.input = IDL_BINDINGS
1700 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/svg --outputDir $$GENERATED_SOURCES_DIR --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_FILE_NAME}
1701 idl.CONFIG += target_predeps
1702 addExtraCompilerWithHeader(idl)
1703
1704 # GENERATOR 2-A: LUT creator
1705 lut.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.lut.h
1706 lut.commands = perl $$PWD/../JavaScriptCore/kjs/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
1707 lut.depend = ${QMAKE_FILE_NAME}
1708 lut.input = LUT_FILES
1709 lut.CONFIG += no_link
1710 addExtraCompiler(lut)
1711
1712 # GENERATOR 2-B: like JavaScriptCore/LUT Generator, but rename output
1713 luttable.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}Table.cpp
1714 luttable.commands = perl $$PWD/../JavaScriptCore/kjs/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
1715 luttable.depend = ${QMAKE_FILE_NAME}
1716 luttable.input = LUT_TABLE_FILES
1717 luttable.CONFIG += no_link
1718 luttable.dependency_type = TYPE_C
1719 addExtraCompiler(luttable)
1720
1721 # GENERATOR 3: tokenizer (flex)
1722 tokenizer.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.cpp
1723 tokenizer.commands = flex -t < ${QMAKE_FILE_NAME} | perl $$PWD/css/maketokenizer > ${QMAKE_FILE_OUT}
1724 tokenizer.dependency_type = TYPE_C
1725 tokenizer.input = TOKENIZER
1726 tokenizer.CONFIG += target_predeps no_link
1727 addExtraCompiler(tokenizer)
1728
1729 # GENERATOR 4: CSS grammar
1730 cssbison.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.cpp
1731 cssbison.commands = perl $$PWD/css/makegrammar.pl ${QMAKE_FILE_NAME} $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}
1732 cssbison.depend = ${QMAKE_FILE_NAME}
1733 cssbison.input = CSSBISON
1734 cssbison.CONFIG = target_predeps
1735 cssbison.dependency_type = TYPE_C
1736 cssbison.variable_out = GENERATED_SOURCES
1737 addExtraCompilerWithHeader(cssbison)
1738
1739 # GENERATOR 5-A:
1740 htmlnames.output = $$GENERATED_SOURCES_DIR/HTMLNames.cpp
1741 htmlnames.commands = perl -I$$PWD/bindings/scripts $$PWD/dom/make_names.pl --tags $$PWD/html/HTMLTagNames.in --attrs $$PWD/html/HTMLAttributeNames.in --extraDefines \"$${DEFINES}\" --namespace HTML --namespacePrefix xhtml --cppNamespace WebCore --namespaceURI 'http://www.w3.org/1999/xhtml' --wrapperFactory --attrsNullNamespace --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$GENERATED_SOURCES_DIR
1742 htmlnames.input = HTML_NAMES
1743 htmlnames.dependency_type = TYPE_C
1744 htmlnames.CONFIG = target_predeps
1745 htmlnames.variable_out = GENERATED_SOURCES
1746 addExtraCompilerWithHeader(htmlnames)
1747
1748 elementwrapperfactory.output = $$GENERATED_SOURCES_DIR/JSHTMLElementWrapperFactory.cpp
1749 elementwrapperfactory.commands = @echo -n ''
1750 elementwrapperfactory.input = HTML_NAMES
1751 elementwrapperfactory.depends = $$GENERATED_SOURCES_DIR/HTMLNames.cpp
1752 elementwrapperfactory.CONFIG = target_predeps
1753 elementwrapperfactory.variable_out = GENERATED_SOURCES
1754 elementwrapperfactory.clean += ${QMAKE_FILE_OUT}
1755 addExtraCompilerWithHeader(elementwrapperfactory)
1756
1757 # GENERATOR 5-B:
1758 xmlnames.output = $$GENERATED_SOURCES_DIR/XMLNames.cpp
1759 xmlnames.commands = perl -I$$PWD/bindings/scripts $$PWD/dom/make_names.pl --attrs $$PWD/xml/xmlattrs.in --namespace XML --cppNamespace WebCore --namespaceURI 'http://www.w3.org/XML/1998/namespace' --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$GENERATED_SOURCES_DIR
1760 xmlnames.input = XML_NAMES
1761 xmlnames.dependency_type = TYPE_C
1762 xmlnames.CONFIG = target_predeps
1763 xmlnames.variable_out = GENERATED_SOURCES
1764 addExtraCompilerWithHeader(xmlnames)
1765
1766 # GENERATOR 8-A:
1767 entities.output = $$GENERATED_SOURCES_DIR/HTMLEntityNames.c
1768 entities.commands = gperf -a -L ANSI-C -C -G -c -o -t --key-positions="*" -N findEntity -D -s 2 < $$PWD/html/HTMLEntityNames.gperf > $$GENERATED_SOURCES_DIR/HTMLEntityNames.c
1769 entities.input = ENTITIES_GPERF
1770 entities.dependency_type = TYPE_C
1771 entities.CONFIG = target_predeps no_link
1772 entities.clean = ${QMAKE_FILE_OUT}
1773 addExtraCompiler(entities)
1774
1775 # GENERATOR 8-B:
1776 doctypestrings.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.cpp
1777 doctypestrings.input = DOCTYPESTRINGS
1778 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}
1779 doctypestrings.dependency_type = TYPE_C
1780 doctypestrings.CONFIG += target_predeps no_link
1781 doctypestrings.clean = ${QMAKE_FILE_OUT}
1782 addExtraCompiler(doctypestrings)
1783
1784 # GENERATOR 8-C:
1785 colordata.output = $$GENERATED_SOURCES_DIR/ColorData.c
1786 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}
1787 colordata.input = COLORDAT_GPERF
1788 colordata.CONFIG = target_predeps no_link
1789 addExtraCompiler(colordata)
1790
1791 # GENERATOR 9:
1792 stylesheets.output = $$GENERATED_SOURCES_DIR/UserAgentStyleSheetsData.cpp
1793 stylesheets.commands = perl $$PWD/css/make-css-file-arrays.pl --preprocessor \"$${QMAKE_MOC} -E\" $$GENERATED_SOURCES_DIR/UserAgentStyleSheets.h $$GENERATED_SOURCES_DIR/UserAgentStyleSheetsData.cpp $$PWD/css/html4.css $$PWD/css/quirks.css $$PWD/css/svg.css $$PWD/css/view-source.css
1794 stylesheets.input = STYLESHEETS_EMBED
1795 stylesheets.CONFIG = target_predeps
1796 stylesheets.variable_out = GENERATED_SOURCES
1797 stylesheets.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_GENERATED_SOURCES_DIR_SLASH}UserAgentStyleSheets.h
1798 addExtraCompilerWithHeader(stylesheets, $$GENERATED_SOURCES_DIR/UserAgentStyleSheets.h)
1799
1800 # GENERATOR 10: XPATH grammar
1801 xpathbison.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.cpp
1802 xpathbison.commands = bison -d -p xpathyy ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_BASE}.tab.c && $(MOVE) ${QMAKE_FILE_BASE}.tab.c $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.cpp && $(MOVE) ${QMAKE_FILE_BASE}.tab.h $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.h
1803 xpathbison.depend = ${QMAKE_FILE_NAME}
1804 xpathbison.input = XPATHBISON
1805 xpathbison.CONFIG = target_predeps
1806 xpathbison.dependency_type = TYPE_C
1807 xpathbison.variable_out = GENERATED_SOURCES
1808 addExtraCompilerWithHeader(xpathbison)
1809
1810 !CONFIG(QTDIR_build) {
1811     target.path = $$[QT_INSTALL_LIBS]
1812     include($$PWD/../WebKit/qt/Api/headers.pri)
1813     headers.files = $$WEBKIT_API_HEADERS
1814     headers.path = $$[QT_INSTALL_HEADERS]/QtWebKit
1815     prf.files = $$PWD/../WebKit/qt/Api/qtwebkit.prf
1816     prf.path = $$[QT_INSTALL_PREFIX]/mkspecs/features
1817
1818     VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
1819
1820     win32-* {
1821         DLLDESTDIR = $$OUTPUT_DIR/bin
1822
1823         dlltarget.commands = $(COPY_FILE) $(DESTDIR)$(TARGET) $$[QT_INSTALL_BINS]
1824         dlltarget.CONFIG = no_path
1825         INSTALLS += dlltarget
1826     }
1827
1828
1829     INSTALLS += target headers prf
1830
1831     unix {
1832         CONFIG += create_pc create_prl
1833         QMAKE_PKGCONFIG_LIBDIR = $$target.path
1834         QMAKE_PKGCONFIG_INCDIR = $$headers.path
1835         QMAKE_PKGCONFIG_DESTDIR = pkgconfig
1836         lib_replace.match = $$DESTDIR
1837         lib_replace.replace = $$[QT_INSTALL_LIBS]
1838         QMAKE_PKGCONFIG_INSTALL_REPLACE += lib_replace
1839     }
1840 }
1841