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