2009-06-10 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
[WebKit-https.git] / WebCore / WebCore.pro
1 # WebCore - qmake build info
2 CONFIG += building-libs
3 CONFIG += depend_includepath
4 include($$PWD/../WebKit.pri)
5
6 TEMPLATE = lib
7 TARGET = QtWebKit
8
9 contains(QT_CONFIG, embedded):CONFIG += embedded
10
11 CONFIG(QTDIR_build) {
12     GENERATED_SOURCES_DIR = $$PWD/generated
13     include($$QT_SOURCE_TREE/src/qbase.pri)
14     PRECOMPILED_HEADER = $$PWD/../WebKit/qt/WebKit_pch.h
15     DEFINES *= NDEBUG
16 } else {
17     !static: DEFINES += QT_MAKEDLL
18
19     CONFIG(debug, debug|release) {
20         isEmpty(GENERATED_SOURCES_DIR):GENERATED_SOURCES_DIR = generated$${QMAKE_DIR_SEP}debug
21         OBJECTS_DIR = obj/debug
22     } else { # Release
23         isEmpty(GENERATED_SOURCES_DIR):GENERATED_SOURCES_DIR = generated$${QMAKE_DIR_SEP}release
24         OBJECTS_DIR = obj/release
25     }
26
27     DESTDIR = $$OUTPUT_DIR/lib
28     macx:CONFIG += absolute_library_soname
29 }
30
31 GENERATED_SOURCES_DIR_SLASH = $$GENERATED_SOURCES_DIR${QMAKE_DIR_SEP}
32
33 unix {
34     QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui QtNetwork
35     lessThan(QT_MINOR_VERSION, 4): QMAKE_PKGCONFIG_REQUIRES += QtXml
36 }
37
38 include($$OUTPUT_DIR/config.pri)
39
40 CONFIG -= warn_on
41 *-g++*:QMAKE_CXXFLAGS += -Wreturn-type -fno-strict-aliasing
42
43 # Disable a few warnings on Windows. The warnings are also
44 # disabled in WebKitLibraries/win/tools/vsprops/common.vsprops
45 win32-*: QMAKE_CXXFLAGS += -wd4291 -wd4344
46
47 unix:!mac:*-g++*:QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections 
48 unix:!mac:*-g++*:QMAKE_LFLAGS += -Wl,--gc-sections
49
50 #QMAKE_CXXFLAGS += -Wall -Wno-undef -Wno-unused-parameter
51
52 CONFIG(release):!CONFIG(QTDIR_build) {
53     contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
54     unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
55 }
56
57 linux-*: DEFINES += HAVE_STDINT_H
58 freebsd-*: DEFINES += HAVE_PTHREAD_NP_H
59
60 DEFINES += BUILD_WEBKIT
61
62 win32-*: DEFINES += _HAS_TR1=0
63 wince* {
64 #    DEFINES += ENABLE_SVG=0 ENABLE_XPATH=0 ENABLE_XBL=0 \
65 #               ENABLE_SVG_ANIMATION=0 ENABLE_SVG_USE=0  \
66 #               ENABLE_SVG_FOREIGN_OBJECT=0 ENABLE_SVG_AS_IMAGE=0
67
68     INCLUDEPATH += $$PWD/../JavaScriptCore/os-wince
69     INCLUDEPATH += $$PWD/../JavaScriptCore/os-win32
70 }
71
72 # Pick up 3rdparty libraries from INCLUDE/LIB just like with MSVC
73 win32-g++ {
74     TMPPATH            = $$quote($$(INCLUDE))
75     QMAKE_INCDIR_POST += $$split(TMPPATH,";")
76     TMPPATH            = $$quote($$(LIB))
77     QMAKE_LIBDIR_POST += $$split(TMPPATH,";")
78 }
79
80 # Try to locate sqlite3 source
81 CONFIG(QTDIR_build) {
82     SQLITE3SRCDIR = $$QT_SOURCE_TREE/src/3rdparty/sqlite/
83 } else {
84     SQLITE3SRCDIR = $$(SQLITE3SRCDIR)
85     isEmpty(SQLITE3SRCDIR) {
86         SQLITE3SRCDIR = $$[QT_INSTALL_PREFIX]/src/3rdparty/sqlite/
87     } 
88 }
89
90 # Optional components (look for defs in config.h and included files!)
91
92 contains(DEFINES, ENABLE_SINGLE_THREADED=1) {
93     DEFINES+=ENABLE_DATABASE=0 ENABLE_DOM_STORAGE=0 ENABLE_ICONDATABASE=0 ENABLE_WORKERS=0
94 }
95
96 # turn off SQLITE support if we do not have sqlite3 available
97 !CONFIG(QTDIR_build):win32-*:!exists( $${SQLITE3SRCDIR}/sqlite3.c ): DEFINES += ENABLE_SQLITE=0 ENABLE_DATABASE=0 ENABLE_ICONDATABASE=0 ENABLE_OFFLINE_WEB_APPLICATIONS=0 ENABLE_DOM_STORAGE=0
98
99 !contains(DEFINES, ENABLE_JAVASCRIPT_DEBUGGER=.): DEFINES += ENABLE_JAVASCRIPT_DEBUGGER=1
100 !contains(DEFINES, ENABLE_DATABASE=.): DEFINES += ENABLE_DATABASE=1
101 !contains(DEFINES, ENABLE_OFFLINE_WEB_APPLICATIONS=.): DEFINES += ENABLE_OFFLINE_WEB_APPLICATIONS=1
102 !contains(DEFINES, ENABLE_DOM_STORAGE=.): DEFINES += ENABLE_DOM_STORAGE=1
103 !contains(DEFINES, ENABLE_ICONDATABASE=.): DEFINES += ENABLE_ICONDATABASE=1
104
105 # turn on SQLITE support if any of the dependent features are turned on
106 !contains(DEFINES, ENABLE_SQLITE=.) {
107   contains(DEFINES, ENABLE_DATABASE=1)|contains(DEFINES, ENABLE_ICONDATABASE=1)|contains(DEFINES, ENABLE_DOM_STORAGE=1)|contains(DEFINES, ENABLE_OFFLINE_WEB_APPLICATIONS=1) {
108     DEFINES += ENABLE_SQLITE=1
109   } else {
110     DEFINES += ENABLE_SQLITE=0
111   }
112 }
113
114 !contains(DEFINES, ENABLE_DASHBOARD_SUPPORT=.): DEFINES += ENABLE_DASHBOARD_SUPPORT=0
115 !contains(DEFINES, ENABLE_FILTERS=.): DEFINES += ENABLE_FILTERS=0
116 !contains(DEFINES, ENABLE_XPATH=.): DEFINES += ENABLE_XPATH=1
117 !contains(DEFINES, ENABLE_XSLT=.): DEFINES += ENABLE_XSLT=0
118 #!contains(DEFINES, ENABLE_XBL=.): DEFINES += ENABLE_XBL=1
119 !contains(DEFINES, ENABLE_WML=.): DEFINES += ENABLE_WML=0
120 !contains(DEFINES, ENABLE_WORKERS=.): DEFINES += ENABLE_WORKERS=1
121 !contains(DEFINES, ENABLE_XHTMLMP=.): DEFINES += ENABLE_XHTMLMP=0
122
123 # SVG support
124 !contains(DEFINES, ENABLE_SVG=0) {
125     !contains(DEFINES, ENABLE_SVG=.): DEFINES += ENABLE_SVG=1
126     !contains(DEFINES, ENABLE_SVG_FONTS=.): DEFINES += ENABLE_SVG_FONTS=1
127     !contains(DEFINES, ENABLE_SVG_FOREIGN_OBJECT=.): DEFINES += ENABLE_SVG_FOREIGN_OBJECT=1
128     !contains(DEFINES, ENABLE_SVG_ANIMATION=.): DEFINES += ENABLE_SVG_ANIMATION=1
129     !contains(DEFINES, ENABLE_SVG_AS_IMAGE=.): DEFINES += ENABLE_SVG_AS_IMAGE=1
130     !contains(DEFINES, ENABLE_SVG_USE=.): DEFINES += ENABLE_SVG_USE=1
131 } else {
132     DEFINES += ENABLE_SVG_FONTS=0 ENABLE_SVG_FOREIGN_OBJECT=0 ENABLE_SVG_ANIMATION=0 ENABLE_SVG_AS_IMAGE=0 ENABLE_SVG_USE=0
133 }
134
135 # HTML5 media support
136 !contains(DEFINES, ENABLE_VIDEO=.) {
137     contains(QT_CONFIG, phonon):DEFINES += ENABLE_VIDEO=1
138     else:DEFINES += ENABLE_VIDEO=0
139 }
140
141 # Nescape plugins support (NPAPI)
142 !contains(DEFINES, ENABLE_NETSCAPE_PLUGIN_API=.) {
143     unix|win32-*:!embedded:!wince*:!symbian {
144         DEFINES += ENABLE_NETSCAPE_PLUGIN_API=1
145     } else {
146         DEFINES += ENABLE_NETSCAPE_PLUGIN_API=0
147     }
148 }
149
150 DEFINES += WTF_USE_JAVASCRIPTCORE_BINDINGS=1 WTF_CHANGES=1
151
152 # Ensure that we pick up WebCore's config.h over JavaScriptCore's
153 INCLUDEPATH = $$PWD $$INCLUDEPATH
154
155 include($$PWD/../JavaScriptCore/JavaScriptCore.pri)
156
157 RESOURCES += \
158     $$PWD/../WebCore/inspector/front-end/WebKit.qrc \
159     $$PWD/../WebCore/WebCore.qrc
160 INCLUDEPATH += \
161     $$PWD/platform/qt \
162     $$PWD/platform/network/qt \
163     $$PWD/platform/graphics/filters \
164     $$PWD/platform/graphics/transforms \
165     $$PWD/platform/graphics/qt \
166     $$PWD/page/qt \
167     $$PWD/../WebKit/qt/WebCoreSupport \
168
169 # Make sure storage/ appears before JavaScriptCore/. Both provide LocalStorage.h
170 # but the header from the former include path is included across directories while
171 # LocalStorage.h is included only from files within the same directory
172 INCLUDEPATH = $$PWD/storage $$INCLUDEPATH
173
174 INCLUDEPATH +=  $$PWD/accessibility \
175                 $$PWD/ForwardingHeaders \
176                 $$PWD/platform \
177                 $$PWD/platform/animation \
178                 $$PWD/platform/network \
179                 $$PWD/platform/graphics \
180                 $$PWD/svg/animation \
181                 $$PWD/svg/graphics \
182                 $$PWD/svg/graphics/filters \
183                 $$PWD/platform/sql \
184                 $$PWD/platform/text \
185                 $$PWD/loader \
186                 $$PWD/loader/appcache \
187                 $$PWD/loader/archive \
188                 $$PWD/loader/icon \
189                 $$PWD/css \
190                 $$PWD/dom \
191                 $$PWD/page \
192                 $$PWD/page/animation \
193                 $$PWD/editing \
194                 $$PWD/rendering \
195                 $$PWD/rendering/style \
196                 $$PWD/history \
197                 $$PWD/inspector \
198                 $$PWD/xml \
199                 $$PWD/html \
200                 $$PWD/wml \
201                 $$PWD/workers \
202                 $$PWD/bindings/js \
203                 $$PWD/svg \
204                 $$PWD/platform/image-decoders \
205                 $$PWD/plugins \
206                 $$PWD/bridge \
207                 $$PWD/bridge/c \
208                 $$PWD/bridge/qt
209 INCLUDEPATH *=  $$GENERATED_SOURCES_DIR
210
211 QT += network
212 lessThan(QT_MINOR_VERSION, 4): QT += xml
213
214 QMAKE_EXTRA_TARGETS += generated_files
215
216 FEATURE_DEFINES_JAVASCRIPT = LANGUAGE_JAVASCRIPT=1
217
218 TOKENIZER = $$PWD/css/tokenizer.flex
219
220 DOCTYPESTRINGS = $$PWD/html/DocTypeStrings.gperf
221
222 CSSBISON = $$PWD/css/CSSGrammar.y
223
224 HTML_NAMES = $$PWD/html/HTMLTagNames.in
225
226 XML_NAMES = $$PWD/xml/xmlattrs.in
227
228 ENTITIES_GPERF = $$PWD/html/HTMLEntityNames.gperf
229
230 COLORDAT_GPERF = $$PWD/platform/ColorData.gperf
231
232 WALDOCSSPROPS = $$PWD/css/CSSPropertyNames.in
233
234 WALDOCSSVALUES = $$PWD/css/CSSValueKeywords.in
235
236 DASHBOARDSUPPORTCSSPROPERTIES = $$PWD/css/DashboardSupportCSSPropertyNames.in
237
238 SVGCSSPROPERTIES = $$PWD/css/SVGCSSPropertyNames.in
239
240 SVGCSSVALUES = $$PWD/css/SVGCSSValueKeywords.in
241
242 STYLESHEETS_EMBED = \
243     $$PWD/css/html4.css \
244     $$PWD/css/quirks.css \
245     $$PWD/css/svg.css \
246     $$PWD/css/view-source.css \
247     $$PWD/css/wml.css \
248     $$PWD/css/mediaControls.css
249
250 DOMLUT_FILES += \
251     bindings/js/JSDOMWindowBase.cpp \
252     bindings/js/JSRGBColor.cpp \
253     bindings/js/JSWorkerContextBase.cpp
254
255 IDL_BINDINGS += \
256     css/Counter.idl \
257     css/CSSCharsetRule.idl \
258     css/CSSFontFaceRule.idl \
259     css/CSSImportRule.idl \
260     css/CSSMediaRule.idl \
261     css/CSSPageRule.idl \
262     css/CSSPrimitiveValue.idl \
263     css/CSSRule.idl \
264     css/CSSRuleList.idl \
265     css/CSSStyleDeclaration.idl \
266     css/CSSStyleRule.idl \
267     css/CSSStyleSheet.idl \
268     css/CSSValue.idl \
269     css/CSSValueList.idl \
270     css/CSSVariablesDeclaration.idl \
271     css/CSSVariablesRule.idl \
272     css/MediaList.idl \
273     css/Rect.idl \
274     css/StyleSheet.idl \
275     css/StyleSheetList.idl \
276     css/WebKitCSSKeyframeRule.idl \
277     css/WebKitCSSKeyframesRule.idl \
278     css/WebKitCSSMatrix.idl \
279     css/WebKitCSSTransformValue.idl \
280     dom/Attr.idl \
281     dom/CharacterData.idl \
282     dom/ClientRect.idl \
283     dom/ClientRectList.idl \
284     dom/Clipboard.idl \
285     dom/CDATASection.idl \
286     dom/Comment.idl \
287     dom/DocumentFragment.idl \
288     dom/Document.idl \
289     dom/DocumentType.idl \
290     dom/DOMCoreException.idl \
291     dom/DOMImplementation.idl \
292     dom/DOMStringList.idl \
293     dom/Element.idl \
294     dom/Entity.idl \
295     dom/EntityReference.idl \
296     dom/Event.idl \
297     dom/EventException.idl \
298 #    dom/EventListener.idl \
299 #    dom/EventTarget.idl \
300     dom/KeyboardEvent.idl \
301     dom/MouseEvent.idl \
302     dom/MessageChannel.idl \
303     dom/MessageEvent.idl \
304     dom/MessagePort.idl \
305     dom/MutationEvent.idl \
306     dom/NamedNodeMap.idl \
307     dom/Node.idl \
308     dom/NodeFilter.idl \
309     dom/NodeIterator.idl \
310     dom/NodeList.idl \
311     dom/Notation.idl \
312     dom/OverflowEvent.idl \
313     dom/ProcessingInstruction.idl \
314     dom/ProgressEvent.idl \
315     dom/RangeException.idl \
316     dom/Range.idl \
317     dom/Text.idl \
318     dom/TextEvent.idl \
319     dom/TreeWalker.idl \
320     dom/UIEvent.idl \
321     dom/WebKitAnimationEvent.idl \
322     dom/WebKitTransitionEvent.idl \
323     dom/WheelEvent.idl \
324     html/CanvasGradient.idl \
325     html/CanvasPattern.idl \
326     html/CanvasRenderingContext2D.idl \
327     html/File.idl \
328     html/FileList.idl \
329     html/HTMLAudioElement.idl \
330     html/HTMLAnchorElement.idl \
331     html/HTMLAppletElement.idl \
332     html/HTMLAreaElement.idl \
333     html/HTMLBaseElement.idl \
334     html/HTMLBaseFontElement.idl \
335     html/HTMLBlockquoteElement.idl \
336     html/HTMLBodyElement.idl \
337     html/HTMLBRElement.idl \
338     html/HTMLButtonElement.idl \
339     html/HTMLCanvasElement.idl \
340     html/HTMLCollection.idl \
341     html/HTMLDirectoryElement.idl \
342     html/HTMLDivElement.idl \
343     html/HTMLDListElement.idl \
344     html/HTMLDocument.idl \
345     html/HTMLElement.idl \
346     html/HTMLEmbedElement.idl \
347     html/HTMLFieldSetElement.idl \
348     html/HTMLFontElement.idl \
349     html/HTMLFormElement.idl \
350     html/HTMLFrameElement.idl \
351     html/HTMLFrameSetElement.idl \
352     html/HTMLHeadElement.idl \
353     html/HTMLHeadingElement.idl \
354     html/HTMLHRElement.idl \
355     html/HTMLHtmlElement.idl \
356     html/HTMLIFrameElement.idl \
357     html/HTMLImageElement.idl \
358     html/HTMLInputElement.idl \
359     html/HTMLIsIndexElement.idl \
360     html/HTMLLabelElement.idl \
361     html/HTMLLegendElement.idl \
362     html/HTMLLIElement.idl \
363     html/HTMLLinkElement.idl \
364     html/HTMLMapElement.idl \
365     html/HTMLMarqueeElement.idl \
366     html/HTMLMediaElement.idl \
367     html/HTMLMenuElement.idl \
368     html/HTMLMetaElement.idl \
369     html/HTMLModElement.idl \
370     html/HTMLObjectElement.idl \
371     html/HTMLOListElement.idl \
372     html/HTMLOptGroupElement.idl \
373     html/HTMLOptionElement.idl \
374     html/HTMLOptionsCollection.idl \
375     html/HTMLParagraphElement.idl \
376     html/HTMLParamElement.idl \
377     html/HTMLPreElement.idl \
378     html/HTMLQuoteElement.idl \
379     html/HTMLScriptElement.idl \
380     html/HTMLSelectElement.idl \
381     html/HTMLSourceElement.idl \
382     html/HTMLStyleElement.idl \
383     html/HTMLTableCaptionElement.idl \
384     html/HTMLTableCellElement.idl \
385     html/HTMLTableColElement.idl \
386     html/HTMLTableElement.idl \
387     html/HTMLTableRowElement.idl \
388     html/HTMLTableSectionElement.idl \
389     html/HTMLTextAreaElement.idl \
390     html/HTMLTitleElement.idl \
391     html/HTMLUListElement.idl \
392     html/HTMLVideoElement.idl \
393     html/ImageData.idl \
394     html/MediaError.idl \
395     html/TextMetrics.idl \
396     html/VoidCallback.idl \
397     inspector/InspectorController.idl \
398     page/BarInfo.idl \
399     page/Console.idl \
400     page/Coordinates.idl \
401     page/DOMSelection.idl \
402     page/DOMWindow.idl \
403     page/Geolocation.idl \
404     page/Geoposition.idl \
405     page/History.idl \
406     page/Location.idl \
407     page/Navigator.idl \
408     page/PositionError.idl \
409     page/Screen.idl \
410     page/WebKitPoint.idl \
411     plugins/Plugin.idl \
412     plugins/MimeType.idl \
413     plugins/PluginArray.idl \
414     plugins/MimeTypeArray.idl \
415     xml/DOMParser.idl \
416     xml/XMLHttpRequest.idl \
417     xml/XMLHttpRequestException.idl \
418     xml/XMLHttpRequestProgressEvent.idl \
419     xml/XMLHttpRequestUpload.idl \
420     xml/XMLSerializer.idl
421
422
423 SOURCES += \
424     accessibility/AccessibilityImageMapLink.cpp \
425     accessibility/AccessibilityObject.cpp \    
426     accessibility/AccessibilityList.cpp \    
427     accessibility/AccessibilityListBox.cpp \    
428     accessibility/AccessibilityListBoxOption.cpp \    
429     accessibility/AccessibilityRenderObject.cpp \    
430     accessibility/AccessibilityARIAGrid.cpp \    
431     accessibility/AccessibilityARIAGridCell.cpp \    
432     accessibility/AccessibilityARIAGridRow.cpp \    
433     accessibility/AccessibilityTable.cpp \    
434     accessibility/AccessibilityTableCell.cpp \    
435     accessibility/AccessibilityTableColumn.cpp \    
436     accessibility/AccessibilityTableHeaderContainer.cpp \    
437     accessibility/AccessibilityTableRow.cpp \    
438     accessibility/AXObjectCache.cpp \
439     bindings/js/GCController.cpp \
440     bindings/js/JSAttrCustom.cpp \
441     bindings/js/JSCDATASectionCustom.cpp \
442     bindings/js/JSCanvasRenderingContext2DCustom.cpp \
443     bindings/js/JSClipboardCustom.cpp \
444     bindings/js/JSConsoleCustom.cpp \
445     bindings/js/JSCSSRuleCustom.cpp \
446     bindings/js/JSCSSStyleDeclarationCustom.cpp \
447     bindings/js/JSCSSValueCustom.cpp \
448     bindings/js/JSCoordinatesCustom.cpp \
449     bindings/js/JSCustomPositionCallback.cpp \
450     bindings/js/JSCustomPositionErrorCallback.cpp \
451     bindings/js/JSCustomVoidCallback.cpp \
452     bindings/js/JSCustomXPathNSResolver.cpp \
453     bindings/js/JSDocumentCustom.cpp \
454     bindings/js/JSDocumentFragmentCustom.cpp \
455     bindings/js/JSDOMGlobalObject.cpp \
456     bindings/js/JSDOMStringListCustom.cpp \
457     bindings/js/JSDOMWindowBase.cpp \
458     bindings/js/JSDOMWindowCustom.cpp \
459     bindings/js/JSDOMWindowShell.cpp \
460     bindings/js/JSElementCustom.cpp \
461     bindings/js/JSEventCustom.cpp \
462     bindings/js/JSEventTarget.cpp \
463     bindings/js/JSGeolocationCustom.cpp \
464     bindings/js/JSHTMLAllCollection.cpp \
465     bindings/js/JSHistoryCustom.cpp \
466     bindings/js/JSHTMLAppletElementCustom.cpp \
467     bindings/js/JSHTMLCollectionCustom.cpp \
468     bindings/js/JSHTMLDocumentCustom.cpp \
469     bindings/js/JSHTMLElementCustom.cpp \
470     bindings/js/JSHTMLEmbedElementCustom.cpp \
471     bindings/js/JSHTMLFormElementCustom.cpp \
472     bindings/js/JSHTMLFrameElementCustom.cpp \
473     bindings/js/JSHTMLFrameSetElementCustom.cpp \
474     bindings/js/JSHTMLIFrameElementCustom.cpp \
475     bindings/js/JSHTMLInputElementCustom.cpp \
476     bindings/js/JSHTMLObjectElementCustom.cpp \
477     bindings/js/JSHTMLOptionsCollectionCustom.cpp \
478     bindings/js/JSHTMLSelectElementCustom.cpp \
479     bindings/js/JSImageConstructor.cpp \
480     bindings/js/JSImageDataCustom.cpp \
481     bindings/js/JSInspectedObjectWrapper.cpp \
482     bindings/js/JSInspectorCallbackWrapper.cpp \
483     bindings/js/JSInspectorControllerCustom.cpp \
484     bindings/js/JSLocationCustom.cpp \
485     bindings/js/JSNamedNodeMapCustom.cpp \
486     bindings/js/JSNamedNodesCollection.cpp  \
487     bindings/js/JSNavigatorCustom.cpp  \
488     bindings/js/JSNodeCustom.cpp \
489     bindings/js/JSNodeFilterCondition.cpp \
490     bindings/js/JSNodeFilterCustom.cpp \
491     bindings/js/JSNodeIteratorCustom.cpp \
492     bindings/js/JSNodeListCustom.cpp \
493     bindings/js/JSOptionConstructor.cpp \
494     bindings/js/JSQuarantinedObjectWrapper.cpp \
495     bindings/js/JSRGBColor.cpp \
496     bindings/js/JSStyleSheetCustom.cpp \
497     bindings/js/JSStyleSheetListCustom.cpp \
498     bindings/js/JSTextCustom.cpp \
499     bindings/js/JSTreeWalkerCustom.cpp \
500     bindings/js/JSWebKitCSSMatrixConstructor.cpp \
501     bindings/js/JSWebKitPointConstructor.cpp \
502     bindings/js/JSXMLHttpRequestConstructor.cpp \
503     bindings/js/JSXMLHttpRequestCustom.cpp \
504     bindings/js/JSXMLHttpRequestUploadCustom.cpp \
505     bindings/js/JSPluginCustom.cpp \
506     bindings/js/JSPluginArrayCustom.cpp \
507     bindings/js/JSMessageChannelConstructor.cpp \
508     bindings/js/JSMessageChannelCustom.cpp \
509     bindings/js/JSMessagePortCustom.cpp \
510     bindings/js/JSMimeTypeArrayCustom.cpp \
511     bindings/js/JSDOMBinding.cpp \
512     bindings/js/JSEventListener.cpp \
513     bindings/js/JSLazyEventListener.cpp \
514     bindings/js/JSPluginElementFunctions.cpp \
515     bindings/js/ScriptCachedFrameData.cpp \
516     bindings/js/ScriptCallFrame.cpp \
517     bindings/js/ScriptCallStack.cpp \
518     bindings/js/ScriptController.cpp \
519     bindings/js/ScriptEventListener.cpp \
520     bindings/js/ScriptFunctionCall.cpp \
521     bindings/js/ScriptObject.cpp \
522     bindings/js/ScriptObjectQuarantine.cpp \
523     bindings/js/ScriptState.cpp \
524     bindings/js/ScriptValue.cpp \
525     bindings/js/ScheduledAction.cpp \
526     bridge/IdentifierRep.cpp \
527     bridge/NP_jsobject.cpp \
528     bridge/npruntime.cpp \
529     bridge/runtime_array.cpp \
530     bridge/runtime.cpp \
531     bridge/runtime_method.cpp \
532     bridge/runtime_object.cpp \
533     bridge/runtime_root.cpp \
534     bridge/c/c_class.cpp \
535     bridge/c/c_instance.cpp \
536     bridge/c/c_runtime.cpp \
537     bridge/c/c_utility.cpp \
538     css/CSSBorderImageValue.cpp \
539     css/CSSCanvasValue.cpp \
540     css/CSSCharsetRule.cpp \
541     css/CSSComputedStyleDeclaration.cpp \
542     css/CSSCursorImageValue.cpp \
543     css/CSSFontFace.cpp \
544     css/CSSFontFaceRule.cpp \
545     css/CSSFontFaceSrcValue.cpp \
546     css/CSSFontSelector.cpp \
547     css/CSSFontFaceSource.cpp \
548     css/CSSFunctionValue.cpp \
549     css/CSSGradientValue.cpp \
550     css/CSSHelper.cpp \
551     css/CSSImageValue.cpp \
552     css/CSSImageGeneratorValue.cpp \
553     css/CSSImportRule.cpp \
554     css/CSSInheritedValue.cpp \
555     css/CSSInitialValue.cpp \
556     css/CSSMediaRule.cpp \
557     css/CSSMutableStyleDeclaration.cpp \
558     css/CSSPageRule.cpp \
559     css/CSSParser.cpp \
560     css/CSSParserValues.cpp \
561     css/CSSPrimitiveValue.cpp \
562     css/CSSProperty.cpp \
563     css/CSSPropertyLonghand.cpp \
564     css/CSSReflectValue.cpp \
565     css/CSSRule.cpp \
566     css/CSSRuleList.cpp \
567     css/CSSSelector.cpp \
568     css/CSSSelectorList.cpp \
569     css/CSSSegmentedFontFace.cpp \
570     css/CSSStyleDeclaration.cpp \
571     css/CSSStyleRule.cpp \
572     css/CSSStyleSelector.cpp \
573     css/CSSStyleSheet.cpp \
574     css/CSSTimingFunctionValue.cpp \
575     css/CSSUnicodeRangeValue.cpp \
576     css/CSSValueList.cpp \
577     css/CSSVariableDependentValue.cpp \
578     css/CSSVariablesDeclaration.cpp \
579     css/CSSVariablesRule.cpp \
580     css/FontFamilyValue.cpp \
581     css/FontValue.cpp \
582     css/MediaFeatureNames.cpp \
583     css/MediaList.cpp \
584     css/MediaQuery.cpp \
585     css/MediaQueryEvaluator.cpp \
586     css/MediaQueryExp.cpp \
587     css/ShadowValue.cpp \
588     css/StyleBase.cpp \
589     css/StyleList.cpp \
590     css/StyleSheet.cpp \
591     css/StyleSheetList.cpp \
592     css/WebKitCSSKeyframeRule.cpp \
593     css/WebKitCSSKeyframesRule.cpp \
594     css/WebKitCSSMatrix.cpp \
595     css/WebKitCSSTransformValue.cpp \
596     dom/ActiveDOMObject.cpp \
597     dom/Attr.cpp \
598     dom/Attribute.cpp \
599     dom/BeforeTextInsertedEvent.cpp \
600     dom/BeforeUnloadEvent.cpp \
601     dom/CDATASection.cpp \
602     dom/CharacterData.cpp \
603     dom/CheckedRadioButtons.cpp \
604     dom/ChildNodeList.cpp \
605     dom/ClassNames.cpp \
606     dom/ClassNodeList.cpp \
607     dom/ClientRect.cpp \
608     dom/ClientRectList.cpp \
609     dom/Clipboard.cpp \
610     dom/ClipboardEvent.cpp \
611     dom/Comment.cpp \
612     dom/ContainerNode.cpp \
613     dom/CSSMappedAttributeDeclaration.cpp \
614     dom/Document.cpp \
615     dom/DocumentFragment.cpp \
616     dom/DocumentType.cpp \
617     dom/DOMImplementation.cpp \
618     dom/DOMStringList.cpp \
619     dom/DynamicNodeList.cpp \
620     dom/EditingText.cpp \
621     dom/Element.cpp \
622     dom/Entity.cpp \
623     dom/EntityReference.cpp \
624     dom/Event.cpp \
625     dom/EventNames.cpp \
626     dom/EventTarget.cpp \
627     dom/ExceptionBase.cpp \
628     dom/ExceptionCode.cpp \
629     dom/InputElement.cpp \
630     dom/KeyboardEvent.cpp \
631     dom/MappedAttribute.cpp \
632     dom/MessageChannel.cpp \
633     dom/MessageEvent.cpp \
634     dom/MessagePort.cpp \
635     dom/MouseEvent.cpp \
636     dom/MouseRelatedEvent.cpp \
637     dom/MutationEvent.cpp \
638     dom/NamedAttrMap.cpp \
639     dom/NamedMappedAttrMap.cpp \
640     dom/NameNodeList.cpp \
641     dom/Node.cpp \
642     dom/NodeFilterCondition.cpp \
643     dom/NodeFilter.cpp \
644     dom/NodeIterator.cpp \
645     dom/Notation.cpp \
646     dom/OptionGroupElement.cpp \
647     dom/OptionElement.cpp \
648     dom/OverflowEvent.cpp \
649     dom/Position.cpp \
650     dom/PositionIterator.cpp \
651     dom/ProcessingInstruction.cpp \
652     dom/ProgressEvent.cpp \
653     dom/QualifiedName.cpp \
654     dom/Range.cpp \
655     dom/RegisteredEventListener.cpp \
656     dom/ScriptElement.cpp \
657     dom/ScriptExecutionContext.cpp \
658     dom/SelectElement.cpp \
659     dom/SelectorNodeList.cpp \
660     dom/StaticNodeList.cpp \
661     dom/StaticStringList.cpp \
662     dom/StyledElement.cpp \
663     dom/StyleElement.cpp \
664     dom/TagNodeList.cpp \
665     dom/Text.cpp \
666     dom/TextEvent.cpp \
667     dom/Traversal.cpp \
668     dom/TreeWalker.cpp \
669     dom/UIEvent.cpp \
670     dom/UIEventWithKeyState.cpp \
671     dom/WebKitAnimationEvent.cpp \
672     dom/WebKitTransitionEvent.cpp \
673     dom/WheelEvent.cpp \
674     dom/XMLTokenizer.cpp \
675     dom/XMLTokenizerQt.cpp \
676     dom/XMLTokenizerScope.cpp \
677     editing/AppendNodeCommand.cpp \
678     editing/ApplyStyleCommand.cpp \
679     editing/BreakBlockquoteCommand.cpp \
680     editing/CompositeEditCommand.cpp \
681     editing/CreateLinkCommand.cpp \
682     editing/DeleteButtonController.cpp \
683     editing/DeleteButton.cpp \
684     editing/DeleteFromTextNodeCommand.cpp \
685     editing/DeleteSelectionCommand.cpp \
686     editing/EditCommand.cpp \
687     editing/Editor.cpp \
688     editing/EditorCommand.cpp \
689     editing/FormatBlockCommand.cpp \
690     editing/htmlediting.cpp \
691     editing/HTMLInterchange.cpp \
692     editing/IndentOutdentCommand.cpp \
693     editing/InsertIntoTextNodeCommand.cpp \
694     editing/InsertLineBreakCommand.cpp \
695     editing/InsertListCommand.cpp \
696     editing/InsertNodeBeforeCommand.cpp \
697     editing/InsertParagraphSeparatorCommand.cpp \
698     editing/InsertTextCommand.cpp \
699     editing/JoinTextNodesCommand.cpp \
700     editing/markup.cpp \
701     editing/MergeIdenticalElementsCommand.cpp \
702     editing/ModifySelectionListLevel.cpp \
703     editing/MoveSelectionCommand.cpp \
704     editing/RemoveCSSPropertyCommand.cpp \
705     editing/RemoveFormatCommand.cpp \
706     editing/RemoveNodeCommand.cpp \
707     editing/RemoveNodePreservingChildrenCommand.cpp \
708     editing/ReplaceNodeWithSpanCommand.cpp \
709     editing/ReplaceSelectionCommand.cpp \
710     editing/SelectionController.cpp \
711     editing/SetNodeAttributeCommand.cpp \
712     editing/SmartReplace.cpp \
713     editing/SmartReplaceICU.cpp \
714     editing/SplitElementCommand.cpp \
715     editing/SplitTextNodeCommand.cpp \
716     editing/SplitTextNodeContainingElementCommand.cpp \
717     editing/TextIterator.cpp \
718     editing/TypingCommand.cpp \
719     editing/UnlinkCommand.cpp \
720     editing/VisiblePosition.cpp \
721     editing/VisibleSelection.cpp \
722     editing/visible_units.cpp \
723     editing/WrapContentsInDummySpanCommand.cpp \
724     history/BackForwardList.cpp \
725     history/CachedFrame.cpp \
726     history/CachedPage.cpp \
727     history/HistoryItem.cpp \
728     history/PageCache.cpp \
729     html/CanvasGradient.cpp \
730     html/CanvasPattern.cpp \
731     html/CanvasPixelArray.cpp \
732     html/CanvasRenderingContext2D.cpp \
733     html/CanvasStyle.cpp \
734     html/CollectionCache.cpp \
735     html/File.cpp \
736     html/FileList.cpp \
737     html/FormDataList.cpp \
738     html/HTMLAnchorElement.cpp \
739     html/HTMLAppletElement.cpp \
740     html/HTMLAreaElement.cpp \
741     html/HTMLBaseElement.cpp \
742     html/HTMLBaseFontElement.cpp \
743     html/HTMLBlockquoteElement.cpp \
744     html/HTMLBodyElement.cpp \
745     html/HTMLBRElement.cpp \
746     html/HTMLButtonElement.cpp \
747     html/HTMLCanvasElement.cpp \
748     html/HTMLCollection.cpp \
749     html/HTMLDirectoryElement.cpp \
750     html/HTMLDivElement.cpp \
751     html/HTMLDListElement.cpp \
752     html/HTMLDocument.cpp \
753     html/HTMLElement.cpp \
754     html/HTMLEmbedElement.cpp \
755     html/HTMLFieldSetElement.cpp \
756     html/HTMLFontElement.cpp \
757     html/HTMLFormCollection.cpp \
758     html/HTMLFormElement.cpp \
759     html/HTMLFrameElementBase.cpp \
760     html/HTMLFrameElement.cpp \
761     html/HTMLFrameOwnerElement.cpp \
762     html/HTMLFrameSetElement.cpp \
763     html/HTMLFormControlElement.cpp \
764     html/HTMLHeadElement.cpp \
765     html/HTMLHeadingElement.cpp \
766     html/HTMLHRElement.cpp \
767     html/HTMLHtmlElement.cpp \
768     html/HTMLIFrameElement.cpp \
769     html/HTMLImageElement.cpp \
770     html/HTMLImageLoader.cpp \
771     html/HTMLInputElement.cpp \
772     html/HTMLIsIndexElement.cpp \
773     html/HTMLKeygenElement.cpp \
774     html/HTMLLabelElement.cpp \
775     html/HTMLLegendElement.cpp \
776     html/HTMLLIElement.cpp \
777     html/HTMLLinkElement.cpp \
778     html/HTMLMapElement.cpp \
779     html/HTMLMarqueeElement.cpp \
780     html/HTMLMenuElement.cpp \
781     html/HTMLMetaElement.cpp \
782     html/HTMLModElement.cpp \
783     html/HTMLNameCollection.cpp \
784     html/HTMLObjectElement.cpp \
785     html/HTMLOListElement.cpp \
786     html/HTMLOptGroupElement.cpp \
787     html/HTMLOptionElement.cpp \
788     html/HTMLOptionsCollection.cpp \
789     html/HTMLParagraphElement.cpp \
790     html/HTMLParamElement.cpp \
791     html/HTMLParser.cpp \
792     html/HTMLParserErrorCodes.cpp \
793     html/HTMLPlugInElement.cpp \
794     html/HTMLPlugInImageElement.cpp \
795     html/HTMLPreElement.cpp \
796     html/HTMLQuoteElement.cpp \
797     html/HTMLScriptElement.cpp \
798     html/HTMLNoScriptElement.cpp \
799     html/HTMLSelectElement.cpp \
800     html/HTMLStyleElement.cpp \
801     html/HTMLTableCaptionElement.cpp \
802     html/HTMLTableCellElement.cpp \
803     html/HTMLTableColElement.cpp \
804     html/HTMLTableElement.cpp \
805     html/HTMLTablePartElement.cpp \
806     html/HTMLTableRowElement.cpp \
807     html/HTMLTableRowsCollection.cpp \
808     html/HTMLTableSectionElement.cpp \
809     html/HTMLTextAreaElement.cpp \
810     html/HTMLTitleElement.cpp \
811     html/HTMLTokenizer.cpp \
812     html/HTMLUListElement.cpp \
813     html/HTMLViewSourceDocument.cpp \
814     html/ImageData.cpp \
815     html/PreloadScanner.cpp \
816     inspector/ConsoleMessage.cpp \
817     inspector/InspectorDatabaseResource.cpp \
818     inspector/InspectorDOMStorageResource.cpp \
819     inspector/InspectorController.cpp \
820     inspector/InspectorFrontend.cpp \
821     inspector/InspectorResource.cpp \
822     inspector/JSONObject.cpp \
823     loader/archive/ArchiveFactory.cpp \
824     loader/archive/ArchiveResource.cpp \
825     loader/archive/ArchiveResourceCollection.cpp \
826     loader/UserStyleSheetLoader.cpp \
827     loader/Cache.cpp \
828     loader/CachedCSSStyleSheet.cpp \
829     loader/CachedFont.cpp \
830     loader/CachedImage.cpp \
831     loader/CachedResourceClientWalker.cpp \
832     loader/CachedResourceHandle.cpp \
833     loader/CachedResource.cpp \
834     loader/CachedScript.cpp \
835     loader/CachedXSLStyleSheet.cpp \
836     loader/CrossOriginAccessControl.cpp \
837     loader/CrossOriginPreflightResultCache.cpp \
838     loader/DocLoader.cpp \
839     loader/DocumentLoader.cpp \
840     loader/DocumentThreadableLoader.cpp \
841     loader/FormState.cpp \
842     loader/FrameLoader.cpp \
843     loader/FTPDirectoryDocument.cpp \
844     loader/FTPDirectoryParser.cpp \
845     loader/icon/IconLoader.cpp \
846     loader/ImageDocument.cpp \
847     loader/ImageLoader.cpp \
848     loader/loader.cpp \
849     loader/MainResourceLoader.cpp \
850     loader/MediaDocument.cpp \
851     loader/NavigationAction.cpp \
852     loader/NetscapePlugInStreamLoader.cpp \
853     loader/PluginDocument.cpp \
854     loader/ProgressTracker.cpp \
855     loader/Request.cpp \
856     loader/ResourceLoader.cpp \
857     loader/SubresourceLoader.cpp \
858     loader/TextDocument.cpp \
859     loader/TextResourceDecoder.cpp \
860     loader/ThreadableLoader.cpp \
861     page/animation/AnimationBase.cpp \
862     page/animation/AnimationController.cpp \
863     page/animation/CompositeAnimation.cpp \
864     page/animation/ImplicitAnimation.cpp \
865     page/animation/KeyframeAnimation.cpp \
866     page/BarInfo.cpp \
867     page/Chrome.cpp \
868     page/Console.cpp \
869     page/ContextMenuController.cpp \
870     page/Coordinates.cpp \
871     page/DOMSelection.cpp \
872     page/DOMTimer.cpp \
873     page/DOMWindow.cpp \
874     page/Navigator.cpp \
875     page/NavigatorBase.cpp \
876     page/DragController.cpp \
877     page/EventHandler.cpp \
878     page/FocusController.cpp \
879     page/Frame.cpp \
880     page/FrameTree.cpp \
881     page/FrameView.cpp \
882     page/Geolocation.cpp \
883     page/Geoposition.cpp \
884     page/History.cpp \
885     page/Location.cpp \
886     page/MouseEventWithHitTestResults.cpp \
887     page/Page.cpp \
888     page/PageGroup.cpp \
889     page/PageGroupLoadDeferrer.cpp \
890     page/PrintContext.cpp \
891     page/SecurityOrigin.cpp \
892     page/Screen.cpp \
893     page/Settings.cpp \
894     page/WindowFeatures.cpp \
895     plugins/PluginData.cpp \
896     plugins/PluginArray.cpp \
897     plugins/Plugin.cpp \
898     plugins/PluginMainThreadScheduler.cpp \
899     plugins/MimeType.cpp \
900     plugins/MimeTypeArray.cpp \
901     platform/animation/Animation.cpp \
902     platform/animation/AnimationList.cpp \
903     platform/Arena.cpp \
904     platform/text/AtomicString.cpp \
905     platform/text/Base64.cpp \
906     platform/text/BidiContext.cpp \
907     platform/ContentType.cpp \
908     platform/ContextMenu.cpp \
909     platform/CrossThreadCopier.cpp \
910     platform/text/CString.cpp \
911     platform/DeprecatedPtrListImpl.cpp \
912     platform/DragData.cpp \
913     platform/DragImage.cpp \
914     platform/FileChooser.cpp \
915     platform/GeolocationService.cpp \
916     platform/graphics/FontDescription.cpp \
917     platform/graphics/FontFamily.cpp \
918     platform/graphics/BitmapImage.cpp \
919     platform/graphics/Color.cpp \
920     platform/graphics/FloatPoint3D.cpp \
921     platform/graphics/FloatPoint.cpp \
922     platform/graphics/FloatQuad.cpp \
923     platform/graphics/FloatRect.cpp \
924     platform/graphics/FloatSize.cpp \
925     platform/graphics/FontData.cpp \
926     platform/graphics/Font.cpp \
927     platform/graphics/GeneratedImage.cpp \
928     platform/graphics/Gradient.cpp \
929     platform/graphics/GraphicsContext.cpp \
930     platform/graphics/GraphicsTypes.cpp \
931     platform/graphics/Image.cpp \
932     platform/graphics/IntRect.cpp \
933     platform/graphics/Path.cpp \
934     platform/graphics/PathTraversalState.cpp \
935     platform/graphics/Pattern.cpp \
936     platform/graphics/Pen.cpp \
937     platform/graphics/SegmentedFontData.cpp \
938     platform/graphics/SimpleFontData.cpp \
939     platform/graphics/transforms/TransformationMatrix.cpp \
940     platform/graphics/transforms/MatrixTransformOperation.cpp \
941     platform/graphics/transforms/Matrix3DTransformOperation.cpp \
942     platform/graphics/transforms/PerspectiveTransformOperation.cpp \
943     platform/graphics/transforms/RotateTransformOperation.cpp \
944     platform/graphics/transforms/ScaleTransformOperation.cpp \
945     platform/graphics/transforms/SkewTransformOperation.cpp \
946     platform/graphics/transforms/TransformOperations.cpp \
947     platform/graphics/transforms/TranslateTransformOperation.cpp \
948     platform/KURL.cpp \
949     platform/Length.cpp \
950     platform/LinkHash.cpp \
951     platform/Logging.cpp \
952     platform/MIMETypeRegistry.cpp \
953     platform/network/AuthenticationChallengeBase.cpp \
954     platform/network/Credential.cpp \
955     platform/network/FormData.cpp \
956     platform/network/FormDataBuilder.cpp \
957     platform/network/HTTPHeaderMap.cpp \
958     platform/network/HTTPParsers.cpp \
959     platform/network/NetworkStateNotifier.cpp \
960     platform/network/ProtectionSpace.cpp \
961     platform/network/ResourceErrorBase.cpp \
962     platform/network/ResourceHandle.cpp \
963     platform/network/ResourceRequestBase.cpp \
964     platform/network/ResourceResponseBase.cpp \
965     platform/text/RegularExpression.cpp \
966     platform/Scrollbar.cpp \
967     platform/ScrollbarThemeComposite.cpp \
968     platform/ScrollView.cpp \
969 #    platform/SearchPopupMenu.cpp \
970     platform/text/SegmentedString.cpp \
971     platform/SharedBuffer.cpp \
972     platform/text/String.cpp \
973     platform/text/StringBuilder.cpp \
974     platform/text/StringImpl.cpp \
975     platform/text/TextCodec.cpp \
976     platform/text/TextCodecLatin1.cpp \
977     platform/text/TextCodecUserDefined.cpp \
978     platform/text/TextCodecUTF16.cpp \
979     platform/text/TextEncoding.cpp \
980     platform/text/TextEncodingDetectorNone.cpp \
981     platform/text/TextEncodingRegistry.cpp \
982     platform/text/TextStream.cpp \
983     platform/ThreadGlobalData.cpp \
984     platform/ThreadTimers.cpp \
985     platform/Timer.cpp \
986     platform/text/UnicodeRange.cpp \
987     platform/Widget.cpp \
988     plugins/PluginDatabase.cpp \
989     plugins/PluginInfoStore.cpp \
990     plugins/PluginPackage.cpp \
991     plugins/PluginStream.cpp \
992     plugins/PluginView.cpp \
993     rendering/AutoTableLayout.cpp \
994     rendering/bidi.cpp \
995     rendering/break_lines.cpp \
996     rendering/CounterNode.cpp \
997     rendering/EllipsisBox.cpp \
998     rendering/FixedTableLayout.cpp \
999     rendering/HitTestResult.cpp \
1000     rendering/InlineBox.cpp \
1001     rendering/InlineFlowBox.cpp \
1002     rendering/InlineTextBox.cpp \
1003     rendering/LayoutState.cpp \
1004     rendering/RenderApplet.cpp \
1005     rendering/RenderArena.cpp \
1006     rendering/RenderBlock.cpp \
1007     rendering/RenderBox.cpp \
1008     rendering/RenderBoxModelObject.cpp \
1009     rendering/RenderBR.cpp \
1010     rendering/RenderButton.cpp \
1011     rendering/RenderCounter.cpp \
1012     rendering/RenderFieldset.cpp \
1013     rendering/RenderFileUploadControl.cpp \
1014     rendering/RenderFlexibleBox.cpp \
1015     rendering/RenderFrame.cpp \
1016     rendering/RenderFrameSet.cpp \
1017     rendering/RenderHTMLCanvas.cpp \
1018     rendering/RenderImage.cpp \
1019     rendering/RenderImageGeneratedContent.cpp \
1020     rendering/RenderInline.cpp \
1021     rendering/RenderLayer.cpp \
1022     rendering/RenderLineBoxList.cpp \
1023     rendering/RenderListBox.cpp \
1024     rendering/RenderListItem.cpp \
1025     rendering/RenderListMarker.cpp \
1026     rendering/RenderMarquee.cpp \
1027     rendering/RenderMenuList.cpp \
1028     rendering/RenderObject.cpp \
1029     rendering/RenderObjectChildList.cpp \
1030     rendering/RenderPart.cpp \
1031     rendering/RenderPartObject.cpp \
1032     rendering/RenderReplaced.cpp \
1033     rendering/RenderReplica.cpp \
1034     rendering/RenderScrollbar.cpp \
1035     rendering/RenderScrollbarPart.cpp \
1036     rendering/RenderScrollbarTheme.cpp \
1037     rendering/RenderSlider.cpp \
1038     rendering/RenderTable.cpp \
1039     rendering/RenderTableCell.cpp \
1040     rendering/RenderTableCol.cpp \
1041     rendering/RenderTableRow.cpp \
1042     rendering/RenderTableSection.cpp \
1043     rendering/RenderText.cpp \
1044     rendering/RenderTextControl.cpp \
1045     rendering/RenderTextControlMultiLine.cpp \
1046     rendering/RenderTextControlSingleLine.cpp \
1047     rendering/RenderTextFragment.cpp \
1048     rendering/RenderTheme.cpp \
1049     rendering/RenderTreeAsText.cpp \
1050     rendering/RenderView.cpp \
1051     rendering/RenderWidget.cpp \
1052     rendering/RenderWordBreak.cpp \
1053     rendering/RootInlineBox.cpp \
1054     rendering/SVGRenderTreeAsText.cpp \
1055     rendering/ScrollBehavior.cpp \
1056     rendering/TextControlInnerElements.cpp \
1057     rendering/TransformState.cpp \
1058     rendering/style/BindingURI.cpp \
1059     rendering/style/ContentData.cpp \
1060     rendering/style/CounterDirectives.cpp \
1061     rendering/style/FillLayer.cpp \
1062     rendering/style/KeyframeList.cpp \
1063     rendering/style/NinePieceImage.cpp \
1064     rendering/style/RenderStyle.cpp \
1065     rendering/style/ShadowData.cpp \
1066     rendering/style/StyleBackgroundData.cpp \
1067     rendering/style/StyleBoxData.cpp \
1068     rendering/style/StyleCachedImage.cpp \
1069     rendering/style/StyleFlexibleBoxData.cpp \
1070     rendering/style/StyleGeneratedImage.cpp \
1071     rendering/style/StyleInheritedData.cpp \
1072     rendering/style/StyleMarqueeData.cpp \
1073     rendering/style/StyleMultiColData.cpp \
1074     rendering/style/StyleRareInheritedData.cpp \
1075     rendering/style/StyleRareNonInheritedData.cpp \
1076     rendering/style/StyleSurroundData.cpp \
1077     rendering/style/StyleTransformData.cpp \
1078     rendering/style/StyleVisualData.cpp \
1079     xml/DOMParser.cpp \
1080     xml/XMLHttpRequest.cpp \
1081     xml/XMLHttpRequestUpload.cpp \
1082     xml/XMLSerializer.cpp 
1083
1084 HEADERS += \
1085     $$PWD/platform/graphics/qt/StillImageQt.h \
1086     $$PWD/platform/qt/QWebPopup.h \
1087     $$PWD/../WebKit/qt/Api/qwebpluginfactory.h \
1088     $$PWD/../WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h \
1089     $$PWD/platform/network/qt/QNetworkReplyHandler.h \
1090     $$PWD/rendering/style/CursorData.h \
1091     $$PWD/rendering/style/CursorList.h \
1092     $$PWD/rendering/style/StyleInheritedData.h \
1093     $$PWD/rendering/style/StyleRareInheritedData.h \
1094     $$PWD/rendering/style/StyleRareNonInheritedData.h \
1095     $$PWD/rendering/style/StyleReflection.h \
1096     $$PWD/../WebKit/qt/Api/qwebsecurityorigin.h \
1097     $$PWD/../WebKit/qt/Api/qwebdatabase.h
1098
1099
1100 SOURCES += \
1101     accessibility/qt/AccessibilityObjectQt.cpp \
1102     bindings/js/ScriptControllerQt.cpp \
1103     bridge/qt/qt_class.cpp \
1104     bridge/qt/qt_instance.cpp \
1105     bridge/qt/qt_runtime.cpp \
1106     page/qt/DragControllerQt.cpp \
1107     page/qt/EventHandlerQt.cpp \
1108     page/qt/FrameQt.cpp \
1109     platform/graphics/qt/TransformationMatrixQt.cpp \
1110     platform/graphics/qt/ColorQt.cpp \
1111     platform/graphics/qt/FontQt.cpp \
1112     platform/graphics/qt/FontQt43.cpp \
1113     platform/graphics/qt/FontPlatformDataQt.cpp \
1114     platform/graphics/qt/FloatPointQt.cpp \
1115     platform/graphics/qt/FloatRectQt.cpp \
1116     platform/graphics/qt/GradientQt.cpp \
1117     platform/graphics/qt/GraphicsContextQt.cpp \
1118     platform/graphics/qt/IconQt.cpp \
1119     platform/graphics/qt/ImageBufferQt.cpp \
1120     platform/graphics/qt/ImageDecoderQt.cpp \
1121     platform/graphics/qt/ImageQt.cpp \
1122     platform/graphics/qt/ImageSourceQt.cpp \
1123     platform/graphics/qt/IntPointQt.cpp \
1124     platform/graphics/qt/IntRectQt.cpp \
1125     platform/graphics/qt/IntSizeQt.cpp \
1126     platform/graphics/qt/PathQt.cpp \
1127     platform/graphics/qt/PatternQt.cpp \
1128     platform/graphics/qt/StillImageQt.cpp \
1129     platform/network/qt/ResourceHandleQt.cpp \
1130     platform/network/qt/ResourceRequestQt.cpp \
1131     platform/network/qt/QNetworkReplyHandler.cpp \
1132     editing/qt/EditorQt.cpp \
1133     platform/qt/ClipboardQt.cpp \
1134     platform/qt/ContextMenuItemQt.cpp \
1135     platform/qt/ContextMenuQt.cpp \
1136     platform/qt/CookieJarQt.cpp \
1137     platform/qt/CursorQt.cpp \
1138     platform/qt/DragDataQt.cpp \
1139     platform/qt/DragImageQt.cpp \
1140     platform/qt/EventLoopQt.cpp \
1141     platform/qt/FileChooserQt.cpp \
1142     platform/qt/FileSystemQt.cpp \
1143     platform/qt/SharedBufferQt.cpp \
1144     platform/graphics/qt/FontCacheQt.cpp \
1145     platform/graphics/qt/FontCustomPlatformData.cpp \
1146     platform/graphics/qt/FontFallbackListQt.cpp \
1147     platform/graphics/qt/GlyphPageTreeNodeQt.cpp \
1148     platform/graphics/qt/SimpleFontDataQt.cpp \
1149     platform/qt/KURLQt.cpp \
1150     platform/qt/Localizations.cpp \
1151     platform/qt/MIMETypeRegistryQt.cpp \
1152     platform/qt/PasteboardQt.cpp \
1153     platform/qt/PlatformKeyboardEventQt.cpp \
1154     platform/qt/PlatformMouseEventQt.cpp \
1155     platform/qt/PlatformScreenQt.cpp \
1156     platform/qt/PopupMenuQt.cpp \
1157     platform/qt/QWebPopup.cpp \
1158     platform/qt/RenderThemeQt.cpp \
1159     platform/qt/ScrollbarQt.cpp \
1160     platform/qt/ScrollbarThemeQt.cpp \
1161     platform/qt/ScrollViewQt.cpp \
1162     platform/qt/SearchPopupMenuQt.cpp \
1163     platform/qt/SharedTimerQt.cpp \
1164     platform/qt/SoundQt.cpp \
1165     platform/qt/LoggingQt.cpp \
1166     platform/text/qt/StringQt.cpp \
1167     platform/qt/TemporaryLinkStubs.cpp \
1168     platform/text/qt/TextBoundaries.cpp \
1169     platform/text/qt/TextBreakIteratorQt.cpp \
1170     platform/text/qt/TextCodecQt.cpp \
1171     platform/qt/WheelEventQt.cpp \
1172     platform/qt/WidgetQt.cpp \
1173     plugins/qt/PluginDataQt.cpp \
1174     ../WebKit/qt/WebCoreSupport/ChromeClientQt.cpp \
1175     ../WebKit/qt/WebCoreSupport/ContextMenuClientQt.cpp \
1176     ../WebKit/qt/WebCoreSupport/DragClientQt.cpp \
1177     ../WebKit/qt/WebCoreSupport/EditorClientQt.cpp \
1178     ../WebKit/qt/WebCoreSupport/EditCommandQt.cpp \
1179     ../WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp \
1180     ../WebKit/qt/WebCoreSupport/InspectorClientQt.cpp \
1181     ../WebKit/qt/Api/qwebframe.cpp \
1182     ../WebKit/qt/Api/qwebpage.cpp \
1183     ../WebKit/qt/Api/qwebview.cpp \
1184     ../WebKit/qt/Api/qwebelement.cpp \
1185     ../WebKit/qt/Api/qwebhistory.cpp \
1186     ../WebKit/qt/Api/qwebsettings.cpp \
1187     ../WebKit/qt/Api/qwebhistoryinterface.cpp \
1188     ../WebKit/qt/Api/qwebpluginfactory.cpp \
1189     ../WebKit/qt/Api/qwebsecurityorigin.cpp \
1190     ../WebKit/qt/Api/qwebdatabase.cpp
1191
1192
1193     win32-*|wince*: SOURCES += platform/win/SystemTimeWin.cpp
1194
1195     mac {
1196         SOURCES += \
1197             platform/text/cf/StringCF.cpp \
1198             platform/text/cf/StringImplCF.cpp
1199     }
1200
1201     win32-* {
1202         LIBS += -lgdi32
1203         LIBS += -luser32
1204         LIBS += -lwinmm
1205     }
1206     wince*: LIBS += -lmmtimer
1207
1208     # Files belonging to the Qt 4.3 build
1209     lessThan(QT_MINOR_VERSION, 4) {
1210         HEADERS += \
1211             $$PWD/../WebKit/qt/Api/qwebnetworkinterface.h \
1212             $$PWD/../WebKit/qt/Api/qwebnetworkinterface_p.h \
1213             $$PWD/../WebKit/qt/Api/qcookiejar.h
1214
1215         SOURCES += \
1216             ../WebKit/qt/Api/qwebnetworkinterface.cpp \
1217             ../WebKit/qt/Api/qcookiejar.cpp
1218
1219         DEFINES += QT_BEGIN_NAMESPACE="" QT_END_NAMESPACE=""
1220      }
1221
1222 contains(DEFINES, ENABLE_NETSCAPE_PLUGIN_API=1) {
1223
1224     SOURCES += plugins/npapi.cpp
1225
1226     unix {
1227         DEFINES += ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH=1
1228
1229         mac {
1230             SOURCES += \
1231                 plugins/mac/PluginPackageMac.cpp \
1232                 plugins/mac/PluginViewMac.cpp
1233             OBJECTIVE_SOURCES += \
1234                 platform/text/mac/StringImplMac.mm \
1235                 platform/mac/WebCoreNSStringExtras.mm
1236             INCLUDEPATH += platform/mac
1237             # Note: XP_MACOSX is defined in npapi.h
1238         } else {
1239             !embedded: CONFIG += x11
1240             SOURCES += \
1241                 plugins/qt/PluginContainerQt.cpp \
1242                 plugins/qt/PluginPackageQt.cpp \
1243                 plugins/qt/PluginViewQt.cpp
1244             HEADERS += \
1245                 plugins/qt/PluginContainerQt.h
1246             DEFINES += XP_UNIX
1247         }
1248     }
1249
1250     win32-* {
1251         INCLUDEPATH += $$PWD/plugins/win
1252
1253         SOURCES += page/win/PageWin.cpp \
1254                    plugins/win/PluginDatabaseWin.cpp \
1255                    plugins/win/PluginPackageWin.cpp \
1256                    plugins/win/PluginMessageThrottlerWin.cpp \
1257                    plugins/win/PluginViewWin.cpp
1258
1259         LIBS += \
1260             -ladvapi32 \
1261             -lgdi32 \
1262             -lshell32 \
1263             -lshlwapi \
1264             -luser32 \
1265             -lversion
1266     }
1267
1268 } else {
1269     SOURCES += \
1270         plugins/PluginPackageNone.cpp \
1271         plugins/PluginViewNone.cpp
1272 }
1273
1274 contains(DEFINES, ENABLE_DASHBOARD_SUPPORT=0) {
1275     DASHBOARDSUPPORTCSSPROPERTIES -= $$PWD/css/DashboardSupportCSSPropertyNames.in
1276 }
1277
1278 contains(DEFINES, ENABLE_SQLITE=1) {
1279     # somewhat copied from src/plugins/sqldrivers/sqlite/sqlite.pro
1280     CONFIG(QTDIR_build):system-sqlite {
1281         LIBS *= $$QT_LFLAGS_SQLITE
1282         QMAKE_CXXFLAGS *= $$QT_CFLAGS_SQLITE
1283     } else {
1284         exists( $${SQLITE3SRCDIR}/sqlite3.c )  {
1285             # we have source - use it
1286             CONFIG(release, debug|release):DEFINES *= NDEBUG
1287             DEFINES += SQLITE_CORE SQLITE_OMIT_LOAD_EXTENSION SQLITE_OMIT_COMPLETE 
1288             contains(DEFINES, ENABLE_SINGLE_THREADED=1) {
1289                 DEFINES+=SQLITE_THREADSAFE=0
1290             }
1291             INCLUDEPATH += $${SQLITE3SRCDIR}
1292             SOURCES += $${SQLITE3SRCDIR}/sqlite3.c
1293         } else {
1294             # fall back to platform library
1295             INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/sqlite/
1296             LIBS += -lsqlite3
1297         }
1298     }
1299
1300     SOURCES += \
1301         platform/sql/SQLiteAuthorizer.cpp \
1302         platform/sql/SQLiteDatabase.cpp \
1303         platform/sql/SQLiteStatement.cpp \
1304         platform/sql/SQLiteTransaction.cpp \
1305         platform/sql/SQLValue.cpp \
1306         storage/Database.cpp \
1307         storage/DatabaseAuthorizer.cpp
1308 }
1309
1310
1311 contains(DEFINES, ENABLE_DATABASE=1) {
1312     FEATURE_DEFINES_JAVASCRIPT += ENABLE_DATABASE=1
1313
1314     SOURCES += \
1315         storage/ChangeVersionWrapper.cpp \
1316         storage/DatabaseTask.cpp \
1317         storage/DatabaseThread.cpp \
1318         storage/DatabaseTracker.cpp \
1319         storage/OriginQuotaManager.cpp \
1320         storage/OriginUsageRecord.cpp \
1321         storage/SQLResultSet.cpp \
1322         storage/SQLResultSetRowList.cpp \
1323         storage/SQLStatement.cpp \
1324         storage/SQLTransaction.cpp \
1325         bindings/js/JSCustomSQLStatementCallback.cpp \
1326         bindings/js/JSCustomSQLStatementErrorCallback.cpp \
1327         bindings/js/JSCustomSQLTransactionCallback.cpp \
1328         bindings/js/JSCustomSQLTransactionErrorCallback.cpp \
1329         bindings/js/JSDatabaseCustom.cpp \
1330         bindings/js/JSSQLResultSetRowListCustom.cpp \
1331         bindings/js/JSSQLTransactionCustom.cpp
1332
1333     IDL_BINDINGS += \
1334         storage/Database.idl \
1335         storage/SQLError.idl \
1336         storage/SQLResultSet.idl \
1337         storage/SQLResultSetRowList.idl \
1338         storage/SQLTransaction.idl
1339 }
1340
1341 contains(DEFINES, ENABLE_DOM_STORAGE=1) {
1342     FEATURE_DEFINES_JAVASCRIPT += ENABLE_DOM_STORAGE=1
1343
1344     HEADERS += \
1345         storage/Storage.h \
1346         storage/StorageEvent.h \
1347         storage/SessionStorage.h \
1348         storage/SessionStorageArea.h
1349
1350     SOURCES += \
1351         storage/LocalStorage.cpp \
1352         storage/LocalStorageArea.cpp \
1353         storage/LocalStorageTask.cpp \
1354         storage/LocalStorageThread.cpp \
1355         storage/Storage.cpp \
1356         storage/StorageArea.cpp \
1357         storage/StorageMap.cpp \
1358         storage/StorageEvent.cpp \
1359         storage/SessionStorage.cpp \
1360         storage/SessionStorageArea.cpp \
1361         bindings/js/JSStorageCustom.cpp
1362
1363     IDL_BINDINGS += \
1364         storage/Storage.idl \
1365         storage/StorageEvent.idl
1366 }
1367
1368 contains(DEFINES, ENABLE_ICONDATABASE=1) {
1369     SOURCES += \
1370         loader/icon/IconDatabase.cpp \
1371         loader/icon/IconRecord.cpp \
1372         loader/icon/PageURLRecord.cpp
1373 } else {
1374     SOURCES += \
1375         loader/icon/IconDatabaseNone.cpp
1376 }
1377
1378 contains(DEFINES, ENABLE_WORKERS=1) {
1379     FEATURE_DEFINES_JAVASCRIPT += ENABLE_WORKERS=1
1380
1381     IDL_BINDINGS += \
1382         page/WorkerNavigator.idl \
1383         workers/Worker.idl \
1384         workers/WorkerContext.idl \
1385         workers/WorkerLocation.idl
1386
1387     SOURCES += \
1388         bindings/js/JSWorkerConstructor.cpp \
1389         bindings/js/JSWorkerContextBase.cpp \
1390         bindings/js/JSWorkerContextCustom.cpp \
1391         bindings/js/JSWorkerCustom.cpp \
1392         bindings/js/WorkerScriptController.cpp \
1393         loader/WorkerThreadableLoader.cpp \
1394         page/WorkerNavigator.cpp \
1395         workers/Worker.cpp \
1396         workers/WorkerContext.cpp \
1397         workers/WorkerLocation.cpp \
1398         workers/WorkerMessagingProxy.cpp \
1399         workers/WorkerRunLoop.cpp \
1400         workers/WorkerThread.cpp \
1401         workers/WorkerImportScriptsClient.cpp
1402 }
1403
1404 contains(DEFINES, ENABLE_VIDEO=1) {
1405     FEATURE_DEFINES_JAVASCRIPT += ENABLE_VIDEO=1
1406
1407     IDL_BINDINGS += \
1408         html/TimeRanges.idl
1409
1410     SOURCES += \
1411         html/HTMLAudioElement.cpp \
1412         html/HTMLMediaElement.cpp \
1413         html/HTMLSourceElement.cpp \
1414         html/HTMLVideoElement.cpp \
1415         html/TimeRanges.cpp \
1416         platform/graphics/MediaPlayer.cpp \
1417         rendering/MediaControlElements.cpp \
1418         rendering/RenderVideo.cpp \
1419         rendering/RenderMedia.cpp \
1420         bindings/js/JSAudioConstructor.cpp
1421
1422         HEADERS += \
1423             platform/graphics/qt/MediaPlayerPrivatePhonon.h
1424
1425         SOURCES += \
1426             platform/graphics/qt/MediaPlayerPrivatePhonon.cpp
1427
1428         # Add phonon manually to prevent it from coming first in
1429         # the include paths, as Phonon's path.h conflicts with
1430         # WebCore's Path.h on case-insensitive filesystems.
1431         qtAddLibrary(phonon)
1432         INCLUDEPATH -= $$QMAKE_INCDIR_QT/phonon
1433         INCLUDEPATH += $$QMAKE_INCDIR_QT/phonon
1434         mac {
1435             INCLUDEPATH -= $$QMAKE_LIBDIR_QT/phonon.framework/Headers
1436             INCLUDEPATH += $$QMAKE_LIBDIR_QT/phonon.framework/Headers
1437         }
1438
1439 }
1440
1441 contains(DEFINES, ENABLE_XPATH=1) {
1442     FEATURE_DEFINES_JAVASCRIPT += ENABLE_XPATH=1
1443
1444     XPATHBISON = $$PWD/xml/XPathGrammar.y
1445
1446     IDL_BINDINGS += \
1447         xml/XPathNSResolver.idl \
1448         xml/XPathException.idl \
1449         xml/XPathExpression.idl \
1450         xml/XPathResult.idl \
1451         xml/XPathEvaluator.idl
1452
1453     SOURCES += \
1454         xml/NativeXPathNSResolver.cpp \
1455         xml/XPathEvaluator.cpp \
1456         xml/XPathExpression.cpp \
1457         xml/XPathExpressionNode.cpp \
1458         xml/XPathFunctions.cpp \
1459         xml/XPathNamespace.cpp \
1460         xml/XPathNodeSet.cpp \
1461         xml/XPathNSResolver.cpp \
1462         xml/XPathParser.cpp \
1463         xml/XPathPath.cpp \
1464         xml/XPathPredicate.cpp \
1465         xml/XPathResult.cpp \
1466         xml/XPathStep.cpp \
1467         xml/XPathUtil.cpp \
1468         xml/XPathValue.cpp \
1469         xml/XPathVariableReference.cpp
1470 }
1471
1472 unix:!mac:CONFIG += link_pkgconfig
1473
1474 contains(DEFINES, ENABLE_XSLT=1) {
1475     FEATURE_DEFINES_JAVASCRIPT += ENABLE_XSLT=1
1476     PKGCONFIG += libxml-2.0 libxslt
1477
1478     macx {
1479         INCLUDEPATH += /usr/include/libxml2
1480         LIBS += -lxml2 -lxslt
1481     }
1482
1483     win32-msvc* {
1484         LIBS += -llibxml2 -llibxslt
1485     }
1486
1487     IDL_BINDINGS += \
1488         xml/XSLTProcessor.idl
1489
1490     SOURCES += \
1491         bindings/js/JSXSLTProcessorConstructor.cpp \
1492         bindings/js/JSXSLTProcessorCustom.cpp \
1493         xml/XSLImportRule.cpp \
1494         xml/XSLStyleSheet.cpp \
1495         xml/XSLTExtensions.cpp \
1496         xml/XSLTProcessor.cpp \
1497         xml/XSLTUnicodeSort.cpp
1498 }
1499
1500 contains(DEFINES, ENABLE_XBL=1) {
1501     FEATURE_DEFINES_JAVASCRIPT += ENABLE_XBL=1
1502 }
1503
1504 contains(DEFINES, ENABLE_FILTERS=1) {
1505     SOURCES += \
1506         platform/graphics/filters/FEBlend.cpp \
1507         platform/graphics/filters/FEColorMatrix.cpp \
1508         platform/graphics/filters/FEComponentTransfer.cpp \
1509         platform/graphics/filters/FEComposite.cpp \
1510         platform/graphics/filters/FilterEffect.cpp \
1511         platform/graphics/filters/SourceAlpha.cpp \
1512         platform/graphics/filters/SourceGraphic.cpp
1513
1514     FEATURE_DEFINES_JAVASCRIPT += ENABLE_FILTERS=1
1515 }
1516
1517 contains(DEFINES, ENABLE_WML=1) {
1518     SOURCES += \
1519         wml/WMLAElement.cpp \
1520         wml/WMLAccessElement.cpp \
1521         wml/WMLAnchorElement.cpp \
1522         wml/WMLBRElement.cpp \
1523         wml/WMLCardElement.cpp \
1524         wml/WMLDoElement.cpp \
1525         wml/WMLDocument.cpp \
1526         wml/WMLElement.cpp \
1527         wml/WMLErrorHandling.cpp \
1528         wml/WMLEventHandlingElement.cpp \
1529         wml/WMLFormControlElement.cpp \
1530         wml/WMLFieldSetElement.cpp \
1531         wml/WMLGoElement.cpp \
1532         wml/WMLImageElement.cpp \
1533         wml/WMLImageLoader.cpp \
1534         wml/WMLInputElement.cpp \
1535         wml/WMLInsertedLegendElement.cpp \
1536         wml/WMLIntrinsicEvent.cpp \
1537         wml/WMLIntrinsicEventHandler.cpp \
1538         wml/WMLMetaElement.cpp \
1539         wml/WMLNoopElement.cpp \
1540         wml/WMLOnEventElement.cpp \
1541         wml/WMLPElement.cpp \
1542         wml/WMLOptGroupElement.cpp \
1543         wml/WMLOptionElement.cpp \
1544         wml/WMLPageState.cpp \
1545         wml/WMLPostfieldElement.cpp \
1546         wml/WMLPrevElement.cpp \
1547         wml/WMLRefreshElement.cpp \
1548         wml/WMLSelectElement.cpp \
1549         wml/WMLSetvarElement.cpp \
1550         wml/WMLTableElement.cpp \
1551         wml/WMLTaskElement.cpp \
1552         wml/WMLTemplateElement.cpp \
1553         wml/WMLTimerElement.cpp \
1554         wml/WMLVariables.cpp
1555
1556     FEATURE_DEFINES_JAVASCRIPT += ENABLE_WML=1
1557
1558     WML_NAMES = $$PWD/wml/WMLTagNames.in
1559
1560     wmlnames_a.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}WMLNames.cpp
1561     wmlnames_a.commands = perl -I$$PWD/bindings/scripts $$PWD/dom/make_names.pl --tags $$PWD/wml/WMLTagNames.in --attrs $$PWD/wml/WMLAttributeNames.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\" --factory --wrapperFactory --outputDir $$GENERATED_SOURCES_DIR
1562     wmlnames_a.input = WML_NAMES
1563     wmlnames_a.dependency_type = TYPE_C
1564     wmlnames_a.CONFIG = target_predeps
1565     wmlnames_a.variable_out = GENERATED_SOURCES
1566     addExtraCompilerWithHeader(wmlnames_a)
1567     wmlnames_b.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}WMLElementFactory.cpp
1568     wmlnames_b.commands = @echo -n ''
1569     wmlnames_b.input = SVG_NAMES
1570     wmlnames_b.depends = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}WMLNames.cpp
1571     wmlnames_b.CONFIG = target_predeps
1572     wmlnames_b.variable_out = GENERATED_SOURCES
1573     addExtraCompilerWithHeader(wmlnames_b)
1574 }
1575
1576 contains(DEFINES, ENABLE_XHTMLMP=1) {
1577     FEATURE_DEFINES_JAVASCRIPT += ENABLE_XHTMLMP=1
1578 }
1579
1580 contains(DEFINES, ENABLE_SVG=1) {
1581     FEATURE_DEFINES_JAVASCRIPT += ENABLE_SVG=1
1582
1583     SVG_NAMES = $$PWD/svg/svgtags.in
1584
1585     XLINK_NAMES = $$PWD/svg/xlinkattrs.in
1586
1587     IDL_BINDINGS += \
1588         svg/SVGZoomEvent.idl \
1589         svg/SVGAElement.idl \
1590         svg/SVGAltGlyphElement.idl \
1591         svg/SVGAngle.idl \
1592         svg/SVGAnimateColorElement.idl \
1593         svg/SVGAnimatedAngle.idl \
1594         svg/SVGAnimatedBoolean.idl \
1595         svg/SVGAnimatedEnumeration.idl \
1596         svg/SVGAnimatedInteger.idl \
1597         svg/SVGAnimatedLength.idl \
1598         svg/SVGAnimatedLengthList.idl \
1599         svg/SVGAnimatedNumber.idl \
1600         svg/SVGAnimatedNumberList.idl \
1601         svg/SVGAnimatedPreserveAspectRatio.idl \
1602         svg/SVGAnimatedRect.idl \
1603         svg/SVGAnimatedString.idl \
1604         svg/SVGAnimatedTransformList.idl \
1605         svg/SVGAnimateElement.idl \
1606         svg/SVGAnimateTransformElement.idl \
1607         svg/SVGAnimationElement.idl \
1608         svg/SVGCircleElement.idl \
1609         svg/SVGClipPathElement.idl \
1610         svg/SVGColor.idl \
1611         svg/SVGComponentTransferFunctionElement.idl \
1612         svg/SVGCursorElement.idl \
1613         svg/SVGDefinitionSrcElement.idl \
1614         svg/SVGDefsElement.idl \
1615         svg/SVGDescElement.idl \
1616         svg/SVGDocument.idl \
1617         svg/SVGElement.idl \
1618         svg/SVGElementInstance.idl \
1619         svg/SVGElementInstanceList.idl \
1620         svg/SVGEllipseElement.idl \
1621         svg/SVGException.idl \
1622         svg/SVGFEBlendElement.idl \
1623         svg/SVGFEColorMatrixElement.idl \
1624         svg/SVGFEComponentTransferElement.idl \
1625         svg/SVGFECompositeElement.idl \
1626         svg/SVGFEDiffuseLightingElement.idl \
1627         svg/SVGFEDisplacementMapElement.idl \
1628         svg/SVGFEDistantLightElement.idl \
1629         svg/SVGFEFloodElement.idl \
1630         svg/SVGFEFuncAElement.idl \
1631         svg/SVGFEFuncBElement.idl \
1632         svg/SVGFEFuncGElement.idl \
1633         svg/SVGFEFuncRElement.idl \
1634         svg/SVGFEGaussianBlurElement.idl \
1635         svg/SVGFEImageElement.idl \
1636         svg/SVGFEMergeElement.idl \
1637         svg/SVGFEMergeNodeElement.idl \
1638         svg/SVGFEOffsetElement.idl \
1639         svg/SVGFEPointLightElement.idl \
1640         svg/SVGFESpecularLightingElement.idl \
1641         svg/SVGFESpotLightElement.idl \
1642         svg/SVGFETileElement.idl \
1643         svg/SVGFETurbulenceElement.idl \
1644         svg/SVGFilterElement.idl \
1645         svg/SVGFontElement.idl \
1646         svg/SVGFontFaceElement.idl \
1647         svg/SVGFontFaceFormatElement.idl \
1648         svg/SVGFontFaceNameElement.idl \
1649         svg/SVGFontFaceSrcElement.idl \
1650         svg/SVGFontFaceUriElement.idl \
1651         svg/SVGForeignObjectElement.idl \
1652         svg/SVGGElement.idl \
1653         svg/SVGGlyphElement.idl \
1654         svg/SVGGradientElement.idl \
1655         svg/SVGHKernElement.idl \
1656         svg/SVGImageElement.idl \
1657         svg/SVGLength.idl \
1658         svg/SVGLengthList.idl \
1659         svg/SVGLinearGradientElement.idl \
1660         svg/SVGLineElement.idl \
1661         svg/SVGMarkerElement.idl \
1662         svg/SVGMaskElement.idl \
1663         svg/SVGMatrix.idl \
1664         svg/SVGMetadataElement.idl \
1665         svg/SVGMissingGlyphElement.idl \
1666         svg/SVGNumber.idl \
1667         svg/SVGNumberList.idl \
1668         svg/SVGPaint.idl \
1669         svg/SVGPathElement.idl \
1670         svg/SVGPathSegArcAbs.idl \
1671         svg/SVGPathSegArcRel.idl \
1672         svg/SVGPathSegClosePath.idl \
1673         svg/SVGPathSegCurvetoCubicAbs.idl \
1674         svg/SVGPathSegCurvetoCubicRel.idl \
1675         svg/SVGPathSegCurvetoCubicSmoothAbs.idl \
1676         svg/SVGPathSegCurvetoCubicSmoothRel.idl \
1677         svg/SVGPathSegCurvetoQuadraticAbs.idl \
1678         svg/SVGPathSegCurvetoQuadraticRel.idl \
1679         svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl \
1680         svg/SVGPathSegCurvetoQuadraticSmoothRel.idl \
1681         svg/SVGPathSeg.idl \
1682         svg/SVGPathSegLinetoAbs.idl \
1683         svg/SVGPathSegLinetoHorizontalAbs.idl \
1684         svg/SVGPathSegLinetoHorizontalRel.idl \
1685         svg/SVGPathSegLinetoRel.idl \
1686         svg/SVGPathSegLinetoVerticalAbs.idl \
1687         svg/SVGPathSegLinetoVerticalRel.idl \
1688         svg/SVGPathSegList.idl \
1689         svg/SVGPathSegMovetoAbs.idl \
1690         svg/SVGPathSegMovetoRel.idl \
1691         svg/SVGPatternElement.idl \
1692         svg/SVGPoint.idl \
1693         svg/SVGPointList.idl \
1694         svg/SVGPolygonElement.idl \
1695         svg/SVGPolylineElement.idl \
1696         svg/SVGPreserveAspectRatio.idl \
1697         svg/SVGRadialGradientElement.idl \
1698         svg/SVGRectElement.idl \
1699         svg/SVGRect.idl \
1700         svg/SVGRenderingIntent.idl \
1701         svg/SVGScriptElement.idl \
1702         svg/SVGSetElement.idl \
1703         svg/SVGStopElement.idl \
1704         svg/SVGStringList.idl \
1705         svg/SVGStyleElement.idl \
1706         svg/SVGSVGElement.idl \
1707         svg/SVGSwitchElement.idl \
1708         svg/SVGSymbolElement.idl \
1709         svg/SVGTextContentElement.idl \
1710         svg/SVGTextElement.idl \
1711         svg/SVGTextPathElement.idl \
1712         svg/SVGTextPositioningElement.idl \
1713         svg/SVGTitleElement.idl \
1714         svg/SVGTransform.idl \
1715         svg/SVGTransformList.idl \
1716         svg/SVGTRefElement.idl \
1717         svg/SVGTSpanElement.idl \
1718         svg/SVGUnitTypes.idl \
1719         svg/SVGUseElement.idl \
1720         svg/SVGViewElement.idl 
1721
1722     SOURCES += \
1723 # TODO: this-one-is-not-auto-added! FIXME! tmp/SVGElementFactory.cpp \
1724         bindings/js/JSSVGElementInstanceCustom.cpp \
1725         bindings/js/JSSVGLengthCustom.cpp \
1726         bindings/js/JSSVGMatrixCustom.cpp \
1727         bindings/js/JSSVGPathSegCustom.cpp \
1728         bindings/js/JSSVGPathSegListCustom.cpp \
1729         bindings/js/JSSVGPointListCustom.cpp \
1730         bindings/js/JSSVGTransformListCustom.cpp \
1731         css/SVGCSSComputedStyleDeclaration.cpp \
1732         css/SVGCSSParser.cpp \
1733         css/SVGCSSStyleSelector.cpp \
1734         rendering/style/SVGRenderStyle.cpp \
1735         rendering/style/SVGRenderStyleDefs.cpp \
1736         svg/SVGZoomEvent.cpp \
1737         rendering/PointerEventsHitRules.cpp \
1738         svg/SVGDocumentExtensions.cpp \
1739         svg/SVGImageLoader.cpp \
1740         svg/ColorDistance.cpp \
1741         svg/SVGAElement.cpp \
1742         svg/SVGAltGlyphElement.cpp \
1743         svg/SVGAngle.cpp \
1744         svg/SVGAnimateColorElement.cpp \
1745         svg/SVGAnimatedPathData.cpp \
1746         svg/SVGAnimatedPoints.cpp \
1747         svg/SVGAnimateElement.cpp \
1748         svg/SVGAnimateMotionElement.cpp \
1749         svg/SVGAnimateTransformElement.cpp \
1750         svg/SVGAnimationElement.cpp \
1751         svg/SVGCircleElement.cpp \
1752         svg/SVGClipPathElement.cpp \
1753         svg/SVGColor.cpp \
1754         svg/SVGComponentTransferFunctionElement.cpp \
1755         svg/SVGCursorElement.cpp \
1756         svg/SVGDefinitionSrcElement.cpp \
1757         svg/SVGDefsElement.cpp \
1758         svg/SVGDescElement.cpp \
1759         svg/SVGDocument.cpp \
1760         svg/SVGElement.cpp \
1761         svg/SVGElementInstance.cpp \
1762         svg/SVGElementInstanceList.cpp \
1763         svg/SVGEllipseElement.cpp \
1764         svg/SVGExternalResourcesRequired.cpp \
1765         svg/SVGFEBlendElement.cpp \
1766         svg/SVGFEColorMatrixElement.cpp \
1767         svg/SVGFEComponentTransferElement.cpp \
1768         svg/SVGFECompositeElement.cpp \
1769         svg/SVGFEDiffuseLightingElement.cpp \
1770         svg/SVGFEDisplacementMapElement.cpp \
1771         svg/SVGFEDistantLightElement.cpp \
1772         svg/SVGFEFloodElement.cpp \
1773         svg/SVGFEFuncAElement.cpp \
1774         svg/SVGFEFuncBElement.cpp \
1775         svg/SVGFEFuncGElement.cpp \
1776         svg/SVGFEFuncRElement.cpp \
1777         svg/SVGFEGaussianBlurElement.cpp \
1778         svg/SVGFEImageElement.cpp \
1779         svg/SVGFELightElement.cpp \
1780         svg/SVGFEMergeElement.cpp \
1781         svg/SVGFEMergeNodeElement.cpp \
1782         svg/SVGFEOffsetElement.cpp \
1783         svg/SVGFEPointLightElement.cpp \
1784         svg/SVGFESpecularLightingElement.cpp \
1785         svg/SVGFESpotLightElement.cpp \
1786         svg/SVGFETileElement.cpp \
1787         svg/SVGFETurbulenceElement.cpp \
1788         svg/SVGFilterElement.cpp \
1789         svg/SVGFilterPrimitiveStandardAttributes.cpp \
1790         svg/SVGFitToViewBox.cpp \
1791         svg/SVGFont.cpp \
1792         svg/SVGFontData.cpp \
1793         svg/SVGFontElement.cpp \
1794         svg/SVGFontFaceElement.cpp \
1795         svg/SVGFontFaceFormatElement.cpp \
1796         svg/SVGFontFaceNameElement.cpp \
1797         svg/SVGFontFaceSrcElement.cpp \
1798         svg/SVGFontFaceUriElement.cpp \
1799         svg/SVGForeignObjectElement.cpp \
1800         svg/SVGGElement.cpp \
1801         svg/SVGGlyphElement.cpp \
1802         svg/SVGGradientElement.cpp \
1803         svg/SVGHKernElement.cpp \
1804         svg/SVGImageElement.cpp \
1805         svg/SVGLangSpace.cpp \
1806         svg/SVGLength.cpp \
1807         svg/SVGLengthList.cpp \
1808         svg/SVGLinearGradientElement.cpp \
1809         svg/SVGLineElement.cpp \
1810         svg/SVGLocatable.cpp \
1811         svg/SVGMarkerElement.cpp \
1812         svg/SVGMaskElement.cpp \
1813         svg/SVGMetadataElement.cpp \
1814         svg/SVGMissingGlyphElement.cpp \
1815         svg/SVGMPathElement.cpp \
1816         svg/SVGNumberList.cpp \
1817         svg/SVGPaint.cpp \
1818         svg/SVGParserUtilities.cpp \
1819         svg/SVGPathElement.cpp \
1820         svg/SVGPathSegArc.cpp \
1821         svg/SVGPathSegClosePath.cpp \
1822         svg/SVGPathSegCurvetoCubic.cpp \
1823         svg/SVGPathSegCurvetoCubicSmooth.cpp \
1824         svg/SVGPathSegCurvetoQuadratic.cpp \
1825         svg/SVGPathSegCurvetoQuadraticSmooth.cpp \
1826         svg/SVGPathSegLineto.cpp \
1827         svg/SVGPathSegLinetoHorizontal.cpp \
1828         svg/SVGPathSegLinetoVertical.cpp \
1829         svg/SVGPathSegList.cpp \
1830         svg/SVGPathSegMoveto.cpp \
1831         svg/SVGPatternElement.cpp \
1832         svg/SVGPointList.cpp \
1833         svg/SVGPolyElement.cpp \
1834         svg/SVGPolygonElement.cpp \
1835         svg/SVGPolylineElement.cpp \
1836         svg/SVGPreserveAspectRatio.cpp \
1837         svg/SVGRadialGradientElement.cpp \
1838         svg/SVGRectElement.cpp \
1839         svg/SVGScriptElement.cpp \
1840         svg/SVGSetElement.cpp \
1841         svg/SVGStopElement.cpp \
1842         svg/SVGStringList.cpp \
1843         svg/SVGStylable.cpp \
1844         svg/SVGStyledElement.cpp \
1845         svg/SVGStyledLocatableElement.cpp \
1846         svg/SVGStyledTransformableElement.cpp \
1847         svg/SVGStyleElement.cpp \
1848         svg/SVGSVGElement.cpp \
1849         svg/SVGSwitchElement.cpp \
1850         svg/SVGSymbolElement.cpp \
1851         svg/SVGTests.cpp \
1852         svg/SVGTextContentElement.cpp \
1853         svg/SVGTextElement.cpp \
1854         svg/SVGTextPathElement.cpp \
1855         svg/SVGTextPositioningElement.cpp \
1856         svg/SVGTitleElement.cpp \
1857         svg/SVGTransformable.cpp \
1858         svg/SVGTransform.cpp \
1859         svg/SVGTransformDistance.cpp \
1860         svg/SVGTransformList.cpp \
1861         svg/SVGTRefElement.cpp \
1862         svg/SVGTSpanElement.cpp \
1863         svg/SVGURIReference.cpp \
1864         svg/SVGUseElement.cpp \
1865         svg/SVGViewElement.cpp \
1866         svg/SVGViewSpec.cpp \
1867         svg/SVGZoomAndPan.cpp \
1868         svg/animation/SMILTime.cpp \
1869         svg/animation/SMILTimeContainer.cpp \
1870         svg/animation/SVGSMILElement.cpp \
1871         svg/graphics/filters/SVGFEConvolveMatrix.cpp \
1872         svg/graphics/filters/SVGFEDiffuseLighting.cpp \
1873         svg/graphics/filters/SVGFEDisplacementMap.cpp \
1874         svg/graphics/filters/SVGFEFlood.cpp \
1875         svg/graphics/filters/SVGFEGaussianBlur.cpp \
1876         svg/graphics/filters/SVGFEImage.cpp \
1877         svg/graphics/filters/SVGFEMerge.cpp \
1878         svg/graphics/filters/SVGFEMorphology.cpp \
1879         svg/graphics/filters/SVGFEOffset.cpp \
1880         svg/graphics/filters/SVGFESpecularLighting.cpp \
1881         svg/graphics/filters/SVGFETile.cpp \
1882         svg/graphics/filters/SVGFETurbulence.cpp \
1883         svg/graphics/filters/SVGFilter.cpp \
1884         svg/graphics/filters/SVGFilterBuilder.cpp \
1885         svg/graphics/filters/SVGLightSource.cpp \
1886         svg/graphics/SVGImage.cpp \
1887         svg/graphics/SVGPaintServer.cpp \
1888         svg/graphics/SVGPaintServerGradient.cpp \
1889         svg/graphics/SVGPaintServerLinearGradient.cpp \
1890         svg/graphics/SVGPaintServerPattern.cpp \
1891         svg/graphics/SVGPaintServerRadialGradient.cpp \
1892         svg/graphics/SVGPaintServerSolid.cpp \
1893         svg/graphics/SVGResourceClipper.cpp \
1894         svg/graphics/SVGResource.cpp \
1895         svg/graphics/SVGResourceFilter.cpp \
1896         svg/graphics/SVGResourceMarker.cpp \
1897         svg/graphics/SVGResourceMasker.cpp \
1898         rendering/RenderForeignObject.cpp \
1899         rendering/RenderPath.cpp \
1900         rendering/RenderSVGBlock.cpp \
1901         rendering/RenderSVGContainer.cpp \
1902         rendering/RenderSVGGradientStop.cpp \
1903         rendering/RenderSVGHiddenContainer.cpp \
1904         rendering/RenderSVGImage.cpp \
1905         rendering/RenderSVGInline.cpp \
1906         rendering/RenderSVGInlineText.cpp \
1907         rendering/RenderSVGModelObject.cpp \
1908         rendering/RenderSVGRoot.cpp \
1909         rendering/RenderSVGText.cpp \
1910         rendering/RenderSVGTextPath.cpp \
1911         rendering/RenderSVGTransformableContainer.cpp \
1912         rendering/RenderSVGTSpan.cpp \
1913         rendering/RenderSVGViewportContainer.cpp \
1914         rendering/SVGCharacterLayoutInfo.cpp \
1915         rendering/SVGInlineFlowBox.cpp \
1916         rendering/SVGInlineTextBox.cpp \
1917         rendering/SVGRenderSupport.cpp \
1918         rendering/SVGRootInlineBox.cpp
1919
1920
1921         # GENERATOR 5-C:
1922         svgnames_a.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}SVGNames.cpp
1923         svgnames_a.commands = perl -I$$PWD/bindings/scripts $$PWD/dom/make_names.pl --tags $$PWD/svg/svgtags.in --attrs $$PWD/svg/svgattrs.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\" --factory --wrapperFactory --outputDir $$GENERATED_SOURCES_DIR
1924         svgnames_a.input = SVG_NAMES
1925         svgnames_a.dependency_type = TYPE_C
1926         svgnames_a.CONFIG = target_predeps
1927         svgnames_a.variable_out = GENERATED_SOURCES
1928         addExtraCompilerWithHeader(svgnames_a)
1929         svgnames_b.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}SVGElementFactory.cpp
1930         svgnames_b.commands = @echo -n ''
1931         svgnames_b.input = SVG_NAMES
1932         svgnames_b.depends = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}SVGNames.cpp
1933         svgnames_b.CONFIG = target_predeps
1934         svgnames_b.variable_out = GENERATED_SOURCES
1935         addExtraCompilerWithHeader(svgnames_b)
1936         svgelementwrapper.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}JSSVGElementWrapperFactory.cpp
1937         svgelementwrapper.commands = @echo -n ''
1938         svgelementwrapper.input = SVG_NAMES
1939         svgelementwrapper.depends = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}SVGNames.cpp
1940         svgelementwrapper.CONFIG = target_predeps
1941         svgelementwrapper.variable_out = GENERATED_SOURCES
1942         addExtraCompiler(svgelementwrapper)
1943         svgelementwrapper_header.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}JSSVGElementWrapperFactory.h
1944         svgelementwrapper_header.commands = @echo -n ''
1945         svgelementwrapper_header.input = SVG_NAMES
1946         svgelementwrapper_header.depends = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}SVGNames.cpp
1947         svgelementwrapper_header.CONFIG = target_predeps
1948         svgelementwrapper_header.variable_out = GENERATED_FILES
1949         addExtraCompiler(svgelementwrapper_header)
1950
1951         # GENERATOR 5-D:
1952         xlinknames.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}XLinkNames.cpp
1953         xlinknames.commands = perl -I$$PWD/bindings/scripts $$PWD/dom/make_names.pl --attrs $$PWD/svg/xlinkattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$GENERATED_SOURCES_DIR
1954         xlinknames.input = XLINK_NAMES
1955         xlinknames.dependency_type = TYPE_C
1956         xlinknames.CONFIG = target_predeps
1957         xlinknames.variable_out = GENERATED_SOURCES
1958         addExtraCompilerWithHeader(xlinknames)
1959
1960     # GENERATOR 6-A:
1961     cssprops.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.cpp
1962     cssprops.input = WALDOCSSPROPS
1963     cssprops.commands = perl -ne \"print lc\" ${QMAKE_FILE_NAME} $$DASHBOARDSUPPORTCSSPROPERTIES $$SVGCSSPROPERTIES > $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${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
1964     cssprops.CONFIG = target_predeps no_link
1965     cssprops.depend = ${QMAKE_FILE_NAME} DASHBOARDSUPPORTCSSPROPERTIES SVGCSSPROPERTIES
1966     addExtraCompilerWithHeader(cssprops)
1967
1968     # GENERATOR 6-B:
1969     cssvalues.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.c
1970     cssvalues.input = WALDOCSSVALUES
1971     cssvalues.commands = perl -ne \"print lc\" ${QMAKE_FILE_NAME} $$SVGCSSVALUES > $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${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
1972     cssvalues.CONFIG = target_predeps no_link
1973     cssvalues.depend = ${QMAKE_FILE_NAME} SVGCSSVALUES
1974     addExtraCompilerWithHeader(cssvalues)
1975 } else {
1976     # GENERATOR 6-A:
1977     cssprops.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.cpp
1978     cssprops.input = WALDOCSSPROPS
1979     cssprops.commands = perl -ne \"print lc\" ${QMAKE_FILE_NAME} $$DASHBOARDSUPPORTCSSPROPERTIES > $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${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
1980     cssprops.CONFIG = target_predeps no_link
1981     cssprops.depend = ${QMAKE_FILE_NAME} DASHBOARDSUPPORTCSSPROPERTIES
1982     addExtraCompilerWithHeader(cssprops)
1983
1984     # GENERATOR 6-B:
1985     cssvalues.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.c
1986     cssvalues.input = WALDOCSSVALUES
1987     cssvalues.commands = perl -ne \"print lc\" ${QMAKE_FILE_NAME} > $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${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
1988     cssvalues.CONFIG = target_predeps no_link
1989     cssvalues.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_GENERATED_SOURCES_DIR_SLASH}${QMAKE_FILE_BASE}.h
1990     addExtraCompiler(cssvalues)
1991 }
1992
1993 contains(DEFINES, ENABLE_JAVASCRIPT_DEBUGGER=1) {
1994     FEATURE_DEFINES_JAVASCRIPT += ENABLE_JAVASCRIPT_DEBUGGER=1
1995
1996     IDL_BINDINGS += \
1997         inspector/JavaScriptCallFrame.idl
1998
1999     SOURCES += \
2000         bindings/js/JSJavaScriptCallFrameCustom.cpp \
2001         inspector/JavaScriptCallFrame.cpp \
2002         inspector/JavaScriptDebugServer.cpp \
2003         inspector/JavaScriptProfile.cpp \
2004         inspector/JavaScriptProfileNode.cpp
2005 }
2006
2007 contains(DEFINES, ENABLE_OFFLINE_WEB_APPLICATIONS=1) {
2008     FEATURE_DEFINES_JAVASCRIPT += ENABLE_OFFLINE_WEB_APPLICATIONS=1
2009
2010 IDL_BINDINGS += \
2011     loader/appcache/DOMApplicationCache.idl
2012
2013 SOURCES += \
2014     loader/appcache/ApplicationCache.cpp \
2015     loader/appcache/ApplicationCacheGroup.cpp \
2016     loader/appcache/ApplicationCacheStorage.cpp \
2017     loader/appcache/ApplicationCacheResource.cpp \
2018     loader/appcache/DOMApplicationCache.cpp \
2019     loader/appcache/ManifestParser.cpp \
2020     bindings/js/JSDOMApplicationCacheCustom.cpp
2021 }
2022
2023 # GENERATOR 1: IDL compiler
2024 idl.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}JS${QMAKE_FILE_BASE}.cpp
2025 idl.variable_out = GENERATED_SOURCES
2026 idl.input = IDL_BINDINGS
2027 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}
2028 idl.CONFIG += target_predeps
2029 addExtraCompilerWithHeader(idl)
2030
2031 # GENERATOR 2-A: LUT creator
2032 domlut.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.lut.h
2033 domlut.commands = perl $$PWD/../JavaScriptCore/create_hash_table ${QMAKE_FILE_NAME} -n WebCore > ${QMAKE_FILE_OUT}
2034 domlut.depend = ${QMAKE_FILE_NAME}
2035 domlut.input = DOMLUT_FILES
2036 domlut.CONFIG += no_link
2037 addExtraCompiler(domlut)
2038
2039 # GENERATOR 3: tokenizer (flex)
2040 tokenizer.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.cpp
2041 tokenizer.commands = flex -t < ${QMAKE_FILE_NAME} | perl $$PWD/css/maketokenizer > ${QMAKE_FILE_OUT}
2042 tokenizer.dependency_type = TYPE_C
2043 tokenizer.input = TOKENIZER
2044 tokenizer.CONFIG += target_predeps no_link
2045 addExtraCompiler(tokenizer)
2046
2047 # GENERATOR 4: CSS grammar
2048 cssbison.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.cpp
2049 cssbison.commands = perl $$PWD/css/makegrammar.pl ${QMAKE_FILE_NAME} $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}
2050 cssbison.depend = ${QMAKE_FILE_NAME}
2051 cssbison.input = CSSBISON
2052 cssbison.CONFIG = target_predeps
2053 cssbison.dependency_type = TYPE_C
2054 cssbison.variable_out = GENERATED_SOURCES
2055 addExtraCompilerWithHeader(cssbison)
2056
2057 # GENERATOR 5-A:
2058 htmlnames.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}HTMLNames.cpp
2059 htmlnames.commands = perl -I$$PWD/bindings/scripts $$PWD/dom/make_names.pl --tags $$PWD/html/HTMLTagNames.in --attrs $$PWD/html/HTMLAttributeNames.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\"  --factory --wrapperFactory --outputDir $$GENERATED_SOURCES_DIR
2060 htmlnames.input = HTML_NAMES
2061 htmlnames.dependency_type = TYPE_C
2062 htmlnames.CONFIG = target_predeps
2063 htmlnames.variable_out = GENERATED_SOURCES
2064 addExtraCompilerWithHeader(htmlnames)
2065
2066 htmlelementfactory.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}HTMLElementFactory.cpp
2067 htmlelementfactory.commands = @echo -n ''
2068 htmlelementfactory.input = HTML_NAMES
2069 htmlelementfactory.depends = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}HTMLNames.cpp
2070 htmlelementfactory.CONFIG = target_predeps
2071 htmlelementfactory.variable_out = GENERATED_SOURCES
2072 htmlelementfactory.clean += ${QMAKE_FILE_OUT}
2073 addExtraCompilerWithHeader(htmlelementfactory)
2074
2075 elementwrapperfactory.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}JSHTMLElementWrapperFactory.cpp
2076 elementwrapperfactory.commands = @echo -n ''
2077 elementwrapperfactory.input = HTML_NAMES
2078 elementwrapperfactory.depends = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}HTMLNames.cpp
2079 elementwrapperfactory.CONFIG = target_predeps
2080 elementwrapperfactory.variable_out = GENERATED_SOURCES
2081 elementwrapperfactory.clean += ${QMAKE_FILE_OUT}
2082 addExtraCompilerWithHeader(elementwrapperfactory)
2083
2084 # GENERATOR 5-B:
2085 xmlnames.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}XMLNames.cpp
2086 xmlnames.commands = perl -I$$PWD/bindings/scripts $$PWD/dom/make_names.pl --attrs $$PWD/xml/xmlattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$GENERATED_SOURCES_DIR
2087 xmlnames.input = XML_NAMES
2088 xmlnames.dependency_type = TYPE_C
2089 xmlnames.CONFIG = target_predeps
2090 xmlnames.variable_out = GENERATED_SOURCES
2091 addExtraCompilerWithHeader(xmlnames)
2092
2093 # GENERATOR 8-A:
2094 entities.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}HTMLEntityNames.c
2095 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}$${QMAKE_DIR_SEP}HTMLEntityNames.c
2096 entities.input = ENTITIES_GPERF
2097 entities.dependency_type = TYPE_C
2098 entities.CONFIG = target_predeps no_link
2099 entities.clean = ${QMAKE_FILE_OUT}
2100 addExtraCompiler(entities)
2101
2102 # GENERATOR 8-B:
2103 doctypestrings.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.cpp
2104 doctypestrings.input = DOCTYPESTRINGS
2105 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}
2106 doctypestrings.dependency_type = TYPE_C
2107 doctypestrings.CONFIG += target_predeps no_link
2108 doctypestrings.clean = ${QMAKE_FILE_OUT}
2109 addExtraCompiler(doctypestrings)
2110
2111 # GENERATOR 8-C:
2112 colordata.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}ColorData.c
2113 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}
2114 colordata.input = COLORDAT_GPERF
2115 colordata.CONFIG = target_predeps no_link
2116 addExtraCompiler(colordata)
2117
2118 # GENERATOR 9:
2119 stylesheets.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}UserAgentStyleSheetsData.cpp
2120 stylesheets.commands = perl $$PWD/css/make-css-file-arrays.pl --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_VAR_GENERATED_SOURCES_DIR_SLASH}UserAgentStyleSheets.h ${QMAKE_FILE_OUT} $$STYLESHEETS_EMBED
2121 STYLESHEETS_EMBED_GENERATOR_SCRIPT = $$PWD/css/make-css-file-arrays.pl
2122 stylesheets.input = STYLESHEETS_EMBED_GENERATOR_SCRIPT
2123 stylesheets.depends = $$STYLESHEETS_EMBED
2124 stylesheets.CONFIG = target_predeps
2125 stylesheets.variable_out = GENERATED_SOURCES
2126 stylesheets.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_GENERATED_SOURCES_DIR_SLASH}UserAgentStyleSheets.h
2127 addExtraCompilerWithHeader(stylesheets, $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}UserAgentStyleSheets.h)
2128
2129 # GENERATOR 10: XPATH grammar
2130 xpathbison.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.cpp
2131 xpathbison.commands = bison -d -p xpathyy ${QMAKE_FILE_NAME} -o $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.c && $(MOVE) $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.c $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.cpp && $(MOVE) $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.h $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.h
2132 xpathbison.depend = ${QMAKE_FILE_NAME}
2133 xpathbison.input = XPATHBISON
2134 xpathbison.CONFIG = target_predeps
2135 xpathbison.dependency_type = TYPE_C
2136 xpathbison.variable_out = GENERATED_SOURCES
2137 addExtraCompilerWithHeader(xpathbison)
2138
2139 include($$PWD/../WebKit/qt/Api/headers.pri)
2140 HEADERS += $$WEBKIT_API_HEADERS
2141 !CONFIG(QTDIR_build) {
2142     target.path = $$[QT_INSTALL_LIBS]
2143     headers.files = $$WEBKIT_API_HEADERS
2144     headers.path = $$[QT_INSTALL_HEADERS]/QtWebKit
2145     prf.files = $$PWD/../WebKit/qt/Api/qtwebkit.prf
2146     prf.path = $$[QT_INSTALL_PREFIX]/mkspecs/features
2147
2148     VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
2149
2150     win32-*|wince* {
2151         DLLDESTDIR = $$OUTPUT_DIR/bin
2152
2153         dlltarget.commands = $(COPY_FILE) $(DESTDIR)$(TARGET) $$[QT_INSTALL_BINS]
2154         dlltarget.CONFIG = no_path
2155         INSTALLS += dlltarget
2156     }
2157
2158
2159     INSTALLS += target headers prf
2160
2161     unix {
2162         CONFIG += create_pc create_prl
2163         QMAKE_PKGCONFIG_LIBDIR = $$target.path
2164         QMAKE_PKGCONFIG_INCDIR = $$headers.path
2165         QMAKE_PKGCONFIG_DESTDIR = pkgconfig
2166         lib_replace.match = $$DESTDIR
2167         lib_replace.replace = $$[QT_INSTALL_LIBS]
2168         QMAKE_PKGCONFIG_INSTALL_REPLACE += lib_replace
2169     }
2170
2171     mac:!static:contains(QT_CONFIG, qt_framework):!CONFIG(webkit_no_framework) {
2172         !build_pass {
2173             message("Building QtWebKit as a framework, as that's how Qt was built. You can")
2174             message("override this by passing CONFIG+=webkit_no_framework to build-webkit.")
2175         } else {
2176             debug_and_release:CONFIG(debug, debug|release) {
2177                 TARGET = $$qtLibraryTarget($$TARGET)
2178             }
2179         }
2180
2181         CONFIG += lib_bundle qt_no_framework_direct_includes qt_framework
2182         FRAMEWORK_HEADERS.version = Versions
2183         FRAMEWORK_HEADERS.files = $$WEBKIT_API_HEADERS
2184         FRAMEWORK_HEADERS.path = Headers
2185         QMAKE_BUNDLE_DATA += FRAMEWORK_HEADERS
2186     }
2187 }
2188
2189 CONFIG(QTDIR_build):isEqual(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 4) {
2190     # start with 4.5
2191     CONFIG -= separate_debug_info
2192     CONFIG += no_debug_info
2193 }
2194