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