c231b96d3c54ccaff9dda06c92bc32c7047c9732
[WebKit-https.git] / WebCore / CMakeLists.txt
1
2 project( WebCore )
3
4 include (CheckCXXCompilerFlag)
5
6 include_directories(
7    BEFORE ${CMAKE_CURRENT_BINARY_DIR}
8    ${CMAKE_CURRENT_SOURCE_DIR}/../
9    ${CMAKE_CURRENT_SOURCE_DIR}/../JavaScriptCore/
10    ${CMAKE_CURRENT_SOURCE_DIR}/../JavaScriptCore/bindings
11    ${CMAKE_CURRENT_SOURCE_DIR}/../JavaScriptCore/kjs
12    ${CMAKE_CURRENT_SOURCE_DIR}/bindings/js
13    ${CMAKE_CURRENT_SOURCE_DIR}/bridge
14    ${CMAKE_CURRENT_BINARY_DIR}/css
15    ${CMAKE_CURRENT_SOURCE_DIR}/css
16    ${CMAKE_CURRENT_SOURCE_DIR}/dom
17    ${CMAKE_CURRENT_SOURCE_DIR}/editing
18    ${CMAKE_CURRENT_BINARY_DIR}/html
19    ${CMAKE_CURRENT_SOURCE_DIR}/html
20    ${CMAKE_CURRENT_SOURCE_DIR}/kcanvas
21    ${CMAKE_CURRENT_SOURCE_DIR}/kcanvas/device
22    ${CMAKE_CURRENT_SOURCE_DIR}/kcanvas/device/qt 
23    ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2 
24    ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css
25    ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/events 
26    ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc 
27    ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/misc
28    ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg
29    ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/svg
30    ${CMAKE_CURRENT_SOURCE_DIR}/loader
31    ${CMAKE_CURRENT_SOURCE_DIR}/loader/icon
32    ${CMAKE_CURRENT_SOURCE_DIR}/loader/qt
33    ${CMAKE_CURRENT_SOURCE_DIR}/page
34    ${CMAKE_CURRENT_SOURCE_DIR}/page/qt
35    ${CMAKE_CURRENT_BINARY_DIR}/platform
36    ${CMAKE_CURRENT_SOURCE_DIR}/platform 
37    ${CMAKE_CURRENT_SOURCE_DIR}/platform/graphics
38    ${CMAKE_CURRENT_SOURCE_DIR}/platform/graphics/qt
39    ${CMAKE_CURRENT_SOURCE_DIR}/platform/graphics/svg
40    ${CMAKE_CURRENT_SOURCE_DIR}/platform/graphics/svg/filters
41    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders
42    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/gif
43    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/jpeg
44    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/ico
45    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/xbm
46    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/bmp
47    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/png
48    ${CMAKE_CURRENT_SOURCE_DIR}/platform/network
49    ${CMAKE_CURRENT_SOURCE_DIR}/platform/network/qt
50    ${CMAKE_CURRENT_SOURCE_DIR}/platform/qt
51    ${CMAKE_CURRENT_SOURCE_DIR}/rendering
52    ${CMAKE_CURRENT_BINARY_DIR}/xml
53    ${CMAKE_CURRENT_SOURCE_DIR}/xml
54 )
55
56 include_directories( ${LIBXML2_INCLUDE_DIR} ${QT_INCLUDES} )
57
58 add_definitions( -DQT3_SUPPORT -Wno-undef -Wno-unused-parameter )
59 check_cxx_compiler_flag( -Wno-variadic-macros __KDE_HAVE_WVARIADIC_MACROS )
60
61 IF ( __KDE_HAVE_WVARIADIC_MACROS )
62   add_definitions( -Wno-variadic-macros )
63 ENDIF (__KDE_HAVE_WVARIADIC_MACROS)
64
65 kde4_automoc( WebCore platform/network/qt/ResourceHandleManager.cpp )
66 kde4_automoc( WebCore platform/qt/ScrollViewCanvasQt.cpp )
67 kde4_automoc( WebCore platform/qt/SharedTimerQt.cpp )
68
69 SET (FEATURE_DEFINES_JAVASCRIPT LANGUAGE_JAVASCRIPT)
70
71 IF (WEBKIT_USE_XPATH_SUPPORT)
72 SET (FEATURE_DEFINES_JAVASCRIPT ${FEATURE_DEFINES_JAVASCRIPT} XPATH_SUPPORT)
73
74 set(IDL_BINDINGS_XPATH
75     xml/XPathEvaluator.idl
76     xml/XPathExpression.idl
77     xml/XPathNSResolver.idl
78     xml/XPathResult.idl
79 )
80 ENDIF (WEBKIT_USE_XPATH_SUPPORT)
81
82 IF (WEBKIT_USE_XSLT_SUPPORT)
83 SET (FEATURE_DEFINES_JAVASCRIPT ${FEATURE_DEFINES_JAVASCRIPT} XSLT_SUPPORT)
84 ENDIF (WEBKIT_USE_XSLT_SUPPORT)
85
86 IF (WEBKIT_USE_XBL_SUPPORT)
87 SET (FEATURE_DEFINES_JAVASCRIPT ${FEATURE_DEFINES_JAVASCRIPT} XBL_SUPPORT)
88 ENDIF (WEBKIT_USE_XBL_SUPPORT)
89
90 # rules for generated files
91 IF (WEBKIT_USE_SVG_SUPPORT)
92 SET (FEATURE_DEFINES_JAVASCRIPT ${FEATURE_DEFINES_JAVASCRIPT} SVG_SUPPORT)
93
94 set(IDL_BINDINGS_SVG
95     ksvg2/events/SVGZoomEvent.idl
96
97     ksvg2/svg/SVGAElement.idl
98     ksvg2/svg/SVGAngle.idl
99     ksvg2/svg/SVGAnimateColorElement.idl
100     ksvg2/svg/SVGAnimatedAngle.idl
101     ksvg2/svg/SVGAnimatedBoolean.idl
102     ksvg2/svg/SVGAnimatedEnumeration.idl
103     ksvg2/svg/SVGAnimatedInteger.idl
104     ksvg2/svg/SVGAnimatedLength.idl
105     ksvg2/svg/SVGAnimatedLengthList.idl
106     ksvg2/svg/SVGAnimatedNumber.idl
107     ksvg2/svg/SVGAnimatedNumberList.idl
108     ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl
109     ksvg2/svg/SVGAnimatedRect.idl
110     ksvg2/svg/SVGAnimatedString.idl
111     ksvg2/svg/SVGAnimatedTransformList.idl
112     ksvg2/svg/SVGAnimateElement.idl
113     ksvg2/svg/SVGAnimateTransformElement.idl
114     ksvg2/svg/SVGAnimationElement.idl
115     ksvg2/svg/SVGCircleElement.idl
116     ksvg2/svg/SVGClipPathElement.idl
117     ksvg2/svg/SVGColor.idl
118     ksvg2/svg/SVGComponentTransferFunctionElement.idl
119     ksvg2/svg/SVGCursorElement.idl
120     ksvg2/svg/SVGDefsElement.idl
121     ksvg2/svg/SVGDescElement.idl
122     ksvg2/svg/SVGDocument.idl
123     ksvg2/svg/SVGElement.idl
124     ksvg2/svg/SVGEllipseElement.idl
125     ksvg2/svg/SVGFEBlendElement.idl
126     ksvg2/svg/SVGFEColorMatrixElement.idl
127     ksvg2/svg/SVGFEComponentTransferElement.idl
128     ksvg2/svg/SVGFECompositeElement.idl
129     ksvg2/svg/SVGFEDiffuseLightingElement.idl
130     ksvg2/svg/SVGFEDisplacementMapElement.idl
131     ksvg2/svg/SVGFEDistantLightElement.idl
132     ksvg2/svg/SVGFEFloodElement.idl
133     ksvg2/svg/SVGFEFuncAElement.idl
134     ksvg2/svg/SVGFEFuncBElement.idl
135     ksvg2/svg/SVGFEFuncGElement.idl
136     ksvg2/svg/SVGFEFuncRElement.idl
137     ksvg2/svg/SVGFEGaussianBlurElement.idl
138     ksvg2/svg/SVGFEImageElement.idl
139     ksvg2/svg/SVGFEMergeElement.idl
140     ksvg2/svg/SVGFEMergeNodeElement.idl
141     ksvg2/svg/SVGFEOffsetElement.idl
142     ksvg2/svg/SVGFEPointLightElement.idl
143     ksvg2/svg/SVGFESpecularLightingElement.idl
144     ksvg2/svg/SVGFESpotLightElement.idl
145     ksvg2/svg/SVGFETileElement.idl
146     ksvg2/svg/SVGFETurbulenceElement.idl
147     ksvg2/svg/SVGFilterElement.idl
148     ksvg2/svg/SVGForeignObjectElement.idl
149     ksvg2/svg/SVGGElement.idl
150     ksvg2/svg/SVGGradientElement.idl
151     ksvg2/svg/SVGImageElement.idl
152     ksvg2/svg/SVGLength.idl
153     ksvg2/svg/SVGLengthList.idl
154     ksvg2/svg/SVGLinearGradientElement.idl
155     ksvg2/svg/SVGLineElement.idl
156     ksvg2/svg/SVGMarkerElement.idl
157     ksvg2/svg/SVGMaskElement.idl
158     ksvg2/svg/SVGMatrix.idl
159     ksvg2/svg/SVGMetadataElement.idl
160     ksvg2/svg/SVGNumberList.idl
161     ksvg2/svg/SVGPaint.idl
162     ksvg2/svg/SVGPathElement.idl
163     ksvg2/svg/SVGPathSegArcAbs.idl
164     ksvg2/svg/SVGPathSegArcRel.idl
165     ksvg2/svg/SVGPathSegClosePath.idl
166     ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl
167     ksvg2/svg/SVGPathSegCurvetoCubicRel.idl
168     ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl
169     ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl
170     ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl
171     ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl
172     ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl
173     ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl
174     ksvg2/svg/SVGPathSeg.idl
175     ksvg2/svg/SVGPathSegLinetoAbs.idl
176     ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl
177     ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl
178     ksvg2/svg/SVGPathSegLinetoRel.idl
179     ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl
180     ksvg2/svg/SVGPathSegLinetoVerticalRel.idl
181     ksvg2/svg/SVGPathSegList.idl
182     ksvg2/svg/SVGPathSegMovetoAbs.idl
183     ksvg2/svg/SVGPathSegMovetoRel.idl
184     ksvg2/svg/SVGPatternElement.idl
185     ksvg2/svg/SVGPointList.idl
186     ksvg2/svg/SVGPolygonElement.idl
187     ksvg2/svg/SVGPolylineElement.idl
188     ksvg2/svg/SVGPreserveAspectRatio.idl
189     ksvg2/svg/SVGRadialGradientElement.idl
190     ksvg2/svg/SVGRectElement.idl
191     ksvg2/svg/SVGRenderingIntent.idl
192     ksvg2/svg/SVGScriptElement.idl
193     ksvg2/svg/SVGSetElement.idl
194     ksvg2/svg/SVGStopElement.idl
195     ksvg2/svg/SVGStringList.idl
196     ksvg2/svg/SVGStyleElement.idl
197     ksvg2/svg/SVGSVGElement.idl
198     ksvg2/svg/SVGSwitchElement.idl
199     ksvg2/svg/SVGSymbolElement.idl
200     ksvg2/svg/SVGTextContentElement.idl
201     ksvg2/svg/SVGTextElement.idl
202     ksvg2/svg/SVGTextPositioningElement.idl
203     ksvg2/svg/SVGTitleElement.idl
204     ksvg2/svg/SVGTransform.idl
205     ksvg2/svg/SVGTransformList.idl
206     ksvg2/svg/SVGTRefElement.idl
207     ksvg2/svg/SVGTSpanElement.idl
208     ksvg2/svg/SVGUnitTypes.idl
209     ksvg2/svg/SVGUseElement.idl
210     ksvg2/svg/SVGViewElement.idl
211 )
212
213 ENDIF (WEBKIT_USE_SVG_SUPPORT)
214
215 set(IDL_BINDINGS
216     css/Counter.idl
217     css/CSSPrimitiveValue.idl
218     css/CSSRule.idl
219     css/CSSRuleList.idl
220     css/CSSStyleDeclaration.idl
221     css/CSSValue.idl
222     css/CSSValueList.idl
223     css/MediaList.idl
224
225     dom/Attr.idl
226     dom/CharacterData.idl
227     dom/DocumentFragment.idl
228     dom/Document.idl
229     dom/DocumentType.idl
230     dom/DOMImplementation.idl
231     dom/Element.idl
232     dom/Entity.idl
233     dom/Event.idl
234     dom/KeyboardEvent.idl
235     dom/MouseEvent.idl
236     dom/MutationEvent.idl
237     dom/NodeFilter.idl
238     dom/Node.idl
239     dom/NodeIterator.idl
240     dom/Notation.idl
241     dom/OverflowEvent.idl
242     dom/ProcessingInstruction.idl
243     dom/RangeException.idl
244     dom/Range.idl
245     dom/Text.idl
246     dom/TreeWalker.idl
247     dom/UIEvent.idl
248     dom/WheelEvent.idl
249
250     html/CanvasGradient.idl
251     html/CanvasPattern.idl
252     html/CanvasRenderingContext2D.idl
253     html/HTMLAnchorElement.idl
254     html/HTMLAppletElement.idl
255     html/HTMLAreaElement.idl
256     html/HTMLBaseElement.idl
257     html/HTMLBaseFontElement.idl
258     html/HTMLBlockquoteElement.idl
259     html/HTMLBodyElement.idl
260     html/HTMLBRElement.idl
261     html/HTMLButtonElement.idl
262     html/HTMLCanvasElement.idl
263     html/HTMLDirectoryElement.idl
264     html/HTMLDivElement.idl
265     html/HTMLDListElement.idl
266     html/HTMLDocument.idl
267     html/HTMLElement.idl
268     html/HTMLFieldSetElement.idl
269     html/HTMLFontElement.idl
270     html/HTMLFormElement.idl
271     html/HTMLHeadElement.idl
272     html/HTMLHeadingElement.idl
273     html/HTMLHRElement.idl
274     html/HTMLHtmlElement.idl
275     html/HTMLImageElement.idl
276     html/HTMLInputElement.idl
277     html/HTMLIsIndexElement.idl
278     html/HTMLLabelElement.idl
279     html/HTMLLegendElement.idl
280     html/HTMLLIElement.idl
281     html/HTMLLinkElement.idl
282     html/HTMLMapElement.idl
283     html/HTMLMenuElement.idl
284     html/HTMLMetaElement.idl
285     html/HTMLModElement.idl
286     html/HTMLOListElement.idl
287     html/HTMLOptGroupElement.idl
288     html/HTMLOptionElement.idl
289     html/HTMLOptionsCollection.idl
290     html/HTMLParagraphElement.idl
291     html/HTMLParamElement.idl
292     html/HTMLPreElement.idl
293     html/HTMLQuoteElement.idl
294     html/HTMLScriptElement.idl
295     html/HTMLStyleElement.idl
296     html/HTMLTextAreaElement.idl
297     html/HTMLTitleElement.idl
298     html/HTMLUListElement.idl
299
300     page/DOMWindow.idl
301
302     xml/DOMParser.idl
303     xml/XMLSerializer.idl
304
305     ${IDL_BINDINGS_SVG}
306     ${IDL_BINDINGS_XPATH}
307 )
308
309 set(WebCore-unity-IDLGeneratedSources )
310
311 # create these files at build time on demand, not everytime at cmake-time, Alex
312 foreach (idl ${IDL_BINDINGS})
313    get_filename_component(_basename ${idl} NAME_WE)
314    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.cpp ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.h
315       COMMAND perl -I${CMAKE_CURRENT_SOURCE_DIR}/bindings/scripts ${CMAKE_CURRENT_SOURCE_DIR}/bindings/scripts/generate-bindings.pl  --defines \"${FEATURE_DEFINES_JAVASCRIPT}\" --generator JS --include ${CMAKE_SOURCE_DIR}/WebCore/dom --include ${CMAKE_SOURCE_DIR}/WebCore/html --include ${CMAKE_SOURCE_DIR}/WebCore/xml --include ${CMAKE_SOURCE_DIR}/WebCore/ksvg2/svg --outputdir ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${idl}
316       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${idl} ${CMAKE_CURRENT_SOURCE_DIR}/bindings/scripts/CodeGenerator.pm ${CMAKE_CURRENT_SOURCE_DIR}/bindings/scripts/CodeGeneratorJS.pm)
317    set(WebCore-unity-IDLGeneratedSources ${WebCore-unity-IDLGeneratedSources} ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.cpp ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.h )
318 endforeach (idl)
319
320 set(CREATE_HASH_TABLE ${CMAKE_CURRENT_SOURCE_DIR}/../JavaScriptCore/kjs/create_hash_table )
321
322 macro(CREATE_LUT _srcs_LIST _in_FILE _out_FILE _dep_FILE)
323
324    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
325       COMMAND ${PERL_EXECUTABLE} ${CREATE_HASH_TABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} -i > ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
326       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/${_dep_FILE} )
327    set( ${_srcs_LIST}  ${${_srcs_LIST}} ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE})
328 endmacro(CREATE_LUT)
329
330 macro(CREATE_CPP_LUT _in_FILE _out_FILE _dep_FILE)
331    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
332       COMMAND ${PERL_EXECUTABLE} ${CREATE_HASH_TABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} -i > ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
333       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/${_dep_FILE} )
334 endmacro(CREATE_CPP_LUT)
335
336
337 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_css.cpp kjs_css.lut.h bindings/js/kjs_css.cpp )
338 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_dom.cpp kjs_dom.lut.h bindings/js/kjs_dom.cpp )
339 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_events.cpp kjs_events.lut.h bindings/js/kjs_events.cpp )
340 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_html.cpp kjs_html.lut.h bindings/js/kjs_html.cpp )
341 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_navigator.cpp kjs_navigator.lut.h bindings/js/kjs_navigator.cpp )
342 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_traversal.cpp kjs_traversal.lut.h bindings/js/kjs_traversal.cpp )
343 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_window.cpp kjs_window.lut.h bindings/js/kjs_window.cpp )
344 create_lut( WebCore-unity_LIB_SRCS bindings/js/JSXMLHttpRequest.cpp JSXMLHttpRequest.lut.h bindings/js/JSXMLHttpRequest.cpp )
345 create_lut( WebCore-unity_LIB_SRCS bindings/js/JSXSLTProcessor.cpp JSXSLTProcessor.lut.h bindings/js/JSXSLTProcessor.cpp )
346
347 # now this is ugly
348 # WebKit sources include some generated files which have the suffix ".cpp"
349 # the CMake way to create the dependencies of targets to generated files is
350 # to list the generated files as part of the sources for the target.
351 # If this would be done for the generated-and-then-included cpp-files
352 # they would be compiled twice (once included and once on their own).
353 # The easy way would be to rename the generated files to use the suffix
354 # ".inl" or something like this. But this is not wanted by the WebKit developers
355 # AFAIK. So we have to work around it here. This is done by renaming the
356 # generated files to *.inl and adding these files to the list of sources
357 # (WebCore-unity_LIB_SRCS). But the include-statements still want a cpp-file,
358 # so tell CMake to create these cpp-files at cmake-time, but these files contain
359 # nothing except an include-statement for the inl-file. Alex
360 macro(CREATE_GENERATED_CPP_HELPER  _inlName)
361    get_filename_component(_baseName ${_inlName} NAME_WE)
362    if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/${_baseName}.cpp)
363       file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${_baseName}.cpp
364 "/* This file is autogenerated by CMake.                                       *
365  * Do not edit, changes will be lost.                                         *
366  * With the CMake buildsystem giving generated-but-not-compiled-on-their-own  *
367  * files the suffix \".cpp\" is not recommended, because it breaks the          *
368  * dependency handling. So the actual generated file has the suffix \".inl\"    *
369  * and this file here only exists as a helper.                                */
370 #include \"${CMAKE_CURRENT_BINARY_DIR}/${_inlName}\"\n")
371    endif (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/${_baseName}.cpp)
372    set(WebCore-unity_LIB_SRCS ${WebCore-unity_LIB_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/${_inlName})
373 endmacro(CREATE_GENERATED_CPP_HELPER  _inlName)
374
375 create_cpp_lut( bindings/js/JSHTMLInputElementBase.cpp JSHTMLInputElementBaseTable.inl bindings/js/JSHTMLInputElementBase.cpp )
376 create_generated_cpp_helper( JSHTMLInputElementBaseTable.inl)
377
378 IF (WEBKIT_USE_SVG_SUPPORT)
379     create_cpp_lut( bindings/js/JSSVGNumber.cpp JSSVGNumberTable.inl bindings/js/JSSVGNumber.cpp )
380
381     create_cpp_lut( bindings/js/JSSVGPoint.cpp JSSVGPointTable.inl bindings/js/JSSVGPoint.cpp )
382     create_generated_cpp_helper( JSSVGPointTable.inl )
383
384     create_cpp_lut( bindings/js/JSSVGRect.cpp JSSVGRectTable.inl bindings/js/JSSVGRect.cpp )
385     create_generated_cpp_helper( JSSVGRectTable.inl )
386 ENDIF (WEBKIT_USE_SVG_SUPPORT)
387
388 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/tokenizer.inl
389   COMMAND flex -t < ${CMAKE_CURRENT_SOURCE_DIR}/css/tokenizer.flex | perl ${CMAKE_CURRENT_SOURCE_DIR}/css/maketokenizer > ${CMAKE_CURRENT_BINARY_DIR}/tokenizer.inl
390   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/tokenizer.flex
391 )
392 create_generated_cpp_helper( tokenizer.inl )
393
394 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/CSSPropertyNames.h ${CMAKE_CURRENT_BINARY_DIR}/CSSPropertyNames.c
395
396   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
397   COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSPropertyNames.in ${CMAKE_CURRENT_BINARY_DIR}/CSSPropertyNames.in
398   COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/css/makeprop
399
400   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSPropertyNames.in
401 )
402
403 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/CSSValueKeywords.h ${CMAKE_CURRENT_BINARY_DIR}/CSSValueKeywords.c
404
405   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
406   COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSValueKeywords.in ${CMAKE_CURRENT_BINARY_DIR}
407   COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/css/makevalues
408
409   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSValueKeywords.in
410 )
411
412 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.cpp ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.h
413   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
414   COMMAND ${BISON_EXECUTABLE} -d -p cssyy ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSGrammar.y
415   COMMAND mv CSSGrammar.tab.c ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.cpp
416   #COMMAND rm -f CSSGrammar.tab.h
417   #COMMAND touch CSSGrammar.h
418   COMMAND mv CSSGrammar.tab.h ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.h
419   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSGrammar.y
420 )
421
422 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/XPathGrammar.cpp ${CMAKE_CURRENT_BINARY_DIR}/XPathGrammar.h
423   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
424   COMMAND ${BISON_EXECUTABLE} -d -p xpathyy ${CMAKE_CURRENT_SOURCE_DIR}/xml/XPathGrammar.y
425   COMMAND mv XPathGrammar.tab.c ${CMAKE_CURRENT_BINARY_DIR}/XPathGrammar.cpp
426   #COMMAND rm -f XPathGrammar.tab.h
427   #COMMAND touch XPathGrammar.h
428   COMMAND mv XPathGrammar.tab.h ${CMAKE_CURRENT_BINARY_DIR}/XPathGrammar.h
429   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/xml/XPathGrammar.y
430 )
431
432 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/HTMLNames.cpp ${CMAKE_CURRENT_BINARY_DIR}/html/HTMLNames.h
433   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
434   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/html
435   COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/make_names.pl --tags ${CMAKE_CURRENT_SOURCE_DIR}/html/HTMLTagNames.in --attrs ${CMAKE_CURRENT_SOURCE_DIR}/html/HTMLAttributeNames.in --namespace HTML --namespacePrefix xhtml --cppNamespace WebCore --namespaceURI "http://www.w3.org/1999/xhtml" --attrsNullNamespace --output html
436
437   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/html/HTMLTagNames.in ${CMAKE_CURRENT_SOURCE_DIR}/html/HTMLAttributeNames.in
438 )
439
440 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg/SVGNames.cpp ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg/SVGNames.h ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg/SVGElementFactory.cpp ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg/SVGElementFactory.h
441   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
442   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg
443   COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/make_names.pl --tags ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/svg/svgtags.in --attrs ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/svg/svgattrs.in --namespace SVG --cppNamespace WebCore --namespaceURI "http://www.w3.org/2000/svg" --factory --attrsNullNamespace --output ksvg2/svg
444
445   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/svg/svgtags.in ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/svg/svgattrs.in
446 )
447
448 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc/XLinkNames.cpp ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc/XLinkNames.h
449   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
450   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc
451   COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/make_names.pl --attrs ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/misc/xlinkattrs.in --namespace XLink --cppNamespace WebCore --namespaceURI "http://www.w3.org/1999/xlink" --output ksvg2/misc
452
453   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/misc/xlinkattrs.in
454 )
455
456 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/xml/XMLNames.cpp ${CMAKE_CURRENT_BINARY_DIR}/xml/XMLNames.h
457   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
458   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/xml
459   COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/make_names.pl --attrs ${CMAKE_CURRENT_SOURCE_DIR}/xml/xmlattrs.in --namespace XML --cppNamespace WebCore --namespaceURI "http://www.w3.org/XML/1998/namespace" --output xml
460
461   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/xml/xmlattrs.in
462 )
463
464 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/HTMLEntityNames.c
465   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
466   COMMAND mkdir -p html
467   COMMAND echo '\#include <string.h>' > html/HTMLEntityNames.c
468   COMMAND ${GPERF_EXECUTABLE} -a -L ANSI-C -C -G -c -o -t -k '*' -N findEntity -D -s 2 < ${CMAKE_CURRENT_SOURCE_DIR}/html/HTMLEntityNames.gperf >> html/HTMLEntityNames.c
469
470   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/html/HTMLEntityNames.gperf
471 )
472
473 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/DocTypeStrings.cpp
474   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
475   COMMAND mkdir -p html
476   COMMAND echo '\#include <string.h>' > html/DocTypeStrings.cpp
477   COMMAND ${GPERF_EXECUTABLE} -CEot -L ANSI-C -k \"*\" -N findDoctypeEntry -F ,PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards < ${CMAKE_CURRENT_SOURCE_DIR}/html/DocTypeStrings.gperf >> html/DocTypeStrings.cpp
478   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/html/DocTypeStrings.gperf
479 )
480
481 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/platform/ColorData.c
482   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
483   COMMAND mkdir -p platform
484   COMMAND echo '\#include <string.h>' > platform/ColorData.c
485   COMMAND ${GPERF_EXECUTABLE} -CDEot -L ANSI-C -k \"*\" -N findColor -D -s 2 < ${CMAKE_CURRENT_SOURCE_DIR}/platform/ColorData.gperf >> platform/ColorData.c
486   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/platform/ColorData.gperf
487 )
488
489 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ksvgcssproperties.h
490   COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css/CSSPropertyNames.in ${CMAKE_CURRENT_BINARY_DIR}/ksvgcssproperties.in
491   COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/cssmakeprops -n SVG -f ksvgcssproperties.in
492   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/cssmakeprops ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css/CSSPropertyNames.in
493 )
494
495 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ksvgcssvalues.h
496   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
497   COMMAND perl -ne 'print lc' ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css/CSSValueKeywords.in > ksvgcssvalues.in
498   COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/cssmakevalues -n SVG -f ksvgcssvalues.in
499   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/cssmakevalues ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css/CSSValueKeywords.in
500 )
501
502 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/UserAgentStyleSheets.h ${CMAKE_CURRENT_BINARY_DIR}/UserAgentStyleSheetsData.cpp
503   COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/css/make-css-file-arrays.pl ${CMAKE_CURRENT_BINARY_DIR}/UserAgentStyleSheets.h ${CMAKE_CURRENT_BINARY_DIR}/UserAgentStyleSheetsData.cpp ${CMAKE_CURRENT_SOURCE_DIR}/css/html4.css ${CMAKE_CURRENT_SOURCE_DIR}/css/quirks.css ${CMAKE_CURRENT_SOURCE_DIR}/css/svg.css ${CMAKE_CURRENT_SOURCE_DIR}/css/view-source.css
504   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/html4.css ${CMAKE_CURRENT_SOURCE_DIR}/css/quirks.css ${CMAKE_CURRENT_SOURCE_DIR}/css/svg.css
505 )
506
507 # source stuff
508 if (WEBKIT_USE_XPATH_SUPPORT)
509 SET (XPATH_SOURCES
510     ${CMAKE_CURRENT_BINARY_DIR}/XPathGrammar.cpp
511     ${CMAKE_CURRENT_BINARY_DIR}/XPathGrammar.h
512 )
513 ENDIF (WEBKIT_USE_XPATH_SUPPORT)
514
515 IF (WEBKIT_USE_SVG_SUPPORT)
516 set (SVG_SOURCES
517     ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc/XLinkNames.cpp
518     ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg/SVGElementFactory.cpp
519     ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg/SVGNames.cpp
520     ${CMAKE_CURRENT_BINARY_DIR}/xml/XMLNames.cpp
521
522     bindings/js/JSSVGElementWrapperFactory.cpp
523     bindings/js/JSSVGNumber.cpp
524     bindings/js/JSSVGPoint.cpp
525     bindings/js/JSSVGRect.cpp
526
527     kcanvas/device/KRenderingDevice.cpp
528     kcanvas/device/KRenderingPaintServerGradient.cpp
529     kcanvas/device/KRenderingPaintServerPattern.cpp
530     kcanvas/device/KRenderingPaintServerSolid.cpp
531 #   kcanvas/device/qt/KCanvasFilterQt.cpp
532 #   kcanvas/device/qt/KCanvasImageItemQt.cpp
533     kcanvas/device/qt/KRenderingDeviceQt.cpp
534     kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp
535     kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp
536     kcanvas/device/qt/KRenderingPaintServerQt.cpp
537     kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp
538     kcanvas/device/qt/RenderPathQt.cpp
539
540     ksvg2/css/SVGCSSParser.cpp
541     ksvg2/css/SVGCSSStyleSelector.cpp
542     ksvg2/css/SVGRenderStyle.cpp
543     ksvg2/css/SVGRenderStyleDefs.cpp
544
545     ksvg2/events/JSSVGLazyEventListener.cpp
546     ksvg2/events/SVGZoomEvent.cpp
547
548     ksvg2/misc/KCanvasRenderingStyle.cpp
549     ksvg2/misc/KSVGTimeScheduler.cpp
550     ksvg2/misc/SVGDocumentExtensions.cpp
551     ksvg2/misc/SVGImageLoader.cpp
552
553     ksvg2/svg/SVGAElement.cpp
554     ksvg2/svg/SVGAngle.cpp
555     ksvg2/svg/SVGAnimateColorElement.cpp
556     ksvg2/svg/SVGAnimatedPathData.cpp
557     ksvg2/svg/SVGAnimatedPoints.cpp
558     ksvg2/svg/SVGAnimateElement.cpp
559     ksvg2/svg/SVGAnimateTransformElement.cpp
560     ksvg2/svg/SVGAnimationElement.cpp
561     ksvg2/svg/SVGCircleElement.cpp
562     ksvg2/svg/SVGClipPathElement.cpp
563     ksvg2/svg/SVGColor.cpp
564     ksvg2/svg/SVGComponentTransferFunctionElement.cpp
565     ksvg2/svg/SVGCursorElement.cpp
566     ksvg2/svg/SVGDefsElement.cpp
567     ksvg2/svg/SVGDescElement.cpp
568     ksvg2/svg/SVGDocument.cpp
569     ksvg2/svg/SVGDOMImplementation.cpp
570     ksvg2/svg/SVGElement.cpp
571 #   ksvg2/svg/SVGElementInstance.cpp
572 #   ksvg2/svg/SVGElementInstanceList.cpp
573     ksvg2/svg/SVGEllipseElement.cpp
574     ksvg2/svg/SVGExternalResourcesRequired.cpp
575     ksvg2/svg/SVGFEBlendElement.cpp
576     ksvg2/svg/SVGFEColorMatrixElement.cpp
577     ksvg2/svg/SVGFEComponentTransferElement.cpp
578     ksvg2/svg/SVGFECompositeElement.cpp
579     ksvg2/svg/SVGFEDiffuseLightingElement.cpp
580     ksvg2/svg/SVGFEDisplacementMapElement.cpp
581     ksvg2/svg/SVGFEDistantLightElement.cpp
582     ksvg2/svg/SVGFEFloodElement.cpp
583     ksvg2/svg/SVGFEFuncAElement.cpp
584     ksvg2/svg/SVGFEFuncBElement.cpp
585     ksvg2/svg/SVGFEFuncGElement.cpp
586     ksvg2/svg/SVGFEFuncRElement.cpp
587     ksvg2/svg/SVGFEGaussianBlurElement.cpp
588     ksvg2/svg/SVGFEImageElement.cpp
589     ksvg2/svg/SVGFELightElement.cpp
590     ksvg2/svg/SVGFEMergeElement.cpp
591     ksvg2/svg/SVGFEMergeNodeElement.cpp
592     ksvg2/svg/SVGFEOffsetElement.cpp
593     ksvg2/svg/SVGFEPointLightElement.cpp
594     ksvg2/svg/SVGFESpecularLightingElement.cpp
595     ksvg2/svg/SVGFESpotLightElement.cpp
596     ksvg2/svg/SVGFETileElement.cpp
597     ksvg2/svg/SVGFETurbulenceElement.cpp
598     ksvg2/svg/SVGFilterElement.cpp
599     ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp
600     ksvg2/svg/SVGFitToViewBox.cpp
601     ksvg2/svg/SVGForeignObjectElement.cpp
602     ksvg2/svg/SVGGElement.cpp
603     ksvg2/svg/SVGGradientElement.cpp
604     ksvg2/svg/SVGHelper.cpp
605     ksvg2/svg/SVGImageElement.cpp
606     ksvg2/svg/SVGLangSpace.cpp
607     ksvg2/svg/SVGLength.cpp
608     ksvg2/svg/SVGLengthList.cpp
609     ksvg2/svg/SVGLinearGradientElement.cpp
610     ksvg2/svg/SVGLineElement.cpp
611     ksvg2/svg/SVGLocatable.cpp
612     ksvg2/svg/SVGMarkerElement.cpp
613     ksvg2/svg/SVGMaskElement.cpp
614     ksvg2/svg/SVGMatrix.cpp
615     ksvg2/svg/SVGMetadataElement.cpp
616     ksvg2/svg/SVGNumberList.cpp
617     ksvg2/svg/SVGPaint.cpp
618     ksvg2/svg/SVGPathElement.cpp
619     ksvg2/svg/svgpathparser.cpp
620     ksvg2/svg/SVGPathSegArc.cpp
621     ksvg2/svg/SVGPathSegClosePath.cpp
622     ksvg2/svg/SVGPathSeg.cpp
623     ksvg2/svg/SVGPathSegCurvetoCubic.cpp
624     ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp
625     ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp
626     ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp
627     ksvg2/svg/SVGPathSegLineto.cpp
628     ksvg2/svg/SVGPathSegLinetoHorizontal.cpp
629     ksvg2/svg/SVGPathSegLinetoVertical.cpp
630     ksvg2/svg/SVGPathSegList.cpp
631     ksvg2/svg/SVGPathSegMoveto.cpp
632     ksvg2/svg/SVGPatternElement.cpp
633     ksvg2/svg/SVGPointList.cpp
634     ksvg2/svg/SVGPolyElement.cpp
635     ksvg2/svg/SVGPolygonElement.cpp
636     ksvg2/svg/SVGPolylineElement.cpp
637     ksvg2/svg/SVGPreserveAspectRatio.cpp
638     ksvg2/svg/SVGRadialGradientElement.cpp
639     ksvg2/svg/SVGRectElement.cpp
640     ksvg2/svg/SVGScriptElement.cpp
641     ksvg2/svg/SVGSetElement.cpp
642     ksvg2/svg/SVGStopElement.cpp
643     ksvg2/svg/SVGStringList.cpp
644     ksvg2/svg/SVGStylable.cpp
645     ksvg2/svg/SVGStyledElement.cpp
646     ksvg2/svg/SVGStyledLocatableElement.cpp
647     ksvg2/svg/SVGStyledTransformableElement.cpp
648     ksvg2/svg/SVGStyleElement.cpp
649     ksvg2/svg/SVGSVGElement.cpp
650     ksvg2/svg/SVGSwitchElement.cpp
651     ksvg2/svg/SVGSymbolElement.cpp
652     ksvg2/svg/SVGTests.cpp
653     ksvg2/svg/SVGTextContentElement.cpp
654     ksvg2/svg/SVGTextElement.cpp
655     ksvg2/svg/SVGTextPositioningElement.cpp
656     ksvg2/svg/SVGTitleElement.cpp
657     ksvg2/svg/SVGTransformable.cpp
658     ksvg2/svg/SVGTransform.cpp
659     ksvg2/svg/SVGTransformList.cpp
660     ksvg2/svg/SVGTRefElement.cpp
661     ksvg2/svg/SVGTSpanElement.cpp
662     ksvg2/svg/SVGURIReference.cpp
663     ksvg2/svg/SVGUseElement.cpp
664     ksvg2/svg/SVGViewElement.cpp
665     ksvg2/svg/SVGZoomAndPan.cpp
666
667     rendering/RenderForeignObject.cpp
668     rendering/RenderPath.cpp
669     rendering/RenderSVGContainer.cpp
670     rendering/RenderSVGImage.cpp
671     rendering/RenderSVGInline.cpp
672     rendering/RenderSVGInlineText.cpp
673     rendering/RenderSVGText.cpp
674     rendering/RenderSVGTSpan.cpp
675     rendering/SVGInlineFlowBox.cpp
676     rendering/SVGRootInlineBox.cpp
677 )
678 ENDIF(WEBKIT_USE_SVG_SUPPORT)
679
680 set(WebCore_SRCS
681     ${WebCore-unity_LIB_SRCS}
682
683     # Generated files first
684     ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.cpp
685     ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.h
686     ${CMAKE_CURRENT_BINARY_DIR}/CSSPropertyNames.h
687     ${CMAKE_CURRENT_BINARY_DIR}/CSSValueKeywords.h
688     ${CMAKE_CURRENT_BINARY_DIR}/html/DocTypeStrings.cpp
689     ${CMAKE_CURRENT_BINARY_DIR}/html/HTMLEntityNames.c
690     ${CMAKE_CURRENT_BINARY_DIR}/html/HTMLNames.cpp
691     ${CMAKE_CURRENT_BINARY_DIR}/ksvgcssproperties.h
692     ${CMAKE_CURRENT_BINARY_DIR}/ksvgcssvalues.h
693     ${CMAKE_CURRENT_BINARY_DIR}/platform/ColorData.c
694     ${CMAKE_CURRENT_BINARY_DIR}/UserAgentStyleSheetsData.cpp
695     ${CMAKE_CURRENT_BINARY_DIR}/UserAgentStyleSheets.h
696
697     # Hand-written JavaScript bindings
698     bindings/js/kjs_binding.cpp
699     bindings/js/kjs_css.cpp
700     bindings/js/kjs_dom.cpp
701     bindings/js/kjs_events.cpp
702     bindings/js/kjs_html.cpp
703     bindings/js/kjs_navigator.cpp
704     bindings/js/kjs_proxy.cpp
705     bindings/js/kjs_traversal.cpp
706     bindings/js/kjs_window.cpp
707
708     # Custom JavaScript object implementations
709     bindings/js/JSCanvasRenderingContext2DCustom.cpp
710     bindings/js/JSHTMLElementWrapperFactory.cpp
711     bindings/js/JSHTMLFormElementCustom.cpp
712     bindings/js/JSHTMLInputElementBase.cpp
713     bindings/js/JSHTMLOptionElementConstructor.cpp
714     bindings/js/JSHTMLOptionsCollectionCustom.cpp
715     bindings/js/JSNodeIteratorCustom.cpp
716     bindings/js/JSTreeWalkerCustom.cpp
717     bindings/js/JSXMLHttpRequest.cpp
718     bindings/js/JSXSLTProcessor.cpp
719
720     css/CSSBorderImageValue.cpp
721     css/CSSCharsetRule.cpp
722     css/CSSComputedStyleDeclaration.cpp
723     css/CSSCursorImageValue.cpp
724     css/CSSFontFaceRule.cpp
725     css/csshelper.cpp
726     css/CSSImageValue.cpp
727     css/CSSImportRule.cpp
728     css/CSSInheritedValue.cpp
729     css/CSSInitialValue.cpp
730     css/CSSMediaRule.cpp
731     css/CSSMutableStyleDeclaration.cpp
732     css/CSSPageRule.cpp
733     css/cssparser.cpp
734     css/CSSPrimitiveValue.cpp
735     css/CSSProperty.cpp
736     css/CSSRule.cpp
737     css/CSSRuleList.cpp
738     css/CSSSelector.cpp
739     css/CSSStyleDeclaration.cpp
740     css/CSSStyleRule.cpp
741     css/cssstyleselector.cpp
742     css/CSSStyleSheet.cpp
743     css/CSSValueList.cpp
744     css/FontFamilyValue.cpp
745     css/FontValue.cpp
746     css/MediaFeatureNames.cpp
747     css/MediaList.cpp
748     css/MediaQuery.cpp
749     css/MediaQueryEvaluator.cpp
750     css/MediaQueryExp.cpp
751     css/ShadowValue.cpp
752     css/StyleBase.cpp
753     css/StyleList.cpp
754     css/StyleSheet.cpp
755     css/StyleSheetList.cpp
756
757     dom/Attr.cpp
758     dom/Attribute.cpp
759     dom/BeforeTextInsertedEvent.cpp
760     dom/BeforeUnloadEvent.cpp
761     dom/CDATASection.cpp
762     dom/CharacterData.cpp
763     dom/ChildNodeList.cpp
764     dom/ClipboardEvent.cpp
765     dom/Comment.cpp
766     dom/ContainerNode.cpp
767     dom/CSSMappedAttributeDeclaration.cpp
768     dom/Document.cpp
769     dom/DocumentFragment.cpp
770     dom/DocumentType.cpp
771     dom/DOMImplementation.cpp
772     dom/EditingText.cpp
773     dom/Element.cpp
774     dom/Entity.cpp
775     dom/EntityReference.cpp
776     dom/Event.cpp
777     dom/EventNames.cpp
778     dom/EventTargetNode.cpp
779     dom/KeyboardEvent.cpp
780     dom/MappedAttribute.cpp
781     dom/MouseEvent.cpp
782     dom/MouseRelatedEvent.cpp
783     dom/MutationEvent.cpp
784     dom/NamedAttrMap.cpp
785     dom/NamedMappedAttrMap.cpp
786     dom/NameNodeList.cpp
787     dom/Node.cpp
788     dom/NodeFilterCondition.cpp
789     dom/NodeFilter.cpp
790     dom/NodeIterator.cpp
791     dom/NodeList.cpp
792     dom/Notation.cpp
793     dom/OverflowEvent.cpp
794     dom/Position.cpp
795     dom/ProcessingInstruction.cpp
796     dom/QualifiedName.cpp
797     dom/Range.cpp
798     dom/RegisteredEventListener.cpp
799     dom/StyledElement.cpp
800     dom/Text.cpp
801     dom/Traversal.cpp
802     dom/TreeWalker.cpp
803     dom/UIEvent.cpp
804     dom/WheelEvent.cpp
805     dom/XMLTokenizer.cpp
806
807     editing/AppendNodeCommand.cpp
808     editing/ApplyStyleCommand.cpp
809     editing/BreakBlockquoteCommand.cpp
810     editing/CommandByName.cpp
811     editing/CompositeEditCommand.cpp
812     editing/CreateLinkCommand.cpp
813     editing/DeleteButtonController.cpp
814     editing/DeleteButton.cpp
815     editing/DeleteFromTextNodeCommand.cpp
816     editing/DeleteSelectionCommand.cpp
817     editing/EditCommand.cpp
818     editing/Editor.cpp
819     editing/FormatBlockCommand.cpp
820     editing/htmlediting.cpp
821     editing/HTMLInterchange.cpp
822     editing/IndentOutdentCommand.cpp
823     editing/InsertIntoTextNodeCommand.cpp
824     editing/InsertLineBreakCommand.cpp
825     editing/InsertListCommand.cpp
826     editing/InsertNodeBeforeCommand.cpp
827     editing/InsertParagraphSeparatorCommand.cpp
828     editing/InsertTextCommand.cpp
829     editing/JoinTextNodesCommand.cpp
830     editing/JSEditor.cpp
831     editing/markup.cpp
832     editing/MergeIdenticalElementsCommand.cpp
833     editing/ModifySelectionListLevel.cpp
834     editing/MoveSelectionCommand.cpp
835     editing/RebalanceWhitespaceCommand.cpp
836     editing/RemoveCSSPropertyCommand.cpp
837     editing/RemoveNodeAttributeCommand.cpp
838     editing/RemoveNodeCommand.cpp
839     editing/RemoveNodePreservingChildrenCommand.cpp
840     editing/ReplaceSelectionCommand.cpp
841     editing/SelectionController.cpp
842     editing/Selection.cpp
843     editing/SetNodeAttributeCommand.cpp
844     editing/SplitElementCommand.cpp
845     editing/SplitTextNodeCommand.cpp
846     editing/SplitTextNodeContainingElementCommand.cpp
847     editing/TextIterator.cpp
848     editing/TypingCommand.cpp
849     editing/UnlinkCommand.cpp
850     editing/VisiblePosition.cpp
851     editing/visible_units.cpp
852     editing/WrapContentsInDummySpanCommand.cpp
853
854     html/CanvasGradient.cpp
855     html/CanvasPattern.cpp
856     html/CanvasRenderingContext2D.cpp
857     html/CanvasStyle.cpp
858     html/FormDataList.cpp
859     html/HTMLAnchorElement.cpp
860     html/HTMLAppletElement.cpp
861     html/HTMLAreaElement.cpp
862     html/HTMLBaseElement.cpp
863     html/HTMLBaseFontElement.cpp
864     html/HTMLBlockquoteElement.cpp
865     html/HTMLBodyElement.cpp
866     html/HTMLBRElement.cpp
867     html/HTMLButtonElement.cpp
868     html/HTMLCanvasElement.cpp
869     html/HTMLCollection.cpp
870     html/HTMLDirectoryElement.cpp
871     html/HTMLDivElement.cpp
872     html/HTMLDListElement.cpp
873     html/HTMLDocument.cpp
874     html/HTMLElement.cpp
875     html/HTMLElementFactory.cpp
876     html/HTMLEmbedElement.cpp
877     html/HTMLFieldSetElement.cpp
878     html/HTMLFontElement.cpp
879     html/HTMLFormCollection.cpp
880     html/HTMLFormElement.cpp
881     html/HTMLFrameElementBase.cpp
882     html/HTMLFrameElement.cpp
883     html/HTMLFrameSetElement.cpp
884     html/HTMLGenericFormElement.cpp
885     html/HTMLHeadElement.cpp
886     html/HTMLHeadingElement.cpp
887     html/HTMLHRElement.cpp
888     html/HTMLHtmlElement.cpp
889     html/HTMLIFrameElement.cpp
890     html/HTMLImageElement.cpp
891     html/HTMLImageLoader.cpp
892     html/HTMLInputElement.cpp
893     html/HTMLIsIndexElement.cpp
894     html/HTMLKeygenElement.cpp
895     html/HTMLLabelElement.cpp
896     html/HTMLLegendElement.cpp
897     html/HTMLLIElement.cpp
898     html/HTMLLinkElement.cpp
899     html/HTMLMapElement.cpp
900     html/HTMLMarqueeElement.cpp
901     html/HTMLMenuElement.cpp
902     html/HTMLMetaElement.cpp
903     html/HTMLModElement.cpp
904     html/HTMLNameCollection.cpp
905     html/HTMLObjectElement.cpp
906     html/HTMLOListElement.cpp
907     html/HTMLOptGroupElement.cpp
908     html/HTMLOptionElement.cpp
909     html/HTMLOptionsCollection.cpp
910     html/HTMLParagraphElement.cpp
911     html/HTMLParamElement.cpp
912     html/HTMLParser.cpp
913     html/HTMLPlugInElement.cpp
914     html/HTMLPreElement.cpp
915     html/HTMLQuoteElement.cpp
916     html/HTMLScriptElement.cpp
917     html/HTMLSelectElement.cpp
918     html/HTMLStyleElement.cpp
919     html/HTMLTableCaptionElement.cpp
920     html/HTMLTableCellElement.cpp
921     html/HTMLTableColElement.cpp
922     html/HTMLTableElement.cpp
923     html/HTMLTablePartElement.cpp
924     html/HTMLTableRowElement.cpp
925     html/HTMLTableSectionElement.cpp
926     html/HTMLTextAreaElement.cpp
927     html/HTMLTextFieldInnerElement.cpp
928     html/HTMLTitleElement.cpp
929     html/HTMLTokenizer.cpp
930     html/HTMLUListElement.cpp
931     html/HTMLViewSourceDocument.cpp
932  
933 #   icon/IconDatabase.cpp
934 #   icon/SiteIcon.cpp
935 #   icon/SQLDatabase.cpp
936 #   icon/SQLStatement.cpp
937 #   icon/SQLTransaction.cpp
938
939     loader/Cache.cpp
940     loader/CachedCSSStyleSheet.cpp
941     loader/CachedImage.cpp
942     loader/CachedResourceClientWalker.cpp
943     loader/CachedResource.cpp
944     loader/CachedScript.cpp
945     loader/CachedXSLStyleSheet.cpp
946     loader/DocLoader.cpp
947     loader/DocumentLoader.cpp
948     loader/FormState.cpp
949     loader/FrameLoader.cpp
950     loader/ImageDocument.cpp
951     loader/loader.cpp
952     loader/MainResourceLoader.cpp
953     loader/NetscapePlugInStreamLoader.cpp
954     loader/PluginDocument.cpp
955     loader/Request.cpp
956     loader/ResourceLoader.cpp
957     loader/SubresourceLoader.cpp
958     loader/TextDocument.cpp
959     loader/TextResourceDecoder.cpp
960     loader/icon/IconDatabase.cpp
961     loader/icon/IconDataCache.cpp
962     loader/icon/IconLoader.cpp
963     loader/icon/SQLDatabase.cpp
964     loader/icon/SQLStatement.cpp
965     loader/icon/SQLTransaction.cpp
966     loader/qt/DocumentLoaderQt.cpp
967     loader/qt/FrameLoaderClientQt.cpp
968     loader/qt/FrameLoaderQt.cpp
969     loader/qt/NavigationActionQt.cpp
970     loader/qt/ResourceLoaderQt.cpp
971
972     page/Chrome.cpp
973     page/ContextMenuController.cpp
974     page/DOMWindow.cpp
975     page/EventHandler.cpp   
976     page/Frame.cpp
977     page/FrameTree.cpp
978     page/FrameView.cpp
979     page/MouseEventWithHitTestResults.cpp
980     page/Page.cpp
981     page/PageState.cpp
982
983         page/qt/EventHandlerQt.cpp   
984
985     platform/Arena.cpp
986     platform/ArrayImpl.cpp
987     platform/AtomicString.cpp
988     platform/CString.cpp
989     platform/ContextMenu.cpp
990     platform/DeprecatedCString.cpp
991     platform/DeprecatedPtrListImpl.cpp
992     platform/DeprecatedString.cpp
993     platform/DeprecatedStringList.cpp
994     platform/DeprecatedValueListImpl.cpp
995     platform/FontCache.cpp
996     platform/Font.cpp
997     platform/FontData.cpp
998     platform/FontFallbackList.cpp
999     platform/FontFamily.cpp
1000     platform/GlyphMap.cpp
1001     platform/GlyphWidthMap.cpp
1002     platform/KURL.cpp
1003     platform/Logging.cpp
1004     platform/MimeTypeRegistry.cpp
1005     platform/RegularExpression.cpp
1006     platform/SegmentedString.cpp
1007     platform/String.cpp
1008     platform/StringImpl.cpp
1009     platform/TextCodec.cpp
1010     platform/TextCodecICU.cpp
1011     platform/TextCodecLatin1.cpp
1012     platform/TextCodecUTF16.cpp
1013     platform/TextDecoder.cpp
1014     platform/TextEncoding.cpp
1015     platform/TextEncodingRegistry.cpp
1016     platform/TextStream.cpp
1017     platform/Timer.cpp
1018     platform/Widget.cpp
1019
1020     platform/graphics/AffineTransform.cpp
1021     platform/graphics/Color.cpp
1022     platform/graphics/FloatPoint3D.cpp
1023     platform/graphics/FloatPoint.cpp
1024     platform/graphics/FloatRect.cpp
1025     platform/graphics/FloatSize.cpp
1026     platform/graphics/GraphicsContext.cpp
1027     platform/graphics/GraphicsTypes.cpp
1028     platform/graphics/Image.cpp
1029     platform/graphics/IntRect.cpp
1030     platform/graphics/Path.cpp
1031     platform/graphics/Pen.cpp
1032
1033     platform/graphics/qt/AffineTransformQt.cpp
1034     platform/graphics/qt/ColorQt.cpp
1035     platform/graphics/qt/FloatPointQt.cpp
1036     platform/graphics/qt/FloatRectQt.cpp
1037     platform/graphics/qt/IconQt.cpp
1038     platform/graphics/qt/ImageQt.cpp
1039     platform/graphics/qt/ImageSourceQt.cpp
1040     platform/graphics/qt/IntPointQt.cpp
1041     platform/graphics/qt/IntRectQt.cpp
1042     platform/graphics/qt/IntSizeQt.cpp
1043     platform/graphics/qt/PathQt.cpp
1044
1045     platform/graphics/svg/SVGResource.cpp
1046     platform/graphics/svg/SVGResourceClipper.cpp
1047     platform/graphics/svg/SVGResourceFilter.cpp
1048     platform/graphics/svg/SVGResourceMarker.cpp
1049     platform/graphics/svg/SVGResourceMasker.cpp
1050
1051     platform/graphics/svg/filters/SVGFEBlend.cpp
1052     platform/graphics/svg/filters/SVGFEColorMatrix.cpp
1053     platform/graphics/svg/filters/SVGFEComponentTransfer.cpp
1054     platform/graphics/svg/filters/SVGFEComposite.cpp
1055     platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp
1056     platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp
1057     platform/graphics/svg/filters/SVGFEDisplacementMap.cpp
1058     platform/graphics/svg/filters/SVGFEFlood.cpp
1059     platform/graphics/svg/filters/SVGFEGaussianBlur.cpp
1060     platform/graphics/svg/filters/SVGFEImage.cpp
1061     platform/graphics/svg/filters/SVGFEMerge.cpp
1062     platform/graphics/svg/filters/SVGFEMorphology.cpp
1063     platform/graphics/svg/filters/SVGFEOffset.cpp
1064     platform/graphics/svg/filters/SVGFESpecularLighting.cpp
1065     platform/graphics/svg/filters/SVGFETurbulence.cpp
1066     platform/graphics/svg/filters/SVGFilterEffect.cpp
1067     platform/graphics/svg/filters/SVGLightSource.cpp
1068
1069     platform/graphics/svg/qt/SVGResourceClipperQt.cpp
1070     platform/graphics/svg/qt/SVGResourceImageQt.cpp
1071     platform/graphics/svg/qt/SVGResourceMaskerQt.cpp
1072
1073     platform/image-decoders/bmp/BMPImageDecoder.cpp
1074     platform/image-decoders/gif/GIFImageDecoder.cpp
1075     platform/image-decoders/gif/GIFImageReader.cpp
1076     platform/image-decoders/ico/ICOImageDecoder.cpp
1077
1078     platform/image-decoders/jpeg/jcomapi.c
1079     platform/image-decoders/jpeg/jdapimin.c
1080     platform/image-decoders/jpeg/jdapistd.c
1081     platform/image-decoders/jpeg/jdatadst.c
1082     platform/image-decoders/jpeg/jdatasrc.c
1083     platform/image-decoders/jpeg/jdcoefct.c
1084     platform/image-decoders/jpeg/jdcolor.c
1085     platform/image-decoders/jpeg/jddctmgr.c
1086     platform/image-decoders/jpeg/jdhuff.c
1087     platform/image-decoders/jpeg/jdinput.c
1088     platform/image-decoders/jpeg/jdmainct.c
1089     platform/image-decoders/jpeg/jdmarker.c
1090     platform/image-decoders/jpeg/jdmaster.c
1091     platform/image-decoders/jpeg/jdmerge.c
1092     platform/image-decoders/jpeg/jdphuff.c
1093     platform/image-decoders/jpeg/jdpostct.c
1094     platform/image-decoders/jpeg/jdsample.c
1095     platform/image-decoders/jpeg/jerror.c
1096     platform/image-decoders/jpeg/jfdctflt.c
1097     platform/image-decoders/jpeg/jfdctfst.c
1098     platform/image-decoders/jpeg/jfdctint.c
1099     platform/image-decoders/jpeg/jidctflt.c
1100     platform/image-decoders/jpeg/jidctfst.c
1101     platform/image-decoders/jpeg/jidctint.c
1102     platform/image-decoders/jpeg/jmemmgr.c
1103     platform/image-decoders/jpeg/jmemnobs.c
1104     platform/image-decoders/jpeg/JPEGImageDecoder.cpp
1105     platform/image-decoders/jpeg/jquant1.c
1106     platform/image-decoders/jpeg/jquant2.c
1107     platform/image-decoders/jpeg/jutils.c
1108
1109     platform/image-decoders/png/png.c
1110     platform/image-decoders/png/pngerror.c
1111     platform/image-decoders/png/pnggccrd.c
1112     platform/image-decoders/png/pngget.c
1113     platform/image-decoders/png/PNGImageDecoder.cpp
1114     platform/image-decoders/png/pngmem.c
1115     platform/image-decoders/png/pngpread.c
1116     platform/image-decoders/png/pngread.c
1117     platform/image-decoders/png/pngrio.c
1118     platform/image-decoders/png/pngrtran.c
1119     platform/image-decoders/png/pngrutil.c
1120     platform/image-decoders/png/pngset.c
1121     platform/image-decoders/png/pngtrans.c
1122     platform/image-decoders/png/pngvcrd.c
1123     platform/image-decoders/png/pngwio.c
1124     platform/image-decoders/png/pngwrite.c
1125     platform/image-decoders/png/pngwtran.c
1126     platform/image-decoders/png/pngwutil.c
1127
1128     platform/image-decoders/xbm/XBMImageDecoder.cpp
1129
1130     platform/network/FormData.cpp
1131     platform/network/ResourceHandle.cpp
1132     
1133     platform/network/qt/ResourceHandleManager.cpp
1134     platform/network/qt/ResourceHandleQt.cpp
1135     
1136     platform/qt/ChromeClientQt.cpp
1137     platform/qt/ContextMenuClientQt.cpp
1138     platform/qt/ContextMenuQt.cpp
1139     platform/qt/CookieJarQt.cpp
1140     platform/qt/CursorQt.cpp
1141     platform/qt/EditorClientQt.cpp
1142     platform/qt/FileChooserQt.cpp
1143     platform/qt/FontCacheQt.cpp
1144     platform/qt/FontDataQt.cpp
1145     platform/qt/FontPlatformDataQt.cpp
1146     platform/qt/FontQt.cpp
1147     platform/qt/FrameQtClient.cpp
1148     platform/qt/FrameQt.cpp
1149     platform/qt/GlyphMapQt.cpp
1150     platform/qt/GraphicsContextQt.cpp
1151 #   platform/qt/LineEditQt.cpp
1152     platform/qt/LoaderFunctionsQt.cpp
1153     platform/qt/MimeTypeRegistryQt.cpp
1154     platform/qt/PageQt.cpp
1155     platform/qt/PlatformKeyboardEventQt.cpp
1156     platform/qt/PlatformMouseEventQt.cpp
1157     platform/qt/PopupMenuQt.cpp
1158     platform/qt/RenderThemeQt.cpp
1159     platform/qt/ScreenQt.cpp
1160     platform/qt/ScrollViewCanvasQt.cpp
1161     platform/qt/ScrollViewQt.cpp
1162     platform/qt/SharedTimerQt.cpp
1163     platform/qt/SoundQt.cpp
1164     platform/qt/StringQt.cpp
1165     platform/qt/SystemTimeQt.cpp
1166     platform/qt/TemporaryLinkStubs.cpp
1167     platform/qt/TextBoundaries.cpp
1168 #   platform/qt/TextEditQt.cpp
1169     platform/qt/WidgetQt.cpp
1170
1171     xml/DOMParser.cpp
1172     xml/xmlhttprequest.cpp
1173     xml/XMLSerializer.cpp
1174     xml/XPathEvaluator.cpp
1175     xml/XPathExpression.cpp
1176     xml/XPathExpressionNode.cpp
1177     xml/XPathFunctions.cpp
1178     xml/XPathNamespace.cpp
1179     xml/XPathNSResolver.cpp
1180     xml/XPathParser.cpp
1181     xml/XPathPath.cpp
1182     xml/XPathPredicate.cpp
1183     xml/XPathResult.cpp
1184     xml/XPathStep.cpp
1185     xml/XPathUtil.cpp
1186     xml/XPathValue.cpp
1187     xml/XPathVariableReference.cpp
1188     xml/XSLImportRule.cpp
1189     xml/XSLStyleSheet.cpp
1190     xml/XSLTProcessor.cpp
1191
1192     rendering/AutoTableLayout.cpp
1193     rendering/bidi.cpp
1194     rendering/break_lines.cpp
1195     rendering/CounterNode.cpp
1196     rendering/CounterResetNode.cpp
1197     rendering/EllipsisBox.cpp
1198     rendering/FixedTableLayout.cpp
1199     rendering/HitTestResult.cpp
1200     rendering/InlineBox.cpp
1201     rendering/InlineFlowBox.cpp
1202     rendering/InlineTextBox.cpp
1203     rendering/ListMarkerBox.cpp
1204     rendering/RenderApplet.cpp
1205     rendering/RenderArena.cpp
1206     rendering/RenderBlock.cpp
1207     rendering/RenderBox.cpp
1208     rendering/RenderBR.cpp
1209     rendering/RenderButton.cpp
1210     rendering/RenderContainer.cpp
1211     rendering/RenderCounter.cpp
1212     rendering/RenderFieldset.cpp
1213     rendering/RenderFileUploadControl.cpp
1214     rendering/RenderFlexibleBox.cpp
1215     rendering/RenderFlow.cpp
1216     rendering/RenderFormElement.cpp
1217     rendering/RenderFrame.cpp
1218     rendering/RenderFrameSet.cpp
1219     rendering/RenderHTMLCanvas.cpp
1220     rendering/RenderImage.cpp
1221     rendering/RenderInline.cpp
1222     rendering/RenderLabel.cpp
1223     rendering/RenderLayer.cpp
1224     rendering/RenderLegend.cpp
1225     rendering/RenderLineEdit.cpp
1226     rendering/RenderListBox.cpp
1227     rendering/RenderListItem.cpp
1228     rendering/RenderListMarker.cpp
1229     rendering/RenderMenuList.cpp
1230     rendering/RenderObject.cpp
1231     rendering/RenderPart.cpp
1232     rendering/RenderPartObject.cpp
1233     rendering/RenderReplaced.cpp
1234     rendering/RenderSlider.cpp
1235     rendering/RenderStyle.cpp
1236     rendering/RenderTableCell.cpp
1237     rendering/RenderTableCol.cpp
1238     rendering/RenderTable.cpp
1239     rendering/RenderTableRow.cpp
1240     rendering/RenderTableSection.cpp
1241     rendering/RenderTextControl.cpp
1242     rendering/RenderText.cpp
1243     rendering/RenderTextFragment.cpp
1244     rendering/RenderTheme.cpp
1245     rendering/RenderTreeAsText.cpp
1246     rendering/RenderView.cpp
1247     rendering/RenderWidget.cpp
1248     rendering/RootInlineBox.cpp
1249     rendering/SVGRenderTreeAsText.cpp
1250
1251     # Optional SVG/XPath support
1252     ${SVG_SOURCES}
1253     ${XPATH_SOURCES}
1254
1255     # Generated JavaScript bindings
1256     ${WebCore-unity-IDLGeneratedSources}
1257 )
1258
1259 kde4_add_library( WebCore-unity SHARED  ${WebCore_SRCS} )
1260
1261 IF (WEBKIT_USE_KDE_SUPPORT)
1262 target_link_libraries(WebCore-unity
1263     ${LIBXML2_LIBRARIES}
1264     ${LIBXSLT_LIBRARIES}
1265
1266     ${QT_QTCORE_LIBRARY}
1267     ${QT_QTGUI_LIBRARY}
1268
1269     icuuc
1270     kio
1271     kjs-unity
1272     pcre-unity
1273     sqlite3
1274     wtf-unity
1275     z
1276 )
1277 ELSE (WEBKIT_USE_KDE_SUPPORT)
1278 target_link_libraries(WebCore-unity
1279     ${LIBXSLT_LIBRARIES}
1280     ${LIBXML2_LIBRARIES}
1281
1282     ${QT_QTCORE_LIBRARY}
1283     ${QT_QTGUI_LIBRARY}
1284
1285     icuuc
1286     kjs-unity
1287     pcre-unity
1288     sqlite3
1289     wtf-unity
1290     z
1291 )
1292 ENDIF (WEBKIT_USE_KDE_SUPPORT)
1293
1294 install( TARGETS WebCore-unity DESTINATION ${LIB_INSTALL_DIR} )