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