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