Reviewed by Adele.
[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}/ForwardingHeaders
9    ${CMAKE_CURRENT_SOURCE_DIR}/platform
10    ${CMAKE_CURRENT_SOURCE_DIR}/loader
11    ${CMAKE_CURRENT_BINARY_DIR}/css
12    ${CMAKE_CURRENT_SOURCE_DIR}/css
13    ${CMAKE_CURRENT_SOURCE_DIR}/dom
14    ${CMAKE_CURRENT_SOURCE_DIR}/page
15    ${CMAKE_CURRENT_SOURCE_DIR}/bridge
16    ${CMAKE_CURRENT_SOURCE_DIR}/editing
17    ${CMAKE_CURRENT_SOURCE_DIR}/kwq
18    ${CMAKE_CURRENT_SOURCE_DIR}/rendering
19    ${CMAKE_CURRENT_SOURCE_DIR}/xml
20    ${CMAKE_CURRENT_BINARY_DIR}/xml
21    ${CMAKE_CURRENT_SOURCE_DIR}/html
22    ${CMAKE_CURRENT_SOURCE_DIR}/bindings/js
23    ${CMAKE_CURRENT_BINARY_DIR}/html
24    ${CMAKE_CURRENT_SOURCE_DIR}/kcanvas
25    ${CMAKE_CURRENT_SOURCE_DIR}/kcanvas/device
26    ${CMAKE_CURRENT_SOURCE_DIR}/kcanvas/device/qt 
27    ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2 
28    ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css
29    ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/svg
30    ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg
31    ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/misc 
32    ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc 
33    ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/events
34    ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/bindings/js
35    ${CMAKE_CURRENT_BINARY_DIR}/platform
36    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders
37    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/gif
38    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/jpeg
39    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/ico
40    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/xbm
41    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/bmp
42    ${CMAKE_CURRENT_SOURCE_DIR}/platform/image-decoders/png
43    ${CMAKE_CURRENT_SOURCE_DIR}/platform/qt
44    ${CMAKE_CURRENT_SOURCE_DIR}/WebCore+SVG
45    ${CMAKE_CURRENT_SOURCE_DIR}/../JavaScriptCore/kjs
46    ${CMAKE_CURRENT_SOURCE_DIR}/../JavaScriptCore/
47    ${CMAKE_CURRENT_SOURCE_DIR}/../
48    )
49
50 include_directories( ${LIBXML2_INCLUDE_DIR} ${QT_INCLUDES}
51   # don't. pulls in kjs
52   # ${KDE4_KDECORE_INCLUDES}
53   )
54
55 add_definitions ( -DQT3_SUPPORT -Wno-undef -Wno-unused-parameter )
56 check_cxx_compiler_flag(-Wno-variadic-macros __KDE_HAVE_WVARIADIC_MACROS)
57
58 IF(__KDE_HAVE_WVARIADIC_MACROS)
59   add_definitions ( -Wno-variadic-macros )
60 ENDIF(__KDE_HAVE_WVARIADIC_MACROS)
61
62 kde4_automoc(platform/qt/SharedTimerQt.cpp)
63 kde4_automoc(platform/qt/ScrollViewCanvasQt.cpp)
64 kde4_automoc(platform/qt/ResourceLoaderManager.cpp)
65
66 SET(FEATURE_DEFINES_JAVASCRIPT LANGUAGE_JAVASCRIPT XPATH_SUPPORT)
67
68 # rules for generated files
69 IF (WEBKIT_USE_SVG_SUPPORT)
70 SET(FEATURE_DEFINES_JAVASCRIPT LANGUAGE_JAVASCRIPT SVG_SUPPORT)
71
72 set(IDL_BINDINGS_SVG
73
74 # These three don't need generation!
75 #
76 # ksvg2/svg/SVGNumber.idl
77 # ksvg2/svg/SVGPoint.idl
78 # ksvg2/svg/SVGRect.idl
79
80 # TODO: Fix generation
81 # ksvg2/svg/SVGEvent.idl
82
83   ksvg2/svg/SVGAngle.idl
84   ksvg2/svg/SVGAnimatedAngle.idl
85   ksvg2/svg/SVGAnimatedBoolean.idl
86   ksvg2/svg/SVGAnimatedEnumeration.idl
87   ksvg2/svg/SVGAnimatedInteger.idl
88   ksvg2/svg/SVGAnimatedLength.idl 
89   ksvg2/svg/SVGAnimatedNumber.idl
90 # ksvg2/svg/SVGAnimatedPathData.idl
91 # ksvg2/svg/SVGAnimatedPoints.idl
92   ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl
93   ksvg2/svg/SVGAnimatedRect.idl
94   ksvg2/svg/SVGAnimatedString.idl
95
96
97   ksvg2/svg/SVGMatrix.idl
98   ksvg2/svg/SVGTransform.idl
99   ksvg2/svg/SVGLength.idl
100   ksvg2/svg/SVGElement.idl
101   ksvg2/svg/SVGColor.idl
102   ksvg2/svg/SVGDocument.idl
103   ksvg2/svg/SVGSVGElement.idl
104   ksvg2/svg/SVGMetadataElement.idl
105   ksvg2/svg/SVGPathElement.idl
106   ksvg2/svg/SVGPathSeg.idl
107   ksvg2/svg/SVGPathSegArcAbs.idl
108   ksvg2/svg/SVGPathSegArcRel.idl
109   ksvg2/svg/SVGPathSegClosePath.idl
110   ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl
111   ksvg2/svg/SVGPathSegCurvetoCubicRel.idl
112   ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl
113   ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl
114   ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl
115   ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl
116   ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl
117   ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl
118   ksvg2/svg/SVGPathSegLinetoAbs.idl
119   ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl
120   ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl
121   ksvg2/svg/SVGPathSegLinetoRel.idl
122   ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl
123   ksvg2/svg/SVGPathSegLinetoVerticalRel.idl
124   ksvg2/svg/SVGPathSegMovetoAbs.idl
125   ksvg2/svg/SVGPathSegMovetoRel.idl
126   ksvg2/svg/SVGPreserveAspectRatio.idl
127 )
128 ENDIF (WEBKIT_USE_SVG_SUPPORT)
129
130 set(IDL_BINDINGS
131   css/CSSValue.idl
132   css/CSSRuleList.idl
133   css/CSSValueList.idl
134   css/CSSStyleDeclaration.idl
135   css/CSSPrimitiveValue.idl
136   css/CSSRule.idl
137   css/Counter.idl
138   css/MediaList.idl
139   dom/Event.idl
140   dom/Range.idl
141   dom/Text.idl
142   dom/DOMImplementation.idl
143   dom/NodeFilter.idl
144   dom/MouseEvent.idl
145   dom/CharacterData.idl
146   dom/DocumentFragment.idl
147   dom/Entity.idl
148   dom/UIEvent.idl
149   dom/Node.idl
150   dom/ProcessingInstruction.idl
151   dom/Notation.idl
152   dom/Element.idl
153   dom/DocumentType.idl
154   dom/Document.idl
155   dom/Attr.idl
156   dom/MutationEvent.idl
157   dom/KeyboardEvent.idl
158   dom/WheelEvent.idl
159   dom/OverflowEvent.idl
160   dom/NodeIterator.idl
161   dom/TreeWalker.idl
162   dom/RangeException.idl
163   html/CanvasGradient.idl
164   html/CanvasPattern.idl
165   html/CanvasRenderingContext2D.idl
166   html/HTMLAnchorElement.idl
167   html/HTMLAppletElement.idl
168   html/HTMLAreaElement.idl
169   html/HTMLBaseElement.idl
170   html/HTMLBaseFontElement.idl
171   html/HTMLBlockquoteElement.idl
172   html/HTMLBodyElement.idl
173   html/HTMLBRElement.idl
174   html/HTMLButtonElement.idl
175   html/HTMLCanvasElement.idl
176   html/HTMLDirectoryElement.idl
177   html/HTMLDivElement.idl
178   html/HTMLDListElement.idl
179   html/HTMLDocument.idl
180   html/HTMLElement.idl
181   html/HTMLFieldSetElement.idl
182   html/HTMLFontElement.idl
183   html/HTMLFormElement.idl
184   html/HTMLHeadElement.idl
185   html/HTMLHeadingElement.idl
186   html/HTMLHRElement.idl
187   html/HTMLHtmlElement.idl
188   html/HTMLImageElement.idl
189   html/HTMLInputElement.idl
190   html/HTMLIsIndexElement.idl
191   html/HTMLLabelElement.idl
192   html/HTMLLegendElement.idl
193   html/HTMLLIElement.idl
194   html/HTMLLinkElement.idl
195   html/HTMLMapElement.idl
196   html/HTMLMenuElement.idl
197   html/HTMLMetaElement.idl
198   html/HTMLModElement.idl
199   html/HTMLOListElement.idl
200   html/HTMLOptGroupElement.idl
201   html/HTMLOptionElement.idl
202   html/HTMLParagraphElement.idl
203   html/HTMLParamElement.idl
204   html/HTMLPreElement.idl
205   html/HTMLQuoteElement.idl
206   html/HTMLScriptElement.idl
207   html/HTMLStyleElement.idl
208   html/HTMLTextAreaElement.idl
209   html/HTMLTitleElement.idl
210   html/HTMLUListElement.idl
211   html/HTMLOptionsCollection.idl
212
213   xml/XPathNSResolver.idl
214   xml/XPathExpression.idl
215   xml/XPathResult.idl
216   xml/XPathEvaluator.idl
217  
218   xml/DOMParser.idl
219   xml/XMLSerializer.idl
220
221   page/DOMWindow.idl
222
223   ${IDL_BINDINGS_SVG}
224 )
225
226 set(WebCore-unity-IDLGeneratedSources )
227
228 # create these files at build time on demand, not everytime at cmake-time, Alex
229 foreach (idl ${IDL_BINDINGS})
230    get_filename_component(_basename ${idl} NAME_WE)
231    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.cpp ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.h
232       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}
233       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${idl} )
234    set(WebCore-unity-IDLGeneratedSources ${WebCore-unity-IDLGeneratedSources} ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.cpp ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.h )
235 endforeach (idl)
236
237 set(CREATE_HASH_TABLE ${CMAKE_CURRENT_SOURCE_DIR}/../JavaScriptCore/kjs/create_hash_table )
238
239 macro(CREATE_LUT _srcs_LIST _in_FILE _out_FILE _dep_FILE)
240
241    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
242       COMMAND ${PERL_EXECUTABLE} ${CREATE_HASH_TABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} -i > ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
243       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/${_dep_FILE} )
244    set( ${_srcs_LIST}  ${${_srcs_LIST}} ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE})
245 endmacro(CREATE_LUT)
246
247 macro(CREATE_CPP_LUT _in_FILE _out_FILE _dep_FILE)
248    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
249       COMMAND ${PERL_EXECUTABLE} ${CREATE_HASH_TABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} -i > ${CMAKE_CURRENT_BINARY_DIR}/${_out_FILE}
250       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_in_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/${_dep_FILE} )
251 endmacro(CREATE_CPP_LUT)
252
253 create_lut(WebCore-unity_LIB_SRCS bindings/js/kjs_window.cpp kjs_window.lut.h bindings/js/kjs_window.cpp)
254 create_lut(WebCore-unity_LIB_SRCS bindings/js/kjs_css.cpp kjs_css.lut.h bindings/js/kjs_css.cpp)
255 create_lut(WebCore-unity_LIB_SRCS bindings/js/kjs_dom.cpp kjs_dom.lut.h bindings/js/kjs_dom.cpp)
256 create_lut(WebCore-unity_LIB_SRCS bindings/js/kjs_html.cpp kjs_html.lut.h bindings/js/kjs_html.cpp)
257 create_lut(WebCore-unity_LIB_SRCS bindings/js/kjs_events.cpp kjs_events.lut.h bindings/js/kjs_events.cpp)
258 create_lut(WebCore-unity_LIB_SRCS bindings/js/kjs_navigator.cpp kjs_navigator.lut.h bindings/js/kjs_navigator.cpp)
259 create_lut(WebCore-unity_LIB_SRCS bindings/js/kjs_traversal.cpp kjs_traversal.lut.h bindings/js/kjs_traversal.cpp)
260 create_lut(WebCore-unity_LIB_SRCS bindings/js/JSXMLHttpRequest.cpp JSXMLHttpRequest.lut.h bindings/js/JSXMLHttpRequest.cpp)
261 create_lut(WebCore-unity_LIB_SRCS bindings/js/JSXSLTProcessor.cpp JSXSLTProcessor.lut.h bindings/js/JSXSLTProcessor.cpp)
262 create_cpp_lut(bindings/js/JSHTMLInputElementBase.cpp JSHTMLInputElementBaseTable.cpp bindings/js/JSHTMLInputElementBase.cpp)
263
264 IF (WEBKIT_USE_SVG_SUPPORT)
265     create_cpp_lut(ksvg2/bindings/js/JSSVGNumber.cpp JSSVGNumberTable.cpp ksvg2/bindings/js/JSSVGNumber.cpp)
266     create_cpp_lut(ksvg2/bindings/js/JSSVGPoint.cpp JSSVGPointTable.cpp ksvg2/bindings/js/JSSVGPoint.cpp)
267     create_cpp_lut(ksvg2/bindings/js/JSSVGRect.cpp JSSVGRectTable.cpp ksvg2/bindings/js/JSSVGRect.cpp)
268 ENDIF (WEBKIT_USE_SVG_SUPPORT)
269
270 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/tokenizer.cpp
271   COMMAND flex -t < ${CMAKE_CURRENT_SOURCE_DIR}/css/tokenizer.flex | perl ${CMAKE_CURRENT_SOURCE_DIR}/css/maketokenizer > ${CMAKE_CURRENT_BINARY_DIR}/tokenizer.cpp
272
273   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/tokenizer.flex
274 )
275
276 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/CSSPropertyNames.h ${CMAKE_CURRENT_BINARY_DIR}/CSSPropertyNames.c
277
278   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
279   COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSPropertyNames.in ${CMAKE_CURRENT_BINARY_DIR}/CSSPropertyNames.in
280   COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/css/makeprop
281
282   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSPropertyNames.in
283 )
284
285 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/CSSValueKeywords.h ${CMAKE_CURRENT_BINARY_DIR}/CSSValueKeywords.c
286
287   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
288   COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSValueKeywords.in ${CMAKE_CURRENT_BINARY_DIR}
289   COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/css/makevalues
290
291   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSValueKeywords.in
292 )
293
294 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.cpp ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.h
295   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
296   COMMAND ${BISON_EXECUTABLE} -d -p cssyy ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSGrammar.y
297   COMMAND mv CSSGrammar.tab.c ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.cpp
298   #COMMAND rm -f CSSGrammar.tab.h
299   #COMMAND touch CSSGrammar.h
300   COMMAND mv CSSGrammar.tab.h ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.h
301   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/CSSGrammar.y
302 )
303
304 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/HTMLNames.cpp ${CMAKE_CURRENT_BINARY_DIR}/html/HTMLNames.h
305   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
306   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/html
307   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
308
309   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/html/HTMLTagNames.in ${CMAKE_CURRENT_SOURCE_DIR}/html/HTMLAttributeNames.in
310 )
311
312 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
313   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
314   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg
315   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
316
317   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/svg/svgtags.in ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/svg/svgattrs.in
318 )
319
320 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc/XLinkNames.cpp ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc/XLinkNames.h
321   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
322   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc
323   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
324
325   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/misc/xlinkattrs.in
326 )
327
328 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/xml/XMLNames.cpp ${CMAKE_CURRENT_BINARY_DIR}/xml/XMLNames.h
329   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
330   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/xml
331   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
332
333   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/xml/xmlattrs.in
334 )
335
336 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/HTMLEntityNames.c
337   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
338   COMMAND mkdir -p html
339   COMMAND echo '\#include <string.h>' > html/HTMLEntityNames.c
340   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
341
342   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/html/HTMLEntityNames.gperf
343 )
344
345 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/DocTypeStrings.cpp
346   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
347   COMMAND mkdir -p html
348   COMMAND echo '\#include <string.h>' > html/DocTypeStrings.cpp
349   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
350   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/html/DocTypeStrings.gperf
351 )
352
353 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/platform/ColorData.c
354   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
355   COMMAND mkdir -p platform
356   COMMAND echo '\#include <string.h>' > platform/ColorData.c
357   COMMAND ${GPERF_EXECUTABLE} -CDEot -L ANSI-C -k \"*\" -N findColor -D -s 2 < ${CMAKE_CURRENT_SOURCE_DIR}/platform/ColorData.gperf >> platform/ColorData.c
358   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/platform/ColorData.gperf
359 )
360
361 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ksvgcssproperties.h
362   COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css/CSSPropertyNames.in ${CMAKE_CURRENT_BINARY_DIR}/ksvgcssproperties.in
363   COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/cssmakeprops -n SVG -f ksvgcssproperties.in
364   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/cssmakeprops ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css/CSSPropertyNames.in
365 )
366
367 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ksvgcssvalues.h
368   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
369   COMMAND perl -ne 'print lc' ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css/CSSValueKeywords.in > ksvgcssvalues.in
370   COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/cssmakevalues -n SVG -f ksvgcssvalues.in
371   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/scripts/cssmakevalues ${CMAKE_CURRENT_SOURCE_DIR}/ksvg2/css/CSSValueKeywords.in
372 )
373
374 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/UserAgentStyleSheets.h ${CMAKE_CURRENT_BINARY_DIR}/UserAgentStyleSheetsData.cpp
375   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
376   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/css/html4.css ${CMAKE_CURRENT_SOURCE_DIR}/css/quirks.css ${CMAKE_CURRENT_SOURCE_DIR}/css/svg.css
377 )
378
379 # source stuff
380 IF (WEBKIT_USE_SVG_SUPPORT)
381 set (SVG_STUFF
382     ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg/SVGNames.cpp
383     ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/svg/SVGElementFactory.cpp
384     ${CMAKE_CURRENT_BINARY_DIR}/ksvg2/misc/XLinkNames.cpp
385     ${CMAKE_CURRENT_BINARY_DIR}/xml/XMLNames.cpp
386
387     ksvg2/bindings/js/JSSVGPoint.cpp
388     ksvg2/bindings/js/JSSVGRect.cpp
389     ksvg2/bindings/js/JSSVGNumber.cpp
390     ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp 
391
392     ksvg2/css/SVGCSSParser.cpp
393     ksvg2/css/SVGRenderStyleDefs.cpp
394     ksvg2/css/SVGRenderStyle.cpp
395     ksvg2/css/SVGCSSStyleSelector.cpp
396     ksvg2/svg/SVGHelper.cpp
397     ksvg2/svg/SVGFEFuncBElement.cpp
398     ksvg2/svg/SVGPathSeg.cpp
399     ksvg2/svg/SVGColor.cpp
400     ksvg2/svg/SVGSwitchElement.cpp
401     ksvg2/svg/SVGFETileElement.cpp
402     ksvg2/svg/SVGDOMImplementation.cpp
403     ksvg2/svg/SVGMarkerElement.cpp
404     ksvg2/svg/SVGFECompositeElement.cpp
405     ksvg2/svg/SVGImageElement.cpp
406     ksvg2/svg/SVGAnimateElement.cpp
407     ksvg2/svg/SVGURIReference.cpp
408     ksvg2/svg/SVGLength.cpp
409     ksvg2/svg/SVGPathSegCurvetoCubic.cpp
410     ksvg2/svg/SVGExternalResourcesRequired.cpp
411     ksvg2/svg/SVGPolylineElement.cpp
412     ksvg2/svg/SVGFEOffsetElement.cpp
413     ksvg2/svg/SVGFETurbulenceElement.cpp
414     ksvg2/svg/SVGZoomAndPan.cpp
415     ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp
416     ksvg2/svg/SVGStyledLocatableElement.cpp
417     ksvg2/svg/SVGLineElement.cpp
418     ksvg2/svg/SVGTransform.cpp
419     ksvg2/svg/SVGPathSegLinetoVertical.cpp
420     ksvg2/svg/SVGFitToViewBox.cpp
421     ksvg2/svg/SVGRadialGradientElement.cpp
422     ksvg2/svg/SVGMatrix.cpp
423     ksvg2/svg/SVGMaskElement.cpp
424     ksvg2/svg/SVGTitleElement.cpp
425     ksvg2/svg/SVGTRefElement.cpp
426     ksvg2/svg/SVGLangSpace.cpp
427     ksvg2/svg/SVGTransformList.cpp
428     ksvg2/svg/SVGStylable.cpp
429     ksvg2/svg/SVGPolyElement.cpp
430     ksvg2/svg/SVGPolygonElement.cpp
431 #   ksvg2/svg/SVGElementInstanceList.cpp
432     ksvg2/svg/SVGTSpanElement.cpp
433     ksvg2/svg/SVGFEFuncRElement.cpp
434     ksvg2/svg/SVGFEFloodElement.cpp
435     ksvg2/svg/SVGPointList.cpp
436     ksvg2/svg/SVGAnimatedPoints.cpp
437     ksvg2/svg/SVGAnimatedPathData.cpp
438     ksvg2/svg/SVGUseElement.cpp
439     ksvg2/svg/SVGNumberList.cpp
440     ksvg2/svg/SVGFEPointLightElement.cpp
441     ksvg2/svg/SVGPathSegLineto.cpp
442     ksvg2/svg/SVGRectElement.cpp
443     ksvg2/svg/SVGTextContentElement.cpp
444     ksvg2/svg/SVGFESpotLightElement.cpp
445     ksvg2/svg/SVGLocatable.cpp
446     ksvg2/svg/SVGEllipseElement.cpp
447     ksvg2/svg/SVGPathElement.cpp
448     ksvg2/svg/SVGStyledElement.cpp
449     ksvg2/svg/SVGFEMergeNodeElement.cpp
450     ksvg2/svg/svgpathparser.cpp
451     ksvg2/svg/SVGFEGaussianBlurElement.cpp
452     ksvg2/svg/SVGLinearGradientElement.cpp
453     ksvg2/svg/SVGFEDisplacementMapElement.cpp
454     ksvg2/svg/SVGFEImageElement.cpp
455     ksvg2/svg/SVGFEDiffuseLightingElement.cpp
456     ksvg2/svg/SVGSymbolElement.cpp
457     ksvg2/svg/SVGForeignObjectElement.cpp
458     ksvg2/svg/SVGAngle.cpp
459     ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp
460     ksvg2/svg/SVGSVGElement.cpp
461     ksvg2/svg/SVGFESpecularLightingElement.cpp
462     ksvg2/svg/SVGAnimateColorElement.cpp
463     ksvg2/svg/SVGGElement.cpp
464     ksvg2/svg/SVGFEFuncGElement.cpp
465     ksvg2/svg/SVGFEComponentTransferElement.cpp
466     ksvg2/svg/SVGSetElement.cpp
467     ksvg2/svg/SVGFEBlendElement.cpp
468     ksvg2/svg/SVGFEMergeElement.cpp
469     ksvg2/svg/SVGCursorElement.cpp
470     ksvg2/svg/SVGStringList.cpp
471 #   ksvg2/svg/SVGElementInstance.cpp
472     ksvg2/svg/SVGFilterElement.cpp
473     ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp
474     ksvg2/svg/SVGPatternElement.cpp
475     ksvg2/svg/SVGPathSegList.cpp
476     ksvg2/svg/SVGStyleElement.cpp
477     ksvg2/svg/SVGPaint.cpp
478     ksvg2/svg/SVGFEDistantLightElement.cpp
479     ksvg2/svg/SVGTextPositioningElement.cpp
480     ksvg2/svg/SVGPreserveAspectRatio.cpp
481     ksvg2/svg/SVGScriptElement.cpp
482     ksvg2/svg/SVGComponentTransferFunctionElement.cpp
483     ksvg2/svg/SVGTextElement.cpp
484     ksvg2/svg/SVGViewElement.cpp
485     ksvg2/svg/SVGLengthList.cpp
486     ksvg2/svg/SVGStyledTransformableElement.cpp
487     ksvg2/svg/SVGPathSegArc.cpp
488     ksvg2/svg/SVGDescElement.cpp
489     ksvg2/svg/SVGTransformable.cpp
490     ksvg2/svg/SVGDocument.cpp
491     ksvg2/svg/SVGClipPathElement.cpp
492     ksvg2/svg/SVGPathSegMoveto.cpp
493     ksvg2/svg/SVGAElement.cpp
494     ksvg2/svg/SVGCircleElement.cpp
495     ksvg2/svg/SVGFEFuncAElement.cpp
496     ksvg2/svg/SVGTests.cpp
497     ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp
498     ksvg2/svg/SVGElement.cpp
499     ksvg2/svg/SVGAnimateTransformElement.cpp
500     ksvg2/svg/SVGFEColorMatrixElement.cpp
501     ksvg2/svg/SVGGradientElement.cpp
502     ksvg2/svg/SVGAnimationElement.cpp
503     ksvg2/svg/SVGFELightElement.cpp
504     ksvg2/svg/SVGPathSegClosePath.cpp
505     ksvg2/svg/SVGPathSegLinetoHorizontal.cpp
506     ksvg2/svg/SVGStopElement.cpp
507     ksvg2/svg/SVGDefsElement.cpp
508     ksvg2/svg/SVGMetadataElement.cpp
509 #   ksvg2/ecma/GlobalObject.cpp
510 #   ksvg2/ecma/Ecma.cpp
511     ksvg2/misc/SVGImageLoader.cpp
512     ksvg2/misc/SVGDocumentExtensions.cpp
513     ksvg2/misc/KSVGTimeScheduler.cpp
514     ksvg2/misc/KCanvasRenderingStyle.cpp
515     ksvg2/events/JSSVGLazyEventListener.cpp
516     ksvg2/events/SVGZoomEvent.cpp
517     kcanvas/KCanvasCreator.cpp
518     kcanvas/KCanvasTreeDebug.cpp
519     kcanvas/KCanvasFilters.cpp
520     kcanvas/RenderSVGText.cpp
521     kcanvas/device/KRenderingPaintServerGradient.cpp
522     kcanvas/device/KRenderingPaintServerSolid.cpp
523     kcanvas/device/KRenderingFillPainter.cpp
524     kcanvas/device/KRenderingStrokePainter.cpp
525     kcanvas/device/KRenderingPaintServerPattern.cpp
526     kcanvas/device/KRenderingDevice.cpp
527     kcanvas/device/qt/RenderPathQt.cpp
528     kcanvas/device/qt/KRenderingDeviceQt.cpp
529     kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp
530     kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp
531     kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp
532     kcanvas/device/qt/KRenderingPaintServerQt.cpp
533     kcanvas/device/qt/KCanvasClipperQt.cpp
534 #   kcanvas/device/qt/KCanvasFilterQt.cpp
535 #   kcanvas/device/qt/KCanvasImageItemQt.cpp
536     kcanvas/RenderSVGContainer.cpp
537     kcanvas/RenderPath.cpp
538     kcanvas/KCanvasResources.cpp
539     kcanvas/RenderSVGImage.cpp
540     kcanvas/RenderForeignObject.cpp
541  )
542 ENDIF(WEBKIT_USE_SVG_SUPPORT)
543
544 set(WebCore_SRCS
545
546     ${WebCore-unity_LIB_SRCS}
547
548     ${CMAKE_CURRENT_BINARY_DIR}/CSSPropertyNames.h
549     ${CMAKE_CURRENT_BINARY_DIR}/CSSValueKeywords.h
550     ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.h
551     ${CMAKE_CURRENT_BINARY_DIR}/CSSGrammar.cpp
552     ${CMAKE_CURRENT_BINARY_DIR}/UserAgentStyleSheets.h
553     ${CMAKE_CURRENT_BINARY_DIR}/UserAgentStyleSheetsData.cpp
554     ${CMAKE_CURRENT_BINARY_DIR}/html/HTMLNames.cpp
555     ${CMAKE_CURRENT_BINARY_DIR}/html/HTMLEntityNames.c
556     ${CMAKE_CURRENT_BINARY_DIR}/html/DocTypeStrings.cpp
557     ${CMAKE_CURRENT_BINARY_DIR}/platform/ColorData.c
558     ${CMAKE_CURRENT_BINARY_DIR}/ksvgcssproperties.h
559     ${CMAKE_CURRENT_BINARY_DIR}/ksvgcssvalues.h
560
561     bindings/js/kjs_binding.cpp
562     bindings/js/kjs_css.cpp
563     bindings/js/kjs_dom.cpp
564     bindings/js/kjs_events.cpp
565     bindings/js/kjs_html.cpp
566     bindings/js/kjs_navigator.cpp
567     bindings/js/kjs_proxy.cpp
568     bindings/js/kjs_traversal.cpp
569     bindings/js/kjs_window.cpp
570
571     bindings/js/JSCanvasRenderingContext2DCustom.cpp
572     bindings/js/JSHTMLElementWrapperFactory.cpp
573     bindings/js/JSHTMLFormElementCustom.cpp
574     bindings/js/JSHTMLOptionElementConstructor.cpp
575     bindings/js/JSHTMLOptionsCollectionCustom.cpp
576     bindings/js/JSHTMLInputElementBase.cpp
577     bindings/js/JSXMLHttpRequest.cpp
578     bindings/js/JSNodeIteratorCustom.cpp
579     bindings/js/JSTreeWalkerCustom.cpp
580     bindings/js/JSXSLTProcessor.cpp
581
582     css/cssparser.cpp
583     css/cssstyleselector.cpp
584     css/csshelper.cpp
585     css/FontValue.cpp
586     css/CSSSelector.cpp
587     css/MediaFeatureNames.cpp
588     css/CSSRuleList.cpp
589     css/CSSCharsetRule.cpp
590     css/MediaQueryExp.cpp
591     css/CSSImportRule.cpp
592     css/CSSValueList.cpp
593     css/CSSStyleDeclaration.cpp
594     css/CSSPrimitiveValue.cpp
595     css/CSSProperty.cpp
596     css/CSSBorderImageValue.cpp
597     css/MediaQuery.cpp
598     css/StyleSheet.cpp
599     css/CSSPageRule.cpp
600     css/StyleSheetList.cpp
601     css/MediaQueryEvaluator.cpp
602     css/StyleBase.cpp
603     css/CSSRule.cpp
604     css/CSSStyleSheet.cpp
605     css/CSSInitialValue.cpp
606     css/CSSImageValue.cpp
607     css/CSSStyleRule.cpp
608     css/CSSInheritedValue.cpp
609     css/StyleList.cpp
610     css/FontFamilyValue.cpp
611     css/CSSMediaRule.cpp
612     css/CSSComputedStyleDeclaration.cpp
613     css/CSSMutableStyleDeclaration.cpp
614     css/MediaList.cpp
615     css/CSSFontFaceRule.cpp
616     css/ShadowValue.cpp
617     dom/Event.cpp
618     dom/Range.cpp
619     dom/Text.cpp
620     dom/DOMImplementation.cpp
621     dom/NodeFilter.cpp
622     dom/MouseEvent.cpp
623     dom/EntityReference.cpp
624     dom/NameNodeList.cpp
625     dom/CharacterData.cpp
626     dom/XMLTokenizer.cpp
627     dom/StyledElement.cpp
628     dom/MappedAttribute.cpp
629     dom/NamedAttrMap.cpp
630     dom/ContainerNode.cpp
631     dom/NamedMappedAttrMap.cpp
632     dom/EventNames.cpp
633     dom/Comment.cpp
634     dom/EditingText.cpp
635     dom/DocumentFragment.cpp
636     dom/ChildNodeList.cpp
637     dom/Entity.cpp
638     dom/BeforeTextInsertedEvent.cpp
639     dom/UIEvent.cpp
640     dom/Node.cpp
641     dom/Attribute.cpp
642     dom/Position.cpp
643     dom/ProcessingInstruction.cpp
644     dom/TreeWalker.cpp
645     dom/Notation.cpp
646     dom/Element.cpp
647     dom/NodeFilterCondition.cpp
648     dom/CDATASection.cpp
649     dom/DocumentType.cpp
650     dom/NodeList.cpp
651     dom/CSSMappedAttributeDeclaration.cpp
652     dom/QualifiedName.cpp
653     dom/Document.cpp
654     dom/Attr.cpp
655     dom/OverflowEvent.cpp
656     dom/RegisteredEventListener.cpp
657     dom/EventTargetNode.cpp
658     dom/BeforeUnloadEvent.cpp
659     dom/MutationEvent.cpp
660     dom/MouseRelatedEvent.cpp
661     dom/KeyboardEvent.cpp
662     dom/NodeIterator.cpp
663     dom/ClipboardEvent.cpp
664     dom/Traversal.cpp
665     dom/WheelEvent.cpp
666 #   kwq/KWQWMatrix.cpp
667 #   kwq/KWQCString.cpp
668
669     ${SVG_STUFF}
670     editing/InsertIntoTextNodeCommand.cpp
671     editing/WrapContentsInDummySpanCommand.cpp
672     editing/ReplaceSelectionCommand.cpp
673     editing/MoveSelectionCommand.cpp
674     editing/RemoveNodePreservingChildrenCommand.cpp
675     editing/HTMLInterchange.cpp
676     editing/UnlinkCommand.cpp
677     editing/InsertLineBreakCommand.cpp
678     editing/FormatBlockCommand.cpp
679     editing/AppendNodeCommand.cpp
680     editing/BreakBlockquoteCommand.cpp
681     editing/htmlediting.cpp
682     editing/RebalanceWhitespaceCommand.cpp
683     editing/markup.cpp
684     editing/InsertParagraphSeparatorCommand.cpp
685     editing/ModifySelectionListLevel.cpp
686     editing/JSEditor.cpp
687     editing/Selection.cpp
688     editing/TextIterator.cpp
689     editing/InsertListCommand.cpp
690     editing/IndentOutdentCommand.cpp
691     editing/InsertNodeBeforeCommand.cpp
692     editing/SplitTextNodeContainingElementCommand.cpp
693     editing/TypingCommand.cpp
694     editing/MergeIdenticalElementsCommand.cpp
695     editing/EditCommand.cpp
696     editing/SplitTextNodeCommand.cpp
697     editing/RemoveCSSPropertyCommand.cpp
698     editing/JoinTextNodesCommand.cpp
699     editing/InsertTextCommand.cpp
700     editing/SelectionController.cpp
701     editing/DeleteSelectionCommand.cpp
702     editing/SplitElementCommand.cpp
703     editing/VisiblePosition.cpp
704     editing/ApplyStyleCommand.cpp
705     editing/visible_units.cpp
706     editing/RemoveNodeAttributeCommand.cpp
707     editing/DeleteFromTextNodeCommand.cpp
708     editing/RemoveNodeCommand.cpp
709     editing/CompositeEditCommand.cpp
710     editing/SetNodeAttributeCommand.cpp
711     editing/CreateLinkCommand.cpp
712
713
714 #   kwq/KWQTextStream.cpp
715     xml/XSLStyleSheet.cpp
716     xml/XSLTProcessor.cpp
717     xml/XSLImportRule.cpp
718     xml/DOMParser.cpp
719     xml/XMLSerializer.cpp
720     xml/xmlhttprequest.cpp
721 #   icon/IconDatabase.cpp
722 #   icon/SQLTransaction.cpp
723 #   icon/SQLStatement.cpp
724 #   icon/SiteIcon.cpp
725 #   icon/SQLDatabase.cpp
726     html/HTMLParser.cpp
727     html/HTMLFontElement.cpp
728     html/HTMLEmbedElement.cpp
729     html/HTMLLinkElement.cpp
730     html/HTMLOptGroupElement.cpp
731     html/HTMLCanvasElement.cpp
732     html/HTMLTitleElement.cpp
733     html/CanvasRenderingContext2D.cpp
734     html/HTMLObjectElement.cpp
735     html/HTMLAppletElement.cpp
736     html/HTMLKeygenElement.cpp
737     html/HTMLDivElement.cpp
738     html/HTMLMapElement.cpp
739     html/HTMLScriptElement.cpp
740     html/HTMLHtmlElement.cpp
741     html/HTMLTokenizer.cpp
742     html/HTMLOptionElement.cpp
743     html/HTMLTableCaptionElement.cpp
744     html/HTMLImageLoader.cpp
745     html/FormDataList.cpp
746     html/HTMLLabelElement.cpp
747     html/HTMLTableColElement.cpp
748     html/HTMLDListElement.cpp
749     html/HTMLTablePartElement.cpp
750     html/HTMLTableSectionElement.cpp
751     html/HTMLTextAreaElement.cpp
752     html/HTMLTextFieldInnerElement.cpp
753     html/HTMLAreaElement.cpp
754     html/CanvasStyle.cpp
755     html/HTMLIsIndexElement.cpp
756     html/HTMLHeadElement.cpp
757     html/HTMLFrameSetElement.cpp
758     html/HTMLBodyElement.cpp
759     html/HTMLBRElement.cpp
760     html/HTMLNameCollection.cpp
761     html/HTMLLegendElement.cpp
762     html/HTMLLIElement.cpp
763     html/HTMLParamElement.cpp
764     html/HTMLMetaElement.cpp
765     html/HTMLHeadingElement.cpp
766     html/HTMLUListElement.cpp
767     html/HTMLInputElement.cpp
768     html/HTMLElementFactory.cpp
769     html/HTMLPlugInElement.cpp
770     html/HTMLFieldSetElement.cpp
771     html/HTMLParagraphElement.cpp
772     html/HTMLStyleElement.cpp
773     html/HTMLMarqueeElement.cpp
774     html/HTMLGenericFormElement.cpp
775     html/HTMLElement.cpp
776     html/HTMLDocument.cpp
777     html/HTMLOListElement.cpp
778     html/HTMLFormElement.cpp
779     html/HTMLPreElement.cpp
780     html/HTMLTableElement.cpp
781     html/CanvasGradient.cpp
782     html/HTMLViewSourceDocument.cpp
783     html/HTMLFrameElement.cpp
784     html/HTMLAnchorElement.cpp
785     html/HTMLTableCellElement.cpp
786     html/CanvasPattern.cpp
787     html/HTMLBlockquoteElement.cpp
788     html/HTMLIFrameElement.cpp
789     html/HTMLMenuElement.cpp
790     html/HTMLCollection.cpp
791     html/HTMLModElement.cpp
792     html/HTMLQuoteElement.cpp
793     html/HTMLDirectoryElement.cpp
794     html/HTMLSelectElement.cpp
795     html/HTMLImageElement.cpp
796     html/HTMLOptionsCollection.cpp
797     html/HTMLTableRowElement.cpp
798     html/HTMLBaseFontElement.cpp
799     html/HTMLHRElement.cpp
800     html/HTMLButtonElement.cpp
801     html/HTMLFormCollection.cpp
802     html/HTMLBaseElement.cpp
803     page/FrameTree.cpp
804     page/DOMWindow.cpp
805     page/MouseEventWithHitTestResults.cpp
806     page/Frame.cpp
807     page/Page.cpp
808     page/FrameView.cpp
809     xml/XPathUtil.cpp
810     xml/XPathPredicate.cpp
811     xml/XPathVariableReference.cpp
812     xml/XPathValue.cpp
813     xml/XPathPath.cpp
814     xml/XPathFunctions.cpp
815     xml/XPathParser.cpp
816     xml/XPathStep.cpp
817     xml/XPathExpressionNode.cpp
818     xml/XPathNamespace.cpp
819     xml/XPathNSResolver.cpp
820     xml/XPathExpression.cpp
821     xml/XPathResult.cpp
822     xml/XPathEvaluator.cpp
823     loader/CachedImage.cpp
824     loader/CachedScript.cpp
825     loader/Request.cpp
826     loader/CachedXSLStyleSheet.cpp
827     loader/DocLoader.cpp
828     loader/PluginDocument.cpp
829     loader/TextDocument.cpp
830     loader/ImageDocument.cpp
831     loader/CachedResourceClientWalker.cpp
832     loader/loader.cpp
833     loader/CachedCSSStyleSheet.cpp
834     loader/CachedXBLDocument.cpp
835     loader/CachedResource.cpp
836     loader/Cache.cpp
837     loader/Decoder.cpp
838     loader/FormData.cpp
839     platform/CString.cpp
840     platform/AtomicString.cpp
841     platform/AffineTransform.cpp
842     platform/TextStream.cpp
843     platform/Widget.cpp
844     platform/GlyphWidthMap.cpp
845     platform/Pen.cpp
846     platform/Image.cpp
847     platform/DeprecatedStringList.cpp
848     platform/FloatSize.cpp
849     platform/String.cpp
850     platform/DeprecatedValueListImpl.cpp
851     platform/GraphicsTypes.cpp
852     platform/IntRect.cpp
853     platform/Arena.cpp
854     platform/ArrayImpl.cpp
855     platform/FloatPoint.cpp
856     platform/SegmentedString.cpp
857     platform/StreamingTextDecoder.cpp
858     platform/StreamingTextDecoderICU.cpp
859     platform/DeprecatedString.cpp
860     platform/DeprecatedCString.cpp
861     platform/TextCodecLatin1.cpp
862     platform/TextCodecUTF16.cpp
863     platform/TextDecoder.cpp
864     platform/TextEncoding.cpp
865     platform/TextEncodingRegistry.cpp
866     platform/GraphicsContext.cpp
867     platform/Logging.cpp
868     platform/Color.cpp
869     platform/DeprecatedPtrListImpl.cpp
870     platform/KURL.cpp
871     platform/StringImpl.cpp
872     platform/FloatRect.cpp
873     platform/ResourceLoader.cpp
874     platform/Path.cpp
875     platform/qt/AffineTransformQt.cpp
876     platform/qt/StringQt.cpp
877     platform/qt/ColorQt.cpp
878     platform/qt/GlyphMapQt.cpp
879     platform/qt/BrowserExtensionQt.cpp
880     platform/qt/CookieJarQt.cpp
881     platform/qt/FontPlatformDataQt.cpp
882     platform/qt/GraphicsContextQt.cpp
883     platform/qt/ScrollViewQt.cpp
884     platform/qt/TemporaryLinkStubs.cpp
885     platform/qt/CursorQt.cpp
886     platform/qt/WidgetQt.cpp
887     platform/qt/SystemTimeQt.cpp
888     platform/qt/RenderThemeQt.cpp
889     platform/qt/FontDataQt.cpp
890     platform/qt/SharedTimerQt.cpp
891     platform/qt/RenderPopupMenuQt.cpp
892     platform/qt/ResourceLoaderManager.cpp
893     platform/qt/ResourceLoaderQt.cpp
894     platform/qt/FloatPointQt.cpp
895     platform/qt/ListBoxQt.cpp
896     platform/qt/FloatRectQt.cpp
897     platform/qt/IntPointQt.cpp
898     platform/qt/IntRectQt.cpp
899     platform/qt/IntSizeQt.cpp
900     platform/qt/PageQt.cpp
901     platform/qt/PathQt.cpp
902     platform/qt/ImageQt.cpp
903     platform/qt/ImageSourceQt.cpp
904     platform/qt/FontCacheQt.cpp
905     platform/qt/FontQt.cpp
906 #   platform/qt/LineEditQt.cpp
907     platform/qt/ScreenQt.cpp
908 #   platform/qt/FileButtonQt.cpp
909     platform/qt/FrameQt.cpp
910     platform/qt/FrameQtClient.cpp
911 #   platform/qt/TextEditQt.cpp
912     platform/qt/ScrollViewCanvasQt.cpp
913     platform/qt/PlatformMouseEventQt.cpp
914     platform/qt/PlatformKeyboardEventQt.cpp
915     platform/image-decoders/bmp/BMPImageDecoder.cpp
916     platform/image-decoders/gif/GIFImageReader.cpp
917     platform/image-decoders/gif/GIFImageDecoder.cpp
918     platform/image-decoders/ico/ICOImageDecoder.cpp
919     platform/image-decoders/png/PNGImageDecoder.cpp
920     platform/image-decoders/xbm/XBMImageDecoder.cpp
921     platform/image-decoders/jpeg/JPEGImageDecoder.cpp
922     platform/FontFamily.cpp
923     platform/Timer.cpp
924     platform/FontCache.cpp
925     platform/FontFallbackList.cpp
926     platform/RegularExpression.cpp
927     platform/GlyphMap.cpp
928     platform/Font.cpp
929     platform/FontData.cpp
930     rendering/RenderReplaced.cpp
931     rendering/RenderPartObject.cpp
932     rendering/RenderView.cpp
933     rendering/RenderMenuList.cpp
934     rendering/RenderPopupMenu.cpp
935     rendering/InlineFlowBox.cpp
936     rendering/RenderListMarker.cpp
937     rendering/RenderImage.cpp
938     rendering/RenderTheme.cpp
939     rendering/RenderLayer.cpp
940     rendering/RenderTableCell.cpp
941     rendering/RenderListItem.cpp
942     rendering/RenderImageButton.cpp
943     rendering/AutoTableLayout.cpp
944     rendering/RenderArena.cpp
945     rendering/RenderWidget.cpp
946     rendering/break_lines.cpp
947     rendering/RenderStyle.cpp
948     rendering/RenderContainer.cpp
949     rendering/EllipsisBox.cpp
950     rendering/DeprecatedRenderSelect.cpp
951     rendering/RenderFieldset.cpp
952     rendering/RenderFrameSet.cpp
953     rendering/RenderTable.cpp
954     rendering/RenderPart.cpp
955     rendering/RenderBlock.cpp
956     rendering/DeprecatedSlider.cpp
957     rendering/InlineBox.cpp
958     rendering/RenderText.cpp
959     rendering/RenderFrame.cpp
960     rendering/RenderLineEdit.cpp
961     rendering/FixedTableLayout.cpp
962     rendering/RenderTableCol.cpp
963     rendering/RenderObject.cpp
964     rendering/RenderTreeAsText.cpp
965     rendering/RootInlineBox.cpp
966     rendering/RenderFormElement.cpp
967     rendering/RenderBox.cpp
968     rendering/RenderButton.cpp
969     rendering/RenderTableSection.cpp
970     rendering/ListMarkerBox.cpp
971     rendering/RenderLabel.cpp
972     rendering/RenderTableRow.cpp
973     rendering/RenderInline.cpp
974     rendering/RenderFileButton.cpp
975     rendering/RenderHTMLCanvas.cpp
976     rendering/bidi.cpp
977     rendering/RenderFlexibleBox.cpp
978     rendering/RenderApplet.cpp
979     rendering/RenderLegend.cpp
980     rendering/RenderTextControl.cpp
981     rendering/RenderTextFragment.cpp
982     rendering/RenderBR.cpp
983     rendering/InlineTextBox.cpp
984     rendering/RenderFlow.cpp
985     platform/image-decoders/png/png.c
986     platform/image-decoders/png/pngget.c
987     platform/image-decoders/png/pngread.c
988     platform/image-decoders/png/pngrutil.c
989     platform/image-decoders/png/pngvcrd.c
990     platform/image-decoders/png/pngwtran.c
991     platform/image-decoders/png/pngerror.c
992     platform/image-decoders/png/pngmem.c
993     platform/image-decoders/png/pngrio.c
994     platform/image-decoders/png/pngset.c
995     platform/image-decoders/png/pngwio.c
996     platform/image-decoders/png/pngwutil.c
997     platform/image-decoders/png/pnggccrd.c
998     platform/image-decoders/png/pngpread.c
999     platform/image-decoders/png/pngrtran.c
1000     platform/image-decoders/png/pngtrans.c
1001     platform/image-decoders/png/pngwrite.c
1002     platform/image-decoders/jpeg/jcomapi.c
1003     platform/image-decoders/jpeg/jdapimin.c
1004     platform/image-decoders/jpeg/jdapistd.c
1005     platform/image-decoders/jpeg/jdatadst.c
1006     platform/image-decoders/jpeg/jdatasrc.c
1007     platform/image-decoders/jpeg/jdcoefct.c
1008     platform/image-decoders/jpeg/jdcolor.c
1009     platform/image-decoders/jpeg/jddctmgr.c
1010     platform/image-decoders/jpeg/jdhuff.c
1011     platform/image-decoders/jpeg/jdinput.c
1012     platform/image-decoders/jpeg/jdmainct.c
1013     platform/image-decoders/jpeg/jdmarker.c
1014     platform/image-decoders/jpeg/jdmaster.c
1015     platform/image-decoders/jpeg/jdmerge.c
1016     platform/image-decoders/jpeg/jdphuff.c
1017     platform/image-decoders/jpeg/jdpostct.c
1018     platform/image-decoders/jpeg/jdsample.c
1019     platform/image-decoders/jpeg/jerror.c
1020     platform/image-decoders/jpeg/jfdctflt.c
1021     platform/image-decoders/jpeg/jfdctfst.c
1022     platform/image-decoders/jpeg/jfdctint.c
1023     platform/image-decoders/jpeg/jidctflt.c
1024     platform/image-decoders/jpeg/jidctfst.c
1025     platform/image-decoders/jpeg/jidctint.c
1026     platform/image-decoders/jpeg/jmemmgr.c
1027     platform/image-decoders/jpeg/jmemnobs.c
1028     platform/image-decoders/jpeg/jquant1.c
1029     platform/image-decoders/jpeg/jquant2.c
1030     platform/image-decoders/jpeg/jutils.c
1031
1032     ${WebCore-unity-IDLGeneratedSources}
1033 )
1034
1035 kde4_add_library(WebCore-unity SHARED  ${WebCore_SRCS})
1036
1037 target_link_libraries(WebCore-unity
1038   ${QT_QT3SUPPORT_LIBRARY}
1039   ${QT_QTCORE_LIBRARY}
1040   ${QT_QTSVG_LIBRARY}
1041   ${QT_QTGUI_LIBRARY}
1042   ${LIBXSLT_LIBRARIES}
1043   ${LIBXML2_LIBRARIES}
1044   icuuc
1045   kio
1046   wtf-unity
1047   kjs-unity
1048   pcre-unity
1049 )
1050
1051 install (TARGETS WebCore-unity DESTINATION ${LIB_INSTALL_DIR})