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