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