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