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