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