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