Reviewed by Mitz. Landed by Niko.
[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/image-decoders
41    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/gif
42    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/jpeg
43    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/ico
44    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/xbm
45    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/bmp
46    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/png
47    ${CMAKE_CURRENT_SOURCE_DIR}/platform/network
48    ${CMAKE_CURRENT_SOURCE_DIR}/platform/network/qt
49    ${CMAKE_CURRENT_SOURCE_DIR}/platform/qt
50    ${CMAKE_CURRENT_SOURCE_DIR}/rendering
51    ${CMAKE_CURRENT_BINARY_DIR}/xml
52    ${CMAKE_CURRENT_SOURCE_DIR}/xml
53 )
54
55 include_directories( ${LIBXML2_INCLUDE_DIR} ${QT_INCLUDES} )
56
57 add_definitions( -DQT3_SUPPORT -Wno-undef -Wno-unused-parameter )
58 check_cxx_compiler_flag( -Wno-variadic-macros __KDE_HAVE_WVARIADIC_MACROS )
59
60 IF ( __KDE_HAVE_WVARIADIC_MACROS )
61   add_definitions( -Wno-variadic-macros )
62 ENDIF (__KDE_HAVE_WVARIADIC_MACROS)
63
64 kde4_automoc( WebCore platform/network/qt/ResourceHandleManager.cpp )
65 kde4_automoc( WebCore platform/qt/ScrollViewCanvasQt.cpp )
66 kde4_automoc( WebCore platform/qt/SharedTimerQt.cpp )
67
68 SET (FEATURE_DEFINES_JAVASCRIPT LANGUAGE_JAVASCRIPT)
69
70 IF (WEBKIT_USE_XPATH_SUPPORT)
71 SET (FEATURE_DEFINES_JAVASCRIPT ${FEATURE_DEFINES_JAVASCRIPT} XPATH_SUPPORT)
72
73 set(IDL_BINDINGS_XPATH
74     xml/XPathEvaluator.idl
75     xml/XPathExpression.idl
76     xml/XPathNSResolver.idl
77     xml/XPathResult.idl
78 )
79 ENDIF (WEBKIT_USE_XPATH_SUPPORT)
80
81 IF (WEBKIT_USE_XSLT_SUPPORT)
82 SET (FEATURE_DEFINES_JAVASCRIPT ${FEATURE_DEFINES_JAVASCRIPT} XSLT_SUPPORT)
83 ENDIF (WEBKIT_USE_XSLT_SUPPORT)
84
85 IF (WEBKIT_USE_XBL_SUPPORT)
86 SET (FEATURE_DEFINES_JAVASCRIPT ${FEATURE_DEFINES_JAVASCRIPT} XBL_SUPPORT)
87 ENDIF (WEBKIT_USE_XBL_SUPPORT)
88
89 # rules for generated files
90 IF (WEBKIT_USE_SVG_SUPPORT)
91 SET (FEATURE_DEFINES_JAVASCRIPT ${FEATURE_DEFINES_JAVASCRIPT} SVG_SUPPORT)
92
93 set(IDL_BINDINGS_SVG
94     ksvg2/events/SVGZoomEvent.idl
95
96     ksvg2/svg/SVGAElement.idl
97     ksvg2/svg/SVGAngle.idl
98     ksvg2/svg/SVGAnimateColorElement.idl
99     ksvg2/svg/SVGAnimatedAngle.idl
100     ksvg2/svg/SVGAnimatedBoolean.idl
101     ksvg2/svg/SVGAnimatedEnumeration.idl
102     ksvg2/svg/SVGAnimatedInteger.idl
103     ksvg2/svg/SVGAnimatedLength.idl
104     ksvg2/svg/SVGAnimatedLengthList.idl
105     ksvg2/svg/SVGAnimatedNumber.idl
106     ksvg2/svg/SVGAnimatedNumberList.idl
107     ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl
108     ksvg2/svg/SVGAnimatedRect.idl
109     ksvg2/svg/SVGAnimatedString.idl
110     ksvg2/svg/SVGAnimatedTransformList.idl
111     ksvg2/svg/SVGAnimateElement.idl
112     ksvg2/svg/SVGAnimateTransformElement.idl
113     ksvg2/svg/SVGAnimationElement.idl
114     ksvg2/svg/SVGCircleElement.idl
115     ksvg2/svg/SVGClipPathElement.idl
116     ksvg2/svg/SVGColor.idl
117     ksvg2/svg/SVGComponentTransferFunctionElement.idl
118     ksvg2/svg/SVGCursorElement.idl
119     ksvg2/svg/SVGDefsElement.idl
120     ksvg2/svg/SVGDescElement.idl
121     ksvg2/svg/SVGDocument.idl
122     ksvg2/svg/SVGElement.idl
123     ksvg2/svg/SVGEllipseElement.idl
124     ksvg2/svg/SVGFEBlendElement.idl
125     ksvg2/svg/SVGFEColorMatrixElement.idl
126     ksvg2/svg/SVGFEComponentTransferElement.idl
127     ksvg2/svg/SVGFECompositeElement.idl
128     ksvg2/svg/SVGFEDiffuseLightingElement.idl
129     ksvg2/svg/SVGFEDisplacementMapElement.idl
130     ksvg2/svg/SVGFEDistantLightElement.idl
131     ksvg2/svg/SVGFEFloodElement.idl
132     ksvg2/svg/SVGFEFuncAElement.idl
133     ksvg2/svg/SVGFEFuncBElement.idl
134     ksvg2/svg/SVGFEFuncGElement.idl
135     ksvg2/svg/SVGFEFuncRElement.idl
136     ksvg2/svg/SVGFEGaussianBlurElement.idl
137     ksvg2/svg/SVGFEImageElement.idl
138     ksvg2/svg/SVGFEMergeElement.idl
139     ksvg2/svg/SVGFEMergeNodeElement.idl
140     ksvg2/svg/SVGFEOffsetElement.idl
141     ksvg2/svg/SVGFEPointLightElement.idl
142     ksvg2/svg/SVGFESpecularLightingElement.idl
143     ksvg2/svg/SVGFESpotLightElement.idl
144     ksvg2/svg/SVGFETileElement.idl
145     ksvg2/svg/SVGFETurbulenceElement.idl
146     ksvg2/svg/SVGFilterElement.idl
147     ksvg2/svg/SVGForeignObjectElement.idl
148     ksvg2/svg/SVGGElement.idl
149     ksvg2/svg/SVGGradientElement.idl
150     ksvg2/svg/SVGImageElement.idl
151     ksvg2/svg/SVGLength.idl
152     ksvg2/svg/SVGLengthList.idl
153     ksvg2/svg/SVGLinearGradientElement.idl
154     ksvg2/svg/SVGLineElement.idl
155     ksvg2/svg/SVGMarkerElement.idl
156     ksvg2/svg/SVGMaskElement.idl
157     ksvg2/svg/SVGMatrix.idl
158     ksvg2/svg/SVGMetadataElement.idl
159     ksvg2/svg/SVGNumberList.idl
160     ksvg2/svg/SVGPaint.idl
161     ksvg2/svg/SVGPathElement.idl
162     ksvg2/svg/SVGPathSegArcAbs.idl
163     ksvg2/svg/SVGPathSegArcRel.idl
164     ksvg2/svg/SVGPathSegClosePath.idl
165     ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl
166     ksvg2/svg/SVGPathSegCurvetoCubicRel.idl
167     ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl
168     ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl
169     ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl
170     ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl
171     ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl
172     ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl
173     ksvg2/svg/SVGPathSeg.idl
174     ksvg2/svg/SVGPathSegLinetoAbs.idl
175     ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl
176     ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl
177     ksvg2/svg/SVGPathSegLinetoRel.idl
178     ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl
179     ksvg2/svg/SVGPathSegLinetoVerticalRel.idl
180     ksvg2/svg/SVGPathSegList.idl
181     ksvg2/svg/SVGPathSegMovetoAbs.idl
182     ksvg2/svg/SVGPathSegMovetoRel.idl
183     ksvg2/svg/SVGPatternElement.idl
184     ksvg2/svg/SVGPointList.idl
185     ksvg2/svg/SVGPolygonElement.idl
186     ksvg2/svg/SVGPolylineElement.idl
187     ksvg2/svg/SVGPreserveAspectRatio.idl
188     ksvg2/svg/SVGRadialGradientElement.idl
189     ksvg2/svg/SVGRectElement.idl
190     ksvg2/svg/SVGRenderingIntent.idl
191     ksvg2/svg/SVGScriptElement.idl
192     ksvg2/svg/SVGSetElement.idl
193     ksvg2/svg/SVGStopElement.idl
194     ksvg2/svg/SVGStringList.idl
195     ksvg2/svg/SVGStyleElement.idl
196     ksvg2/svg/SVGSVGElement.idl
197     ksvg2/svg/SVGSwitchElement.idl
198     ksvg2/svg/SVGSymbolElement.idl
199     ksvg2/svg/SVGTextContentElement.idl
200     ksvg2/svg/SVGTextElement.idl
201     ksvg2/svg/SVGTextPositioningElement.idl
202     ksvg2/svg/SVGTitleElement.idl
203     ksvg2/svg/SVGTransform.idl
204     ksvg2/svg/SVGTransformList.idl
205     ksvg2/svg/SVGTRefElement.idl
206     ksvg2/svg/SVGTSpanElement.idl
207     ksvg2/svg/SVGUnitTypes.idl
208     ksvg2/svg/SVGUseElement.idl
209     ksvg2/svg/SVGViewElement.idl
210 )
211
212 ENDIF (WEBKIT_USE_SVG_SUPPORT)
213
214 set(IDL_BINDINGS
215     css/Counter.idl
216     css/CSSPrimitiveValue.idl
217     css/CSSRule.idl
218     css/CSSRuleList.idl
219     css/CSSStyleDeclaration.idl
220     css/CSSValue.idl
221     css/CSSValueList.idl
222     css/MediaList.idl
223
224     dom/Attr.idl
225     dom/CharacterData.idl
226     dom/DocumentFragment.idl
227     dom/Document.idl
228     dom/DocumentType.idl
229     dom/DOMImplementation.idl
230     dom/Element.idl
231     dom/Entity.idl
232     dom/Event.idl
233     dom/KeyboardEvent.idl
234     dom/MouseEvent.idl
235     dom/MutationEvent.idl
236     dom/NodeFilter.idl
237     dom/Node.idl
238     dom/NodeIterator.idl
239     dom/Notation.idl
240     dom/OverflowEvent.idl
241     dom/ProcessingInstruction.idl
242     dom/RangeException.idl
243     dom/Range.idl
244     dom/Text.idl
245     dom/TreeWalker.idl
246     dom/UIEvent.idl
247     dom/WheelEvent.idl
248
249     html/CanvasGradient.idl
250     html/CanvasPattern.idl
251     html/CanvasRenderingContext2D.idl
252     html/HTMLAnchorElement.idl
253     html/HTMLAppletElement.idl
254     html/HTMLAreaElement.idl
255     html/HTMLBaseElement.idl
256     html/HTMLBaseFontElement.idl
257     html/HTMLBlockquoteElement.idl
258     html/HTMLBodyElement.idl
259     html/HTMLBRElement.idl
260     html/HTMLButtonElement.idl
261     html/HTMLCanvasElement.idl
262     html/HTMLDirectoryElement.idl
263     html/HTMLDivElement.idl
264     html/HTMLDListElement.idl
265     html/HTMLDocument.idl
266     html/HTMLElement.idl
267     html/HTMLFieldSetElement.idl
268     html/HTMLFontElement.idl
269     html/HTMLFormElement.idl
270     html/HTMLHeadElement.idl
271     html/HTMLHeadingElement.idl
272     html/HTMLHRElement.idl
273     html/HTMLHtmlElement.idl
274     html/HTMLImageElement.idl
275     html/HTMLInputElement.idl
276     html/HTMLIsIndexElement.idl
277     html/HTMLLabelElement.idl
278     html/HTMLLegendElement.idl
279     html/HTMLLIElement.idl
280     html/HTMLLinkElement.idl
281     html/HTMLMapElement.idl
282     html/HTMLMenuElement.idl
283     html/HTMLMetaElement.idl
284     html/HTMLModElement.idl
285     html/HTMLOListElement.idl
286     html/HTMLOptGroupElement.idl
287     html/HTMLOptionElement.idl
288     html/HTMLOptionsCollection.idl
289     html/HTMLParagraphElement.idl
290     html/HTMLParamElement.idl
291     html/HTMLPreElement.idl
292     html/HTMLQuoteElement.idl
293     html/HTMLScriptElement.idl
294     html/HTMLStyleElement.idl
295     html/HTMLTextAreaElement.idl
296     html/HTMLTitleElement.idl
297     html/HTMLUListElement.idl
298
299     page/DOMWindow.idl
300
301     xml/DOMParser.idl
302     xml/XMLSerializer.idl
303
304     ${IDL_BINDINGS_SVG}
305     ${IDL_BINDINGS_XPATH}
306 )
307
308 set(WebCore-unity-IDLGeneratedSources )
309
310 # create these files at build time on demand, not everytime at cmake-time, Alex
311 foreach (idl ${IDL_BINDINGS})
312    get_filename_component(_basename ${idl} NAME_WE)
313    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.cpp ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.h
314       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}
315       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${idl} ${CMAKE_CURRENT_SOURCE_DIR}/bindings/scripts/CodeGenerator.pm ${CMAKE_CURRENT_SOURCE_DIR}/bindings/scripts/CodeGeneratorJS.pm)
316    set(WebCore-unity-IDLGeneratedSources ${WebCore-unity-IDLGeneratedSources} ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.cpp ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.h )
317 endforeach (idl)
318
319 set(CREATE_HASH_TABLE ${CMAKE_CURRENT_SOURCE_DIR}/../JavaScriptCore/kjs/create_hash_table )
320
321 macro(CREATE_LUT _srcs_LIST _in_FILE _out_FILE _dep_FILE)
322
323    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
324       COMMAND ${PERL_EXECUTABLE} ${CREATE_HASH_TABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} -i > ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
325       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/${_dep_FILE} )
326    set( ${_srcs_LIST}  ${${_srcs_LIST}} ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE})
327 endmacro(CREATE_LUT)
328
329 macro(CREATE_CPP_LUT _in_FILE _out_FILE _dep_FILE)
330    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
331       COMMAND ${PERL_EXECUTABLE} ${CREATE_HASH_TABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} -i > ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
332       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/${_dep_FILE} )
333 endmacro(CREATE_CPP_LUT)
334
335
336 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_css.cpp kjs_css.lut.h bindings/js/kjs_css.cpp )
337 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_dom.cpp kjs_dom.lut.h bindings/js/kjs_dom.cpp )
338 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_events.cpp kjs_events.lut.h bindings/js/kjs_events.cpp )
339 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_html.cpp kjs_html.lut.h bindings/js/kjs_html.cpp )
340 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_navigator.cpp kjs_navigator.lut.h bindings/js/kjs_navigator.cpp )
341 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_traversal.cpp kjs_traversal.lut.h bindings/js/kjs_traversal.cpp )
342 create_lut( WebCore-unity_LIB_SRCS bindings/js/kjs_window.cpp kjs_window.lut.h bindings/js/kjs_window.cpp )
343 create_lut( WebCore-unity_LIB_SRCS bindings/js/JSXMLHttpRequest.cpp JSXMLHttpRequest.lut.h bindings/js/JSXMLHttpRequest.cpp )
344 create_lut( WebCore-unity_LIB_SRCS bindings/js/JSXSLTProcessor.cpp JSXSLTProcessor.lut.h bindings/js/JSXSLTProcessor.cpp )
345
346 # now this is ugly
347 # WebKit sources include some generated files which have the suffix ".cpp"
348 # the CMake way to create the dependencies of targets to generated files is
349 # to list the generated files as part of the sources for the target.
350 # If this would be done for the generated-and-then-included cpp-files
351 # they would be compiled twice (once included and once on their own).
352 # The easy way would be to rename the generated files to use the suffix
353 # ".inl" or something like this. But this is not wanted by the WebKit developers
354 # AFAIK. So we have to work around it here. This is done by renaming the
355 # generated files to *.inl and adding these files to the list of sources
356 # (WebCore-unity_LIB_SRCS). But the include-statements still want a cpp-file,
357 # so tell CMake to create these cpp-files at cmake-time, but these files contain
358 # nothing except an include-statement for the inl-file. Alex
359 macro(CREATE_GENERATED_CPP_HELPER  _inlName)
360    get_filename_component(_baseName ${_inlName} NAME_WE)
361    if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/${_baseName}.cpp)
362       file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${_baseName}.cpp
363 "/* This file is autogenerated by CMake.                                       *
364  * Do not edit, changes will be lost.                                         *
365  * With the CMake buildsystem giving generated-but-not-compiled-on-their-own  *
366  * files the suffix \".cpp\" is not recommended, because it breaks the          *
367  * dependency handling. So the actual generated file has the suffix \".inl\"    *
368  * and this file here only exists as a helper.                                */
369 #include \"${CMAKE_CURRENT_BINARY_DIR}/${_inlName}\"\n")
370    endif (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/${_baseName}.cpp)
371    set(WebCore-unity_LIB_SRCS ${WebCore-unity_LIB_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/${_inlName})
372 endmacro(CREATE_GENERATED_CPP_HELPER  _inlName)
373
374 create_cpp_lut( bindings/js/JSHTMLInputElementBase.cpp JSHTMLInputElementBaseTable.inl bindings/js/JSHTMLInputElementBase.cpp )
375 create_generated_cpp_helper( JSHTMLInputElementBaseTable.inl)
376
377 IF (WEBKIT_USE_SVG_SUPPORT)
378     create_cpp_lut( bindings/js/JSSVGNumber.cpp JSSVGNumberTable.inl bindings/js/JSSVGNumber.cpp )
379
380     create_cpp_lut( bindings/js/JSSVGPoint.cpp JSSVGPointTable.inl bindings/js/JSSVGPoint.cpp )
381     create_generated_cpp_helper( JSSVGPointTable.inl )
382
383     create_cpp_lut( bindings/js/JSSVGRect.cpp JSSVGRectTable.inl bindings/js/JSSVGRect.cpp )
384     create_generated_cpp_helper( JSSVGRectTable.inl )
385 ENDIF (WEBKIT_USE_SVG_SUPPORT)
386
387 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/tokenizer.inl
388   COMMAND flex -t < ${CMAKE_CURRENT_SOURCE_DIR}/css/tokenizer.flex | perl ${CMAKE_CURRENT_SOURCE_DIR}/css/maketokenizer > ${CMAKE_CURRENT_BINARY_DIR}/tokenizer.inl
389   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/tokenizer.flex
390 )
391 create_generated_cpp_helper( tokenizer.inl )
392
393 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/CSSPropertyNames.h ${CMAKE_CURRENT_BINARY_DIR}/CSSPropertyNames.c
394
395   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
396   COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSPropertyNames.in ${CMAKE_CURRENT_BINARY_DIR}/CSSPropertyNames.in
397   COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/css/makeprop
398
399   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSPropertyNames.in
400 )
401
402 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/CSSValueKeywords.h ${CMAKE_CURRENT_BINARY_DIR}/CSSValueKeywords.c
403
404   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
405   COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSValueKeywords.in ${CMAKE_CURRENT_BINARY_DIR}
406   COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/css/makevalues
407
408   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSValueKeywords.in
409 )
410
411 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.cpp ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.h
412   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
413   COMMAND ${BISON_EXECUTABLE} -d -p cssyy ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSGrammar.y
414   COMMAND mv CSSGrammar.tab.c ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.cpp
415   #COMMAND rm -f CSSGrammar.tab.h
416   #COMMAND touch CSSGrammar.h
417   COMMAND mv CSSGrammar.tab.h ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.h
418   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSGrammar.y
419 )
420
421 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/XPathGrammar.cpp ${CMAKE_CURRENT_BINARY_DIR}/XPathGrammar.h
422   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
423   COMMAND ${BISON_EXECUTABLE} -d -p xpathyy ${CMAKE_CURRENT_SOURCE_DIR}/xml/XPathGrammar.y
424   COMMAND mv XPathGrammar.tab.c ${CMAKE_CURRENT_BINARY_DIR}/XPathGrammar.cpp
425   #COMMAND rm -f XPathGrammar.tab.h
426   #COMMAND touch XPathGrammar.h
427   COMMAND mv XPathGrammar.tab.h ${CMAKE_CURRENT_BINARY_DIR}/XPathGrammar.h
428   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/xml/XPathGrammar.y
429 )
430
431 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/HTMLNames.cpp ${CMAKE_CURRENT_BINARY_DIR}/html/HTMLNames.h
432   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
433   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/html
434   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
435
436   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/html/HTMLTagNames.in ${CMAKE_CURRENT_SOURCE_DIR}/html/HTMLAttributeNames.in
437 )
438
439 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
440   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
441   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg
442   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
443
444   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/svg/svgtags.in ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/svg/svgattrs.in
445 )
446
447 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc/XLinkNames.cpp ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc/XLinkNames.h
448   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
449   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc
450   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
451
452   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/misc/xlinkattrs.in
453 )
454
455 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/xml/XMLNames.cpp ${CMAKE_CURRENT_BINARY_DIR}/xml/XMLNames.h
456   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
457   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/xml
458   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
459
460   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/xml/xmlattrs.in
461 )
462
463 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/HTMLEntityNames.c
464   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
465   COMMAND mkdir -p html
466   COMMAND echo '\#include <string.h>' > html/HTMLEntityNames.c
467   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
468
469   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/html/HTMLEntityNames.gperf
470 )
471
472 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/DocTypeStrings.cpp
473   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
474   COMMAND mkdir -p html
475   COMMAND echo '\#include <string.h>' > html/DocTypeStrings.cpp
476   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
477   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/html/DocTypeStrings.gperf
478 )
479
480 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/platform/ColorData.c
481   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
482   COMMAND mkdir -p platform
483   COMMAND echo '\#include <string.h>' > platform/ColorData.c
484   COMMAND ${GPERF_EXECUTABLE} -CDEot -L ANSI-C -k \"*\" -N findColor -D -s 2 < ${CMAKE_CURRENT_SOURCE_DIR}/platform/ColorData.gperf >> platform/ColorData.c
485   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/platform/ColorData.gperf
486 )
487
488 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ksvgcssproperties.h
489   COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css/CSSPropertyNames.in ${CMAKE_CURRENT_BINARY_DIR}/ksvgcssproperties.in
490   COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/cssmakeprops -n SVG -f ksvgcssproperties.in
491   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/cssmakeprops ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css/CSSPropertyNames.in
492 )
493
494 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ksvgcssvalues.h
495   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
496   COMMAND perl -ne 'print lc' ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css/CSSValueKeywords.in > ksvgcssvalues.in
497   COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/cssmakevalues -n SVG -f ksvgcssvalues.in
498   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/cssmakevalues ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css/CSSValueKeywords.in
499 )
500
501 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/UserAgentStyleSheets.h ${CMAKE_CURRENT_BINARY_DIR}/UserAgentStyleSheetsData.cpp
502   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
503   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/html4.css ${CMAKE_CURRENT_SOURCE_DIR}/css/quirks.css ${CMAKE_CURRENT_SOURCE_DIR}/css/svg.css
504 )
505
506 # source stuff
507 if (WEBKIT_USE_XPATH_SUPPORT)
508 SET (XPATH_SOURCES
509     ${CMAKE_CURRENT_BINARY_DIR}/XPathGrammar.cpp
510     ${CMAKE_CURRENT_BINARY_DIR}/XPathGrammar.h
511 )
512 ENDIF (WEBKIT_USE_XPATH_SUPPORT)
513
514 IF (WEBKIT_USE_SVG_SUPPORT)
515 set (SVG_SOURCES
516     ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc/XLinkNames.cpp
517     ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg/SVGElementFactory.cpp
518     ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg/SVGNames.cpp
519     ${CMAKE_CURRENT_BINARY_DIR}/xml/XMLNames.cpp
520
521     bindings/js/JSSVGElementWrapperFactory.cpp
522     bindings/js/JSSVGNumber.cpp
523     bindings/js/JSSVGPoint.cpp
524     bindings/js/JSSVGRect.cpp
525
526     kcanvas/device/KRenderingDevice.cpp
527     kcanvas/device/KRenderingPaintServerGradient.cpp
528     kcanvas/device/KRenderingPaintServerPattern.cpp
529     kcanvas/device/KRenderingPaintServerSolid.cpp
530 #   kcanvas/device/qt/KCanvasFilterQt.cpp
531 #   kcanvas/device/qt/KCanvasImageItemQt.cpp
532     kcanvas/device/qt/KRenderingDeviceQt.cpp
533     kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp
534     kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp
535     kcanvas/device/qt/KRenderingPaintServerQt.cpp
536 kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp
537 kcanvas/device/qt/RenderPathQt.cpp
538 kcanvas/KCanvasFilters.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/FloatPoint.cpp
1023     platform/graphics/FloatRect.cpp
1024     platform/graphics/FloatSize.cpp
1025     platform/graphics/GraphicsContext.cpp
1026     platform/graphics/GraphicsTypes.cpp
1027     platform/graphics/Image.cpp
1028     platform/graphics/IntRect.cpp
1029     platform/graphics/Path.cpp
1030     platform/graphics/Pen.cpp
1031
1032     platform/graphics/qt/AffineTransformQt.cpp
1033     platform/graphics/qt/ColorQt.cpp
1034     platform/graphics/qt/FloatPointQt.cpp
1035     platform/graphics/qt/FloatRectQt.cpp
1036     platform/graphics/qt/IconQt.cpp
1037     platform/graphics/qt/ImageQt.cpp
1038     platform/graphics/qt/ImageSourceQt.cpp
1039     platform/graphics/qt/IntPointQt.cpp
1040     platform/graphics/qt/IntRectQt.cpp
1041     platform/graphics/qt/IntSizeQt.cpp
1042     platform/graphics/qt/PathQt.cpp
1043
1044     platform/graphics/svg/SVGResource.cpp
1045     platform/graphics/svg/SVGResourceClipper.cpp
1046     platform/graphics/svg/SVGResourceMarker.cpp
1047     platform/graphics/svg/SVGResourceMasker.cpp
1048
1049     platform/graphics/svg/qt/SVGResourceClipperQt.cpp
1050     platform/graphics/svg/qt/SVGResourceImageQt.cpp
1051     platform/graphics/svg/qt/SVGResourceMaskerQt.cpp
1052
1053     platform/image-decoders/bmp/BMPImageDecoder.cpp
1054     platform/image-decoders/gif/GIFImageDecoder.cpp
1055     platform/image-decoders/gif/GIFImageReader.cpp
1056     platform/image-decoders/ico/ICOImageDecoder.cpp
1057
1058     platform/image-decoders/jpeg/jcomapi.c
1059     platform/image-decoders/jpeg/jdapimin.c
1060     platform/image-decoders/jpeg/jdapistd.c
1061     platform/image-decoders/jpeg/jdatadst.c
1062     platform/image-decoders/jpeg/jdatasrc.c
1063     platform/image-decoders/jpeg/jdcoefct.c
1064     platform/image-decoders/jpeg/jdcolor.c
1065     platform/image-decoders/jpeg/jddctmgr.c
1066     platform/image-decoders/jpeg/jdhuff.c
1067     platform/image-decoders/jpeg/jdinput.c
1068     platform/image-decoders/jpeg/jdmainct.c
1069     platform/image-decoders/jpeg/jdmarker.c
1070     platform/image-decoders/jpeg/jdmaster.c
1071     platform/image-decoders/jpeg/jdmerge.c
1072     platform/image-decoders/jpeg/jdphuff.c
1073     platform/image-decoders/jpeg/jdpostct.c
1074     platform/image-decoders/jpeg/jdsample.c
1075     platform/image-decoders/jpeg/jerror.c
1076     platform/image-decoders/jpeg/jfdctflt.c
1077     platform/image-decoders/jpeg/jfdctfst.c
1078     platform/image-decoders/jpeg/jfdctint.c
1079     platform/image-decoders/jpeg/jidctflt.c
1080     platform/image-decoders/jpeg/jidctfst.c
1081     platform/image-decoders/jpeg/jidctint.c
1082     platform/image-decoders/jpeg/jmemmgr.c
1083     platform/image-decoders/jpeg/jmemnobs.c
1084     platform/image-decoders/jpeg/JPEGImageDecoder.cpp
1085     platform/image-decoders/jpeg/jquant1.c
1086     platform/image-decoders/jpeg/jquant2.c
1087     platform/image-decoders/jpeg/jutils.c
1088
1089     platform/image-decoders/png/png.c
1090     platform/image-decoders/png/pngerror.c
1091     platform/image-decoders/png/pnggccrd.c
1092     platform/image-decoders/png/pngget.c
1093     platform/image-decoders/png/PNGImageDecoder.cpp
1094     platform/image-decoders/png/pngmem.c
1095     platform/image-decoders/png/pngpread.c
1096     platform/image-decoders/png/pngread.c
1097     platform/image-decoders/png/pngrio.c
1098     platform/image-decoders/png/pngrtran.c
1099     platform/image-decoders/png/pngrutil.c
1100     platform/image-decoders/png/pngset.c
1101     platform/image-decoders/png/pngtrans.c
1102     platform/image-decoders/png/pngvcrd.c
1103     platform/image-decoders/png/pngwio.c
1104     platform/image-decoders/png/pngwrite.c
1105     platform/image-decoders/png/pngwtran.c
1106     platform/image-decoders/png/pngwutil.c
1107
1108     platform/image-decoders/xbm/XBMImageDecoder.cpp
1109
1110     platform/network/FormData.cpp
1111     platform/network/ResourceHandle.cpp
1112     
1113     platform/network/qt/ResourceHandleManager.cpp
1114     platform/network/qt/ResourceHandleQt.cpp
1115     
1116     platform/qt/ChromeClientQt.cpp
1117     platform/qt/ContextMenuClientQt.cpp
1118     platform/qt/ContextMenuQt.cpp
1119     platform/qt/CookieJarQt.cpp
1120     platform/qt/CursorQt.cpp
1121     platform/qt/EditorClientQt.cpp
1122     platform/qt/FileChooserQt.cpp
1123     platform/qt/FontCacheQt.cpp
1124     platform/qt/FontDataQt.cpp
1125     platform/qt/FontPlatformDataQt.cpp
1126     platform/qt/FontQt.cpp
1127     platform/qt/FrameQtClient.cpp
1128     platform/qt/FrameQt.cpp
1129     platform/qt/GlyphMapQt.cpp
1130     platform/qt/GraphicsContextQt.cpp
1131 #   platform/qt/LineEditQt.cpp
1132     platform/qt/LoaderFunctionsQt.cpp
1133     platform/qt/MimeTypeRegistryQt.cpp
1134     platform/qt/PageQt.cpp
1135     platform/qt/PlatformKeyboardEventQt.cpp
1136     platform/qt/PlatformMouseEventQt.cpp
1137     platform/qt/PopupMenuQt.cpp
1138     platform/qt/RenderThemeQt.cpp
1139     platform/qt/ScreenQt.cpp
1140     platform/qt/ScrollViewCanvasQt.cpp
1141     platform/qt/ScrollViewQt.cpp
1142     platform/qt/SharedTimerQt.cpp
1143     platform/qt/SoundQt.cpp
1144     platform/qt/StringQt.cpp
1145     platform/qt/SystemTimeQt.cpp
1146     platform/qt/TemporaryLinkStubs.cpp
1147     platform/qt/TextBoundaries.cpp
1148 #   platform/qt/TextEditQt.cpp
1149     platform/qt/WidgetQt.cpp
1150
1151     xml/DOMParser.cpp
1152     xml/xmlhttprequest.cpp
1153     xml/XMLSerializer.cpp
1154     xml/XPathEvaluator.cpp
1155     xml/XPathExpression.cpp
1156     xml/XPathExpressionNode.cpp
1157     xml/XPathFunctions.cpp
1158     xml/XPathNamespace.cpp
1159     xml/XPathNSResolver.cpp
1160     xml/XPathParser.cpp
1161     xml/XPathPath.cpp
1162     xml/XPathPredicate.cpp
1163     xml/XPathResult.cpp
1164     xml/XPathStep.cpp
1165     xml/XPathUtil.cpp
1166     xml/XPathValue.cpp
1167     xml/XPathVariableReference.cpp
1168     xml/XSLImportRule.cpp
1169     xml/XSLStyleSheet.cpp
1170     xml/XSLTProcessor.cpp
1171
1172     rendering/AutoTableLayout.cpp
1173     rendering/bidi.cpp
1174     rendering/break_lines.cpp
1175     rendering/CounterNode.cpp
1176     rendering/CounterResetNode.cpp
1177     rendering/EllipsisBox.cpp
1178     rendering/FixedTableLayout.cpp
1179     rendering/HitTestResult.cpp
1180     rendering/InlineBox.cpp
1181     rendering/InlineFlowBox.cpp
1182     rendering/InlineTextBox.cpp
1183     rendering/ListMarkerBox.cpp
1184     rendering/RenderApplet.cpp
1185     rendering/RenderArena.cpp
1186     rendering/RenderBlock.cpp
1187     rendering/RenderBox.cpp
1188     rendering/RenderBR.cpp
1189     rendering/RenderButton.cpp
1190     rendering/RenderContainer.cpp
1191     rendering/RenderCounter.cpp
1192     rendering/RenderFieldset.cpp
1193     rendering/RenderFileUploadControl.cpp
1194     rendering/RenderFlexibleBox.cpp
1195     rendering/RenderFlow.cpp
1196     rendering/RenderFormElement.cpp
1197     rendering/RenderFrame.cpp
1198     rendering/RenderFrameSet.cpp
1199     rendering/RenderHTMLCanvas.cpp
1200     rendering/RenderImage.cpp
1201     rendering/RenderInline.cpp
1202     rendering/RenderLabel.cpp
1203     rendering/RenderLayer.cpp
1204     rendering/RenderLegend.cpp
1205     rendering/RenderLineEdit.cpp
1206     rendering/RenderListBox.cpp
1207     rendering/RenderListItem.cpp
1208     rendering/RenderListMarker.cpp
1209     rendering/RenderMenuList.cpp
1210     rendering/RenderObject.cpp
1211     rendering/RenderPart.cpp
1212     rendering/RenderPartObject.cpp
1213     rendering/RenderReplaced.cpp
1214     rendering/RenderSlider.cpp
1215     rendering/RenderStyle.cpp
1216     rendering/RenderTableCell.cpp
1217     rendering/RenderTableCol.cpp
1218     rendering/RenderTable.cpp
1219     rendering/RenderTableRow.cpp
1220     rendering/RenderTableSection.cpp
1221     rendering/RenderTextControl.cpp
1222     rendering/RenderText.cpp
1223     rendering/RenderTextFragment.cpp
1224     rendering/RenderTheme.cpp
1225     rendering/RenderTreeAsText.cpp
1226     rendering/RenderView.cpp
1227     rendering/RenderWidget.cpp
1228     rendering/RootInlineBox.cpp
1229     rendering/SVGRenderTreeAsText.cpp
1230
1231     # Optional SVG/XPath support
1232     ${SVG_SOURCES}
1233     ${XPATH_SOURCES}
1234
1235     # Generated JavaScript bindings
1236     ${WebCore-unity-IDLGeneratedSources}
1237 )
1238
1239 kde4_add_library( WebCore-unity SHARED  ${WebCore_SRCS} )
1240
1241 IF (WEBKIT_USE_KDE_SUPPORT)
1242 target_link_libraries(WebCore-unity
1243     ${LIBXML2_LIBRARIES}
1244     ${LIBXSLT_LIBRARIES}
1245
1246     ${QT_QTCORE_LIBRARY}
1247     ${QT_QTGUI_LIBRARY}
1248
1249     icuuc
1250     kio
1251     kjs-unity
1252     pcre-unity
1253     sqlite3
1254     wtf-unity
1255     z
1256 )
1257 ELSE (WEBKIT_USE_KDE_SUPPORT)
1258 target_link_libraries(WebCore-unity
1259     ${LIBXSLT_LIBRARIES}
1260     ${LIBXML2_LIBRARIES}
1261
1262     ${QT_QTCORE_LIBRARY}
1263     ${QT_QTGUI_LIBRARY}
1264
1265     icuuc
1266     kjs-unity
1267     pcre-unity
1268     sqlite3
1269     wtf-unity
1270     z
1271 )
1272 ENDIF (WEBKIT_USE_KDE_SUPPORT)
1273
1274 install( TARGETS WebCore-unity DESTINATION ${LIB_INSTALL_DIR} )