[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.24
[framework/web/webkit-efl.git] / Source / WebCore / PlatformEfl.cmake
1 LIST(APPEND WebCore_LINK_FLAGS
2     ${ECORE_X_LDFLAGS}
3     ${EFLDEPS_LDFLAGS}
4 )
5
6 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
7   "${WTF_DIR}/wtf/gobject"
8   "${WEBCORE_DIR}/accessibility/efl"
9   "${WEBCORE_DIR}/page/efl"
10   "${WEBCORE_DIR}/platform/efl"
11   "${WEBCORE_DIR}/platform/graphics/efl"
12   "${WEBCORE_DIR}/platform/network/soup"
13   "${WEBCORE_DIR}/platform/text/efl"
14   "${WEBCORE_DIR}/plugins/efl"
15   "${WEBKIT_DIR}/efl/WebCoreSupport"
16   "${WEBKIT_DIR}/efl/ewk"
17 )
18
19 LIST(APPEND WebCore_SOURCES
20   accessibility/efl/AccessibilityObjectEfl.cpp
21   bindings/js/ScriptControllerEfl.cpp
22   page/efl/DragControllerEfl.cpp
23   page/efl/EventHandlerEfl.cpp
24   platform/Cursor.cpp
25   platform/RunLoop.cpp
26   platform/efl/BatteryProviderEfl.cpp
27   platform/efl/ClipboardEfl.cpp
28   platform/efl/ColorChooserEfl.cpp
29   platform/efl/ContextMenuEfl.cpp
30   platform/efl/ContextMenuItemEfl.cpp
31   platform/efl/CursorEfl.cpp
32   platform/efl/DragDataEfl.cpp
33   platform/efl/DragImageEfl.cpp
34   platform/efl/EflKeyboardUtilities.cpp
35   platform/efl/EflScreenUtilities.cpp
36   platform/efl/EventLoopEfl.cpp
37   platform/efl/FileSystemEfl.cpp
38   platform/efl/KURLEfl.cpp
39   platform/efl/LanguageEfl.cpp
40   platform/efl/LocalizedStringsEfl.cpp
41   platform/efl/LoggingEfl.cpp
42   platform/efl/MIMETypeRegistryEfl.cpp
43   platform/efl/PasteboardEfl.cpp
44   platform/efl/PlatformKeyboardEventEfl.cpp
45   platform/efl/PlatformMouseEventEfl.cpp
46   platform/efl/PlatformScreenEfl.cpp
47   platform/efl/PlatformTouchEventEfl.cpp
48   platform/efl/PlatformTouchPointEfl.cpp
49   platform/efl/PlatformWheelEventEfl.cpp
50   platform/efl/PopupMenuEfl.cpp
51   platform/efl/RefPtrEfl.cpp
52   platform/efl/RenderThemeEfl.cpp
53   platform/efl/RunLoopEfl.cpp
54   platform/efl/ScrollViewEfl.cpp
55   platform/efl/ScrollbarEfl.cpp
56   platform/efl/ScrollbarThemeEfl.cpp
57   platform/efl/SearchPopupMenuEfl.cpp
58   platform/efl/SharedBufferEfl.cpp
59   platform/efl/SharedTimerEfl.cpp
60   platform/efl/SoundEfl.cpp
61   platform/efl/SystemTimeEfl.cpp
62   platform/efl/TemporaryLinkStubs.cpp
63   platform/efl/WidgetEfl.cpp
64   platform/graphics/ImageSource.cpp
65   platform/graphics/efl/IconEfl.cpp
66   platform/graphics/efl/ImageEfl.cpp
67   platform/graphics/efl/IntPointEfl.cpp
68   platform/graphics/efl/IntRectEfl.cpp
69   platform/image-decoders/ImageDecoder.cpp
70   platform/image-decoders/AsyncImageDecoder.cpp
71   platform/image-decoders/bmp/BMPImageDecoder.cpp
72   platform/image-decoders/bmp/BMPImageReader.cpp
73   platform/image-decoders/gif/GIFImageDecoder.cpp
74   platform/image-decoders/gif/GIFImageReader.cpp
75   platform/image-decoders/ico/ICOImageDecoder.cpp
76   platform/image-decoders/jpeg/JPEGImageDecoder.cpp
77   platform/image-decoders/png/PNGImageDecoder.cpp
78   platform/image-decoders/webp/WEBPImageDecoder.cpp
79   platform/network/soup/CookieJarSoup.cpp
80   platform/network/soup/CredentialStorageSoup.cpp
81   platform/network/soup/DNSSoup.cpp
82   platform/network/soup/GOwnPtrSoup.cpp
83   platform/network/soup/ProxyServerSoup.cpp
84   platform/network/soup/ResourceHandleSoup.cpp
85   platform/network/soup/ResourceRequestSoup.cpp
86   platform/network/soup/ResourceResponseSoup.cpp
87   platform/network/soup/SocketStreamHandleSoup.cpp
88   platform/network/soup/SoupURIUtils.cpp
89   platform/PlatformStrategies.cpp
90   platform/posix/FileSystemPOSIX.cpp
91   platform/text/efl/TextBreakIteratorInternalICUEfl.cpp
92 )
93
94 # For Tizen
95 IF (ENABLE_TIZEN_FILE_SYSTEM)
96   LIST(APPEND WebCore_SOURCES
97     platform/efl/AsyncFileSystemCallbacksEfl.cpp
98     platform/efl/AsyncFileSystemEfl.cpp
99     platform/efl/AsyncFileSystemTaskControllerEfl.cpp
100     platform/efl/AsyncFileWriterClientEfl.cpp
101     platform/efl/AsyncFileWriterEfl.cpp
102   )
103 ENDIF()
104
105 IF (ENABLE_TIZEN_KEYGEN)
106   LIST(APPEND WebCore_LIBRARIES
107     ${SSL_LIBRARIES}
108   )
109   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
110     ${SSL_INCLUDE_DIRS}
111   )
112   LIST(APPEND WebCore_SOURCES
113     platform/efl/SSLKeyGeneratorEfl.cpp
114     platform/efl/SSLPrivateKeyStoreEfl.cpp
115   )
116 ENDIF()
117
118
119 IF (ENABLE_NETSCAPE_PLUGIN_API)
120   LIST(APPEND WebCore_SOURCES
121     plugins/PluginDatabase.cpp
122     plugins/PluginDebug.cpp
123     plugins/PluginPackage.cpp
124     plugins/PluginStream.cpp
125     plugins/PluginView.cpp
126
127     plugins/efl/PluginDataEfl.cpp
128     plugins/efl/PluginPackageEfl.cpp
129     plugins/efl/PluginViewEfl.cpp
130   )
131 ELSE ()
132   LIST(APPEND WebCore_SOURCES
133     plugins/PluginDataNone.cpp
134     plugins/PluginPackageNone.cpp
135     plugins/PluginViewNone.cpp
136   )
137 ENDIF ()
138
139 LIST(APPEND WebCore_USER_AGENT_STYLE_SHEETS
140     ${WEBCORE_DIR}/css/mediaControlsEfl.css
141     ${WEBCORE_DIR}/css/mediaControlsEflFullscreen.css
142 )
143
144 IF (WTF_USE_CAIRO)
145   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
146     "${WEBCORE_DIR}/platform/cairo"
147     "${WEBCORE_DIR}/platform/graphics/cairo"
148   )
149   LIST(APPEND WebCore_SOURCES
150     platform/cairo/WidgetBackingStoreCairo.cpp
151     platform/graphics/cairo/BitmapImageCairo.cpp
152     platform/graphics/cairo/CairoUtilities.cpp
153     platform/graphics/cairo/FontCairo.cpp
154     platform/graphics/cairo/GradientCairo.cpp
155     platform/graphics/cairo/GraphicsContextCairo.cpp
156     platform/graphics/cairo/ImageBufferCairo.cpp
157     platform/graphics/cairo/ImageCairo.cpp
158     platform/graphics/cairo/NativeImageCairo.cpp
159     platform/graphics/cairo/OwnPtrCairo.cpp
160     platform/graphics/cairo/PathCairo.cpp
161     platform/graphics/cairo/PatternCairo.cpp
162     platform/graphics/cairo/PlatformContextCairo.cpp
163     platform/graphics/cairo/PlatformPathCairo.cpp
164     platform/graphics/cairo/RefPtrCairo.cpp
165     platform/graphics/cairo/TransformationMatrixCairo.cpp
166
167     platform/image-decoders/cairo/ImageDecoderCairo.cpp
168   )
169
170   IF (WTF_USE_FREETYPE)
171     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
172       "${WEBCORE_DIR}/platform/graphics/freetype"
173     )
174     LIST(APPEND WebCore_SOURCES
175       platform/graphics/WOFFFileFormat.cpp
176       platform/graphics/efl/FontEfl.cpp
177       platform/graphics/freetype/FontCacheFreeType.cpp
178       platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
179       platform/graphics/freetype/FontPlatformDataFreeType.cpp
180       platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
181       platform/graphics/freetype/SimpleFontDataFreeType.cpp
182     )
183   ENDIF ()
184
185   IF (WTF_USE_PANGO)
186     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
187       "${WEBCORE_DIR}/platform/graphics/pango"
188       ${Pango_INCLUDE_DIRS}
189     )
190     LIST(APPEND WebCore_SOURCES
191       platform/graphics/pango/FontPango.cpp
192       platform/graphics/pango/FontCachePango.cpp
193       platform/graphics/pango/FontCustomPlatformDataPango.cpp
194       platform/graphics/pango/FontPlatformDataPango.cpp
195       platform/graphics/pango/GlyphPageTreeNodePango.cpp
196       platform/graphics/pango/SimpleFontDataPango.cpp
197       platform/graphics/pango/PangoUtilities.cpp
198     )
199     LIST(APPEND WebCore_LIBRARIES
200       ${Pango_LIBRARY}
201       ${Pango_Cairo_LIBRARY}
202     )
203   ENDIF ()
204 ENDIF ()
205 IF (WTF_USE_SKIA)
206   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
207     ${Skia_INCLUDE_DIRS}
208     ${Harfbuzz_INCLUDE_DIRS}
209     "${WEBCORE_DIR}/platform/graphics/skia"
210     "${WEBCORE_DIR}/platform/image-encoders/skia"
211     "${WEBCORE_DIR}/platform/chromium"
212     "${WEBCORE_DIR}/platform/graphics/chromium"
213     "${WEBCORE_DIR}/platform/graphics/gpu"
214     "${WEBCORE_DIR}/platform/graphics/opentype"
215   )
216   LIST(APPEND WebCore_SOURCES
217     platform/graphics/GraphicsContext3D.cpp
218     platform/graphics/chromium/HarfbuzzSkia.cpp
219     platform/graphics/chromium/FontLinux.cpp
220     platform/graphics/chromium/FontCacheLinux.cpp
221     platform/graphics/chromium/SimpleFontDataLinux.cpp
222     platform/graphics/chromium/FontPlatformDataLinux.cpp
223     platform/graphics/chromium/ImageChromium.cpp
224     platform/graphics/chromium/VDMXParser.cpp
225     platform/graphics/chromium/VDMXParser.h
226     platform/graphics/gpu/DrawingBuffer.cpp
227     platform/graphics/gpu/Texture.cpp
228     platform/graphics/gpu/TilingData.cpp
229     platform/graphics/skia/base/message_pump_glib.cc
230     platform/graphics/skia/base/message_pump_libevent.cc
231     platform/graphics/skia/base/message_pump.cc
232     platform/graphics/skia/base/message_pump_default.cc
233     platform/graphics/skia/base/task.cc
234     platform/graphics/skia/base/lazy_instance.cc
235     platform/graphics/skia/base/thread_local_posix.cc
236     platform/graphics/skia/base/non_thread_safe.cc
237     platform/graphics/skia/base/thread_checker.cc
238     platform/graphics/skia/base/tracked.cc
239     platform/graphics/skia/base/weak_ptr.cc
240     platform/graphics/skia/base/tracked_objects.cc
241     platform/graphics/skia/base/thread_local_storage_posix.cc
242     platform/graphics/skia/base/condition_variable_posix.cc
243     platform/graphics/skia/base/message_loop.cc
244     platform/graphics/skia/base/waitable_event_posix.cc
245     platform/graphics/skia/base/file_util_posix.cc
246     platform/graphics/skia/base/debug_util_posix.cc
247     platform/graphics/skia/base/process_util_posix.cc
248     platform/graphics/skia/base/time_posix.cc
249     platform/graphics/skia/base/sys_info_posix.cc
250     platform/graphics/skia/base/at_exit.cc
251     platform/graphics/skia/base/base_switches.cc
252     platform/graphics/skia/base/command_line.cc
253     platform/graphics/skia/base/debug_util.cc
254     platform/graphics/skia/base/file_descriptor_shuffle.cc
255     platform/graphics/skia/base/file_path.cc
256     platform/graphics/skia/base/file_util.cc
257     platform/graphics/skia/base/file_util_linux.cc
258     platform/graphics/skia/base/histogram.cc
259     platform/graphics/skia/base/lock.cc
260     platform/graphics/skia/base/lock_impl_posix.cc
261     platform/graphics/skia/base/logging.cc
262     platform/graphics/skia/base/pickle.cc
263     platform/graphics/skia/base/platform_file_posix.cc
264     platform/graphics/skia/base/platform_thread_posix.cc
265     platform/graphics/skia/base/process_linux.cc
266     platform/graphics/skia/base/process_posix.cc
267     platform/graphics/skia/base/process_util.cc
268     platform/graphics/skia/base/process_util_linux.cc
269     platform/graphics/skia/base/ref_counted.cc
270     platform/graphics/skia/base/safe_strerror_posix.cc
271     platform/graphics/skia/base/setproctitle_linux.c
272     platform/graphics/skia/base/string16.cc
273     platform/graphics/skia/base/string_number_conversions.cc
274     platform/graphics/skia/base/string_piece.cc
275     platform/graphics/skia/base/string_split.cc
276     platform/graphics/skia/base/string_util.cc
277     platform/graphics/skia/base/stringprintf.cc
278     platform/graphics/skia/base/sys_info_linux.cc
279     platform/graphics/skia/base/sys_string_conversions_linux.cc
280     platform/graphics/skia/base/thread_collision_warner.cc
281     platform/graphics/skia/base/time.cc
282     platform/graphics/skia/base/unix_domain_socket_posix.cc
283     platform/graphics/skia/base/utf_string_conversion_utils.cc
284     platform/graphics/skia/base/utf_string_conversions.cc
285     platform/graphics/skia/base/vlog.cc
286     platform/graphics/skia/base/third_party/dmg_fp/dtoa.cc
287     platform/graphics/skia/base/third_party/dmg_fp/g_fmt.cc
288     platform/graphics/skia/base/third_party/dynamic_annotations/dynamic_annotations.c
289     platform/graphics/skia/base/third_party/icu/icu_utf.cc
290     platform/graphics/skia/base/third_party/nspr/prtime.cc
291     platform/graphics/skia/ext/SkFontHost_fontconfig.cpp
292     platform/graphics/skia/ext/SkFontHost_fontconfig_direct.cpp
293     platform/graphics/skia/ext/SkMemory_new_handler.cpp
294     platform/graphics/skia/ext/SkThread_chrome.cc
295     platform/graphics/skia/ext/SkTypeface_fake.cpp
296     platform/graphics/skia/ext/bitmap_platform_device.cc
297     platform/graphics/skia/ext/bitmap_platform_device_linux.cc
298     platform/graphics/skia/ext/convolver.cc
299     platform/graphics/skia/ext/google_logging.cc
300     platform/graphics/skia/ext/image_operations.cc
301     platform/graphics/skia/ext/platform_canvas.cc
302     platform/graphics/skia/ext/platform_canvas_linux.cc
303     platform/graphics/skia/ext/platform_device_linux.cc
304     platform/graphics/skia/ext/vector_canvas.cc
305     platform/graphics/skia/ext/vector_canvas_linux.cc
306     platform/graphics/skia/ext/vector_platform_device_linux.cc
307     platform/graphics/skia/FontCustomPlatformData.cpp
308     platform/graphics/skia/FloatPointSkia.cpp
309     platform/graphics/skia/FloatRectSkia.cpp
310     platform/graphics/skia/GradientSkia.cpp
311     platform/graphics/skia/GraphicsContext3DSkia.cpp
312     platform/graphics/skia/GraphicsContextSkia.cpp
313     platform/graphics/skia/GlyphPageTreeNodeSkia.cpp
314     platform/graphics/skia/ImageBufferSkia.cpp
315     platform/graphics/skia/ImageSkia.cpp
316     platform/graphics/skia/IntPointSkia.cpp
317     platform/graphics/skia/IntRectSkia.cpp
318     platform/graphics/skia/NativeImageSkia.cpp
319     platform/graphics/skia/PathSkia.cpp
320     platform/graphics/skia/PatternSkia.cpp
321     platform/graphics/skia/PlatformContextSkia.cpp
322     platform/graphics/skia/SkiaUtils.cpp
323     platform/graphics/skia/TransformationMatrixSkia.cpp
324     platform/graphics/chromium/ComplexTextControllerLinux.cpp
325     platform/image-encoders/skia/JPEGImageEncoder.cpp
326     platform/image-encoders/skia/PNGImageEncoder.cpp
327     platform/image-decoders/skia/ImageDecoderSkia.cpp
328   )
329     LIST(APPEND WebCore_LIBRARIES
330       ${Skia_LIBRARIES}
331       ${Harfbuzz_LIBRARIES}
332     )
333   IF (WTF_USE_FREETYPE)
334     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
335       "${WEBCORE_DIR}/platform/graphics/freetype"
336     )
337     LIST(APPEND WebCore_SOURCES
338       platform/graphics/WOFFFileFormat.cpp
339     )
340   ENDIF ()
341   IF (WTF_USE_PANGO)
342     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
343       "${WEBCORE_DIR}/platform/graphics/pango"
344       ${Pango_INCLUDE_DIRS}
345     )
346     LIST(APPEND WebCore_SOURCES
347       platform/graphics/pango/FontPango.cpp
348       platform/graphics/pango/FontCachePango.cpp
349       platform/graphics/pango/FontCustomPlatformDataPango.cpp
350       platform/graphics/pango/FontPlatformDataPango.cpp
351       platform/graphics/pango/GlyphPageTreeNodePango.cpp
352       platform/graphics/pango/SimpleFontDataPango.cpp
353       platform/graphics/pango/PangoUtilities.cpp
354     )
355     LIST(APPEND WebCore_LIBRARIES
356       ${Pango_LIBRARY}
357       ${Pango_Cairo_LIBRARY}
358     )
359   ENDIF ()
360 ENDIF ()
361
362 IF (WTF_USE_ICU_UNICODE)
363   LIST(APPEND WebCore_SOURCES
364     editing/SmartReplaceICU.cpp
365     platform/text/TextEncodingDetectorICU.cpp
366     platform/text/TextBreakIteratorICU.cpp
367     platform/text/TextCodecICU.cpp
368   )
369 ENDIF ()
370
371 LIST(APPEND WebCore_LIBRARIES
372   ${CAIRO_LIBRARIES}
373   ${ECORE_X_LIBRARIES}
374   ${EFLDEPS_LIBRARIES}
375   ${EVAS_LIBRARIES}
376   ${FREETYPE_LIBRARIES}
377   ${ICU_LIBRARIES}
378   ${JPEG_LIBRARY}
379   ${LIBXML2_LIBRARIES}
380   ${LIBXSLT_LIBRARIES}
381   ${PNG_LIBRARY}
382   ${SQLITE_LIBRARIES}
383   ${Glib_LIBRARIES}
384   ${LIBSOUP24_LIBRARIES}
385   ${ZLIB_LIBRARIES}
386 )
387
388 IF (WTF_USE_CURL)
389   LIST(APPEND WebCore_LIBRARIES
390     ${CURL_LIBRARIES}
391   )
392 ENDIF ()
393
394 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
395   ${CAIRO_INCLUDE_DIRS}
396   ${ECORE_X_INCLUDE_DIRS}
397   ${EFLDEPS_INCLUDE_DIRS}
398   ${EVAS_INCLUDE_DIRS}
399   ${FREETYPE_INCLUDE_DIRS}
400   ${ICU_INCLUDE_DIRS}
401   ${LIBXML2_INCLUDE_DIR}
402   ${LIBXSLT_INCLUDE_DIR}
403   ${SQLITE_INCLUDE_DIR}
404   ${Glib_INCLUDE_DIRS}
405   ${LIBSOUP24_INCLUDE_DIRS}
406   ${ZLIB_INCLUDE_DIRS}
407 )
408
409 IF (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
410   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
411     "${WEBCORE_DIR}/platform/graphics/gstreamer"
412
413     ${GSTREAMER_INCLUDE_DIRS}
414     ${GSTREAMER_BASE_INCLUDE_DIRS}
415     ${GSTREAMER_APP_INCLUDE_DIRS}
416     ${GSTREAMER_INTERFACES_INCLUDE_DIRS}
417     ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
418   )
419   LIST(APPEND WebCore_SOURCES
420     platform/graphics/gstreamer/GRefPtrGStreamer.cpp
421     platform/graphics/gstreamer/GStreamerUtilities.cpp
422     platform/graphics/gstreamer/GStreamerVersioning.cpp
423   )
424   LIST(APPEND WebCore_LIBRARIES
425     ${GSTREAMER_LIBRARIES}
426     ${GSTREAMER_BASE_LIBRARIES}
427     ${GSTREAMER_APP_LIBRARIES}
428     ${GSTREAMER_INTERFACES_LIBRARIES}
429     ${GSTREAMER_PBUTILS_LIBRARIES}
430   )
431 ENDIF ()
432
433 IF (ENABLE_VIDEO)
434   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
435     ${GSTREAMER_VIDEO_INCLUDE_DIRS}
436   )
437   LIST(APPEND WebCore_SOURCES
438     platform/graphics/gstreamer/GStreamerGWorld.cpp
439     platform/graphics/gstreamer/ImageGStreamerCairo.cpp
440     platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
441     platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp
442     platform/graphics/gstreamer/URIUtils.cpp
443     platform/graphics/gstreamer/VideoSinkGStreamer.cpp
444     platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
445   )
446   LIST(APPEND WebCore_LIBRARIES
447     ${GSTREAMER_VIDEO_LIBRARIES}
448   )
449 ENDIF ()
450
451 # For Tizen
452 IF (WTF_USE_ACCELERATED_COMPOSITING)
453   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
454         "${WEBCORE_DIR}/platform/graphics/gpu"
455   )
456   IF (WTF_USE_TEXTURE_MAPPER)
457     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
458       "${WEBCORE_DIR}/platform/graphics/texmap"
459       "${WEBCORE_DIR}/platform/graphics/opengl"
460     )
461     IF (ENABLE_WEBKIT2)
462       LIST(APPEND WebCore_SOURCES
463         platform/graphics/efl/GraphicsContext3DOffscreen.cpp
464         platform/graphics/efl/SharedPixmapEfl.cpp
465         platform/graphics/efl/TextureMapperPlatformLayerEfl.cpp
466         platform/graphics/efl/LayerCanvasContents.cpp
467       )
468     ELSE ()
469       LIST(APPEND WebCore_SOURCES
470         platform/graphics/efl/AcceleratedCompositor.cpp
471         platform/graphics/efl/GraphicsContext3DOffscreen.cpp
472         platform/graphics/efl/GraphicsContext3DOnscreen.cpp
473         platform/graphics/efl/TextureMapperEvasGL.cpp
474       )
475     ENDIF ()
476   ELSE ()
477     LIST(APPEND WebCore_SOURCES
478       platform/graphics/efl/AcceleratedCompositingInspector.cpp
479       platform/graphics/efl/AcceleratedCompositor.cpp
480       platform/graphics/efl/EflLayer.cpp
481       platform/graphics/efl/EflNontiledLayer.cpp
482       platform/graphics/efl/EflTiledLayer.cpp
483       platform/graphics/efl/GraphicsContext3DOffscreen.cpp
484       platform/graphics/efl/GraphicsContext3DOnscreen.cpp
485       platform/graphics/efl/GraphicsLayerRenderer.cpp
486       platform/graphics/efl/GraphicsLayerTexture.cpp
487       platform/graphics/efl/LayerBorderShader.cpp
488       platform/graphics/efl/LayerContents.cpp
489       platform/graphics/efl/LayerCanvasShader.cpp
490       platform/graphics/efl/LayerHTMLContents.cpp
491       platform/graphics/efl/LayerImageContents.cpp
492       platform/graphics/efl/LayerCanvasContents.cpp
493       platform/graphics/efl/LayerPluginContents.cpp
494       platform/graphics/efl/LayerManager.cpp
495       platform/graphics/efl/LayerQuadManager.cpp
496       platform/graphics/efl/LayerShader.cpp
497       platform/graphics/efl/LayerShaderManager.cpp
498       platform/graphics/efl/LayerMaskShader.cpp
499       platform/graphics/efl/LayerTexShader.cpp
500       platform/graphics/efl/LayerTextureManager.cpp
501       platform/graphics/efl/LayerTextureManagerImpl.cpp
502       platform/graphics/efl/LayerTextureManagerSEC.cpp
503       platform/graphics/efl/LayerTransformation.cpp
504       platform/graphics/efl/LayerVideoContents.cpp
505       platform/graphics/efl/LayerVideoShader.cpp
506       platform/graphics/efl/LayerWebGLContents.cpp
507     )
508   ENDIF()
509   LIST(APPEND WebCore_SOURCES
510     platform/graphics/GraphicsContext3D.cpp
511     platform/graphics/efl/Extensions3DEfl.cpp
512     platform/graphics/efl/TizenGraphicsContext3DEfl.cpp
513     platform/graphics/efl/GraphicsContext3DInternal.cpp
514     platform/graphics/gpu/DrawingBuffer.cpp
515     platform/graphics/gpu/efl/DrawingBufferEfl.cpp
516   )
517 ENDIF()
518
519 # For Tizen
520 IF (ENABLE_TIZEN_DBSPACE_PATH)
521   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
522     ${CAPI_INCLUDE_DIRS}
523   )
524   LIST(APPEND WebCore_LIBRARIES
525     ${CAPI_LIBRARIES}
526   )
527 ENDIF()
528
529 LIST(APPEND WebCore_LIBRARIES
530   ${GLES_LIBRARIES}
531 )
532
533 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
534   ${GLES_INCLUDE_DIRS}
535 )
536
537 IF (ENABLE_WEBGL)
538   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
539     ${OPENGL_INCLUDE_DIR}
540     "${WEBCORE_DIR}/platform/graphics/cairo"
541     "${WEBCORE_DIR}/platform/graphics/glx"
542     "${WEBCORE_DIR}/platform/graphics/opengl"
543   )
544   LIST(APPEND WebCore_LIBRARIES
545     ${OPENGL_gl_LIBRARY}
546   )
547   LIST(APPEND WebCore_SOURCES
548 #    platform/graphics/cairo/DrawingBufferCairo.cpp
549 #    platform/graphics/cairo/GraphicsContext3DCairo.cpp
550 #    platform/graphics/glx/GraphicsContext3DPrivate.cpp
551 #    platform/graphics/OpenGLShims.cpp
552 #    platform/graphics/opengl/Extensions3DOpenGL.cpp
553 #    platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
554 #    platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
555   )
556 ENDIF ()
557
558 #ADD_DEFINITIONS(-DWTF_USE_CROSS_PLATFORM_CONTEXT_MENUS=1
559 ADD_DEFINITIONS(-DWTF_USE_CROSS_PLATFORM_CONTEXT_MENUS=0
560                 -DDATA_DIR="${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}")
561
562 IF (WTF_USE_CURL)
563   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
564     ${CURL_INCLUDE_DIRS}
565   )
566 ENDIF ()
567
568 #ADD_DEFINITIONS(-DWTF_USE_CROSS_PLATFORM_CONTEXT_MENUS=0)
569
570 IF (ENABLE_TIZEN_SUPPORT)
571     INCLUDE_IF_EXISTS(${WEBCORE_DIR}/PlatformTizen.cmake)
572 ENDIF ()
573
574 IF (ENABLE_WEB_AUDIO)
575   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
576     "${WEBCORE_DIR}/platform/audio/gstreamer"
577
578     ${GSTREAMER_AUDIO_INCLUDE_DIRS}
579     ${GSTREAMER_FFT_INCLUDE_DIRS}
580   )
581   LIST(APPEND WebCore_SOURCES
582     platform/audio/efl/AudioBusEfl.cpp
583     platform/audio/gstreamer/AudioDestinationGStreamer.cpp
584     platform/audio/gstreamer/AudioFileReaderGStreamer.cpp
585     platform/audio/gstreamer/FFTFrameGStreamer.cpp
586     platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp
587   )
588   LIST(APPEND WebCore_LIBRARIES
589     ${GSTREAMER_AUDIO_LIBRARIES}
590     ${GSTREAMER_FFT_LIBRARIES}
591   )
592   SET(WEB_AUDIO_DIR ${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/webaudio/resources)
593   FILE(GLOB WEB_AUDIO_DATA "${WEBCORE_DIR}/platform/audio/resources/*.wav")
594   INSTALL(FILES ${WEB_AUDIO_DATA} DESTINATION ${WEB_AUDIO_DIR})
595   ADD_DEFINITIONS(-DUNINSTALLED_AUDIO_RESOURCES_DIR="${WEBCORE_DIR}/platform/audio/resources")
596 ENDIF ()
597