Support external keyboard function (SelectAll, Cut, Copy, Paste)
[framework/web/webkit-efl.git] / Source / WebCore / PlatformEfl.cmake
1 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
2   "${WTF_DIR}/wtf/gobject"
3   "${WEBCORE_DIR}/accessibility/efl"
4   "${WEBCORE_DIR}/page/efl"
5   "${WEBCORE_DIR}/platform/efl"
6   "${WEBCORE_DIR}/platform/graphics/efl"
7   "${WEBCORE_DIR}/platform/graphics/surfaces"
8   "${WEBCORE_DIR}/platform/linux"
9   "${WEBCORE_DIR}/platform/mediastream/gstreamer"
10   "${WEBCORE_DIR}/platform/network/soup"
11   "${WEBCORE_DIR}/platform/text/efl"
12   "${WEBCORE_DIR}/plugins/efl"
13   "${WEBKIT_DIR}/efl/WebCoreSupport"
14   "${WEBKIT_DIR}/efl/ewk"
15 )
16
17 LIST(APPEND WebCore_SOURCES
18   accessibility/efl/AccessibilityObjectEfl.cpp
19
20   bindings/js/ScriptControllerEfl.cpp
21
22   page/efl/DragControllerEfl.cpp
23   page/efl/EventHandlerEfl.cpp
24
25   platform/Cursor.cpp
26
27   platform/audio/efl/AudioBusEfl.cpp
28   platform/audio/gstreamer/AudioDestinationGStreamer.cpp
29   platform/audio/gstreamer/AudioFileReaderGStreamer.cpp
30   platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp
31
32   platform/efl/BatteryProviderEfl.cpp
33   platform/efl/ClipboardEfl.cpp
34   platform/efl/ColorChooserEfl.cpp
35   platform/efl/ContextMenuEfl.cpp
36   platform/efl/ContextMenuItemEfl.cpp
37   platform/efl/CursorEfl.cpp
38   platform/efl/DragDataEfl.cpp
39   platform/efl/DragImageEfl.cpp
40   platform/efl/EflKeyboardUtilities.cpp
41   platform/efl/EflScreenUtilities.cpp
42   platform/efl/ErrorsEfl.cpp
43   platform/efl/EventLoopEfl.cpp
44   platform/efl/FileSystemEfl.cpp
45   platform/efl/GamepadsEfl.cpp
46   platform/efl/KURLEfl.cpp
47   platform/efl/LanguageEfl.cpp
48   platform/efl/LocalizedStringsEfl.cpp
49   platform/efl/LoggingEfl.cpp
50   platform/efl/MIMETypeRegistryEfl.cpp
51   platform/efl/NetworkInfoProviderEfl.cpp
52   platform/efl/PasteboardEfl.cpp
53   platform/efl/PlatformKeyboardEventEfl.cpp
54   platform/efl/PlatformMouseEventEfl.cpp
55   platform/efl/PlatformScreenEfl.cpp
56   platform/efl/PlatformWheelEventEfl.cpp
57   platform/efl/RefPtrEfl.cpp
58   platform/efl/RenderThemeEfl.cpp
59   platform/efl/RunLoopEfl.cpp
60   platform/efl/ScrollViewEfl.cpp
61   platform/efl/ScrollbarEfl.cpp
62   platform/efl/ScrollbarThemeEfl.cpp
63   platform/efl/SharedBufferEfl.cpp
64   platform/efl/SharedTimerEfl.cpp
65   platform/efl/SoundEfl.cpp
66   platform/efl/SystemTimeEfl.cpp
67   platform/efl/TemporaryLinkStubs.cpp
68   platform/efl/WidgetEfl.cpp
69
70   platform/graphics/ImageSource.cpp
71   platform/graphics/efl/CairoUtilitiesEfl.cpp
72   platform/graphics/efl/IconEfl.cpp
73   platform/graphics/efl/ImageEfl.cpp
74   platform/graphics/efl/IntPointEfl.cpp
75   platform/graphics/efl/IntRectEfl.cpp
76
77   platform/image-decoders/ImageDecoder.cpp
78   platform/image-decoders/AsyncImageDecoder.cpp
79   platform/image-decoders/bmp/BMPImageDecoder.cpp
80   platform/image-decoders/bmp/BMPImageReader.cpp
81   platform/image-decoders/gif/GIFImageDecoder.cpp
82   platform/image-decoders/gif/GIFImageReader.cpp
83   platform/image-decoders/ico/ICOImageDecoder.cpp
84   platform/image-decoders/jpeg/JPEGImageDecoder.cpp
85   platform/image-decoders/png/PNGImageDecoder.cpp
86   platform/image-decoders/webp/WEBPImageDecoder.cpp
87
88   platform/linux/GamepadDeviceLinux.cpp
89
90   platform/mediastream/gstreamer/MediaStreamCenterGStreamer.cpp
91
92   platform/network/soup/CookieJarSoup.cpp
93   platform/network/soup/CookieStorageSoup.cpp
94   platform/network/soup/CredentialStorageSoup.cpp
95   platform/network/soup/DNSSoup.cpp
96   platform/network/soup/GOwnPtrSoup.cpp
97   platform/network/soup/ProxyResolverSoup.cpp
98   platform/network/soup/ProxyServerSoup.cpp
99   platform/network/soup/ResourceHandleSoup.cpp
100   platform/network/soup/ResourceRequestSoup.cpp
101   platform/network/soup/ResourceResponseSoup.cpp
102   platform/network/soup/SocketStreamHandleSoup.cpp
103   platform/network/soup/SoupURIUtils.cpp
104
105   platform/PlatformStrategies.cpp
106
107   platform/posix/FileSystemPOSIX.cpp
108
109   platform/text/efl/TextBreakIteratorInternalICUEfl.cpp
110   platform/text/enchant/TextCheckerEnchant.cpp
111 )
112
113 IF (ENABLE_NETSCAPE_PLUGIN_API)
114   LIST(APPEND WebCore_SOURCES
115     plugins/PluginDatabase.cpp
116     plugins/PluginDebug.cpp
117     plugins/PluginPackage.cpp
118     plugins/PluginStream.cpp
119     plugins/PluginView.cpp
120
121     plugins/efl/PluginPackageEfl.cpp
122     plugins/efl/PluginViewEfl.cpp
123   )
124 ELSE ()
125   LIST(APPEND WebCore_SOURCES
126     plugins/PluginPackageNone.cpp
127     plugins/PluginViewNone.cpp
128   )
129 ENDIF ()
130
131 LIST(APPEND WebCore_USER_AGENT_STYLE_SHEETS
132     ${WEBCORE_DIR}/css/mediaControlsEfl.css
133     ${WEBCORE_DIR}/css/mediaControlsEflFullscreen.css
134 )
135
136 IF (WTF_USE_CAIRO)
137   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
138     "${WEBCORE_DIR}/platform/cairo"
139     "${WEBCORE_DIR}/platform/graphics/cairo"
140     "${WEBCORE_DIR}/platform/graphics/surfaces"
141
142   )
143   LIST(APPEND WebCore_SOURCES
144     platform/cairo/WidgetBackingStoreCairo.cpp
145     platform/graphics/cairo/BitmapImageCairo.cpp
146     platform/graphics/cairo/CairoUtilities.cpp
147     platform/graphics/cairo/FontCairo.cpp
148     platform/graphics/cairo/GradientCairo.cpp
149     platform/graphics/cairo/GraphicsContextCairo.cpp
150     platform/graphics/cairo/ImageBufferCairo.cpp
151     platform/graphics/cairo/ImageCairo.cpp
152     platform/graphics/cairo/IntRectCairo.cpp
153     platform/graphics/cairo/NativeImageCairo.cpp
154     platform/graphics/cairo/OwnPtrCairo.cpp
155     platform/graphics/cairo/PathCairo.cpp
156     platform/graphics/cairo/PatternCairo.cpp
157     platform/graphics/cairo/PlatformContextCairo.cpp
158     platform/graphics/cairo/PlatformPathCairo.cpp
159     platform/graphics/cairo/RefPtrCairo.cpp
160     platform/graphics/cairo/TileCairo.cpp
161     platform/graphics/cairo/TiledBackingStoreBackendCairo.cpp
162     platform/graphics/cairo/TransformationMatrixCairo.cpp
163
164     platform/image-decoders/cairo/ImageDecoderCairo.cpp
165   )
166
167   IF (WTF_USE_FREETYPE)
168     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
169       "${WEBCORE_DIR}/platform/graphics/freetype"
170       "${WEBCORE_DIR}/platform/graphics/harfbuzz/"
171       "${WEBCORE_DIR}/platform/graphics/harfbuzz/ng"
172       ${HARFBUZZ_INCLUDE_DIRS}
173     )
174     LIST(APPEND WebCore_SOURCES
175       platform/graphics/WOFFFileFormat.cpp
176       platform/graphics/cairo/FontCairoHarfbuzzNG.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       platform/graphics/harfbuzz/HarfBuzzShaperBase.cpp
183       platform/graphics/harfbuzz/ng/HarfBuzzNGFace.cpp
184       platform/graphics/harfbuzz/ng/HarfBuzzNGFaceCairo.cpp
185       platform/graphics/harfbuzz/ng/HarfBuzzShaper.cpp
186     )
187     LIST(APPEND WebCore_LIBRARIES
188       ${HARFBUZZ_LIBRARIES}
189     )
190   ENDIF ()
191
192   IF (WTF_USE_PANGO)
193     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
194       "${WEBCORE_DIR}/platform/graphics/pango"
195       ${Pango_INCLUDE_DIRS}
196     )
197     LIST(APPEND WebCore_SOURCES
198       platform/graphics/pango/FontPango.cpp
199       platform/graphics/pango/FontCachePango.cpp
200       platform/graphics/pango/FontCustomPlatformDataPango.cpp
201       platform/graphics/pango/FontPlatformDataPango.cpp
202       platform/graphics/pango/GlyphPageTreeNodePango.cpp
203       platform/graphics/pango/SimpleFontDataPango.cpp
204       platform/graphics/pango/PangoUtilities.cpp
205     )
206     LIST(APPEND WebCore_LIBRARIES
207       ${Pango_LIBRARY}
208       ${Pango_Cairo_LIBRARY}
209     )
210   ENDIF ()
211 ENDIF ()
212
213 IF (WTF_USE_SKIA)
214   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
215     ${Skia_INCLUDE_DIRS}
216     ${Harfbuzz_INCLUDE_DIRS}
217     "${WEBCORE_DIR}/platform/graphics/skia"
218     "${WEBCORE_DIR}/platform/image-encoders/skia"
219     "${WEBCORE_DIR}/platform/chromium"
220     "${WEBCORE_DIR}/platform/graphics/chromium"
221     "${WEBCORE_DIR}/platform/graphics/gpu"
222     "${WEBCORE_DIR}/platform/graphics/opentype"
223   )
224   LIST(APPEND WebCore_SOURCES
225     platform/graphics/GraphicsContext3D.cpp
226     platform/graphics/chromium/HarfbuzzSkia.cpp
227     platform/graphics/chromium/FontLinux.cpp
228     platform/graphics/chromium/FontCacheLinux.cpp
229     platform/graphics/chromium/SimpleFontDataLinux.cpp
230     platform/graphics/chromium/FontPlatformDataLinux.cpp
231     platform/graphics/chromium/ImageChromium.cpp
232     platform/graphics/chromium/VDMXParser.cpp
233     platform/graphics/chromium/VDMXParser.h
234     platform/graphics/gpu/DrawingBuffer.cpp
235     platform/graphics/gpu/Texture.cpp
236     platform/graphics/gpu/TilingData.cpp
237     platform/graphics/skia/base/message_pump_glib.cc
238     platform/graphics/skia/base/message_pump_libevent.cc
239     platform/graphics/skia/base/message_pump.cc
240     platform/graphics/skia/base/message_pump_default.cc
241     platform/graphics/skia/base/task.cc
242     platform/graphics/skia/base/lazy_instance.cc
243     platform/graphics/skia/base/thread_local_posix.cc
244     platform/graphics/skia/base/non_thread_safe.cc
245     platform/graphics/skia/base/thread_checker.cc
246     platform/graphics/skia/base/tracked.cc
247     platform/graphics/skia/base/weak_ptr.cc
248     platform/graphics/skia/base/tracked_objects.cc
249     platform/graphics/skia/base/thread_local_storage_posix.cc
250     platform/graphics/skia/base/condition_variable_posix.cc
251     platform/graphics/skia/base/message_loop.cc
252     platform/graphics/skia/base/waitable_event_posix.cc
253     platform/graphics/skia/base/file_util_posix.cc
254     platform/graphics/skia/base/debug_util_posix.cc
255     platform/graphics/skia/base/process_util_posix.cc
256     platform/graphics/skia/base/time_posix.cc
257     platform/graphics/skia/base/sys_info_posix.cc
258     platform/graphics/skia/base/at_exit.cc
259     platform/graphics/skia/base/base_switches.cc
260     platform/graphics/skia/base/command_line.cc
261     platform/graphics/skia/base/debug_util.cc
262     platform/graphics/skia/base/file_descriptor_shuffle.cc
263     platform/graphics/skia/base/file_path.cc
264     platform/graphics/skia/base/file_util.cc
265     platform/graphics/skia/base/file_util_linux.cc
266     platform/graphics/skia/base/histogram.cc
267     platform/graphics/skia/base/lock.cc
268     platform/graphics/skia/base/lock_impl_posix.cc
269     platform/graphics/skia/base/logging.cc
270     platform/graphics/skia/base/pickle.cc
271     platform/graphics/skia/base/platform_file_posix.cc
272     platform/graphics/skia/base/platform_thread_posix.cc
273     platform/graphics/skia/base/process_linux.cc
274     platform/graphics/skia/base/process_posix.cc
275     platform/graphics/skia/base/process_util.cc
276     platform/graphics/skia/base/process_util_linux.cc
277     platform/graphics/skia/base/ref_counted.cc
278     platform/graphics/skia/base/safe_strerror_posix.cc
279     platform/graphics/skia/base/setproctitle_linux.c
280     platform/graphics/skia/base/string16.cc
281     platform/graphics/skia/base/string_number_conversions.cc
282     platform/graphics/skia/base/string_piece.cc
283     platform/graphics/skia/base/string_split.cc
284     platform/graphics/skia/base/string_util.cc
285     platform/graphics/skia/base/stringprintf.cc
286     platform/graphics/skia/base/sys_info_linux.cc
287     platform/graphics/skia/base/sys_string_conversions_linux.cc
288     platform/graphics/skia/base/thread_collision_warner.cc
289     platform/graphics/skia/base/time.cc
290     platform/graphics/skia/base/unix_domain_socket_posix.cc
291     platform/graphics/skia/base/utf_string_conversion_utils.cc
292     platform/graphics/skia/base/utf_string_conversions.cc
293     platform/graphics/skia/base/vlog.cc
294     platform/graphics/skia/base/third_party/dmg_fp/dtoa.cc
295     platform/graphics/skia/base/third_party/dmg_fp/g_fmt.cc
296     platform/graphics/skia/base/third_party/dynamic_annotations/dynamic_annotations.c
297     platform/graphics/skia/base/third_party/icu/icu_utf.cc
298     platform/graphics/skia/base/third_party/nspr/prtime.cc
299     platform/graphics/skia/ext/SkFontHost_fontconfig.cpp
300     platform/graphics/skia/ext/SkFontHost_fontconfig_direct.cpp
301     platform/graphics/skia/ext/SkMemory_new_handler.cpp
302     platform/graphics/skia/ext/SkThread_chrome.cc
303     platform/graphics/skia/ext/SkTypeface_fake.cpp
304     platform/graphics/skia/ext/bitmap_platform_device.cc
305     platform/graphics/skia/ext/bitmap_platform_device_linux.cc
306     platform/graphics/skia/ext/convolver.cc
307     platform/graphics/skia/ext/google_logging.cc
308     platform/graphics/skia/ext/image_operations.cc
309     platform/graphics/skia/ext/platform_canvas.cc
310     platform/graphics/skia/ext/platform_canvas_linux.cc
311     platform/graphics/skia/ext/platform_device_linux.cc
312     platform/graphics/skia/ext/vector_canvas.cc
313     platform/graphics/skia/ext/vector_canvas_linux.cc
314     platform/graphics/skia/ext/vector_platform_device_linux.cc
315     platform/graphics/skia/FontCustomPlatformData.cpp
316     platform/graphics/skia/FloatPointSkia.cpp
317     platform/graphics/skia/FloatRectSkia.cpp
318     platform/graphics/skia/GradientSkia.cpp
319     platform/graphics/skia/GraphicsContext3DSkia.cpp
320     platform/graphics/skia/GraphicsContextSkia.cpp
321     platform/graphics/skia/GlyphPageTreeNodeSkia.cpp
322     platform/graphics/skia/ImageBufferSkia.cpp
323     platform/graphics/skia/ImageSkia.cpp
324     platform/graphics/skia/IntPointSkia.cpp
325     platform/graphics/skia/IntRectSkia.cpp
326     platform/graphics/skia/NativeImageSkia.cpp
327     platform/graphics/skia/PathSkia.cpp
328     platform/graphics/skia/PatternSkia.cpp
329     platform/graphics/skia/PlatformContextSkia.cpp
330     platform/graphics/skia/SkiaUtils.cpp
331     platform/graphics/skia/TransformationMatrixSkia.cpp
332     platform/graphics/chromium/ComplexTextControllerLinux.cpp
333     platform/image-encoders/skia/JPEGImageEncoder.cpp
334     platform/image-encoders/skia/PNGImageEncoder.cpp
335     platform/image-decoders/skia/ImageDecoderSkia.cpp
336   )
337     LIST(APPEND WebCore_LIBRARIES
338       ${Skia_LIBRARIES}
339       ${Harfbuzz_LIBRARIES}
340     )
341   IF (WTF_USE_FREETYPE)
342     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
343       "${WEBCORE_DIR}/platform/graphics/freetype"
344     )
345     LIST(APPEND WebCore_SOURCES
346       platform/graphics/WOFFFileFormat.cpp
347     )
348   ENDIF ()
349   IF (WTF_USE_PANGO)
350     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
351       "${WEBCORE_DIR}/platform/graphics/pango"
352       ${Pango_INCLUDE_DIRS}
353     )
354     LIST(APPEND WebCore_SOURCES
355       platform/graphics/pango/FontPango.cpp
356       platform/graphics/pango/FontCachePango.cpp
357       platform/graphics/pango/FontCustomPlatformDataPango.cpp
358       platform/graphics/pango/FontPlatformDataPango.cpp
359       platform/graphics/pango/GlyphPageTreeNodePango.cpp
360       platform/graphics/pango/SimpleFontDataPango.cpp
361       platform/graphics/pango/PangoUtilities.cpp
362     )
363     LIST(APPEND WebCore_LIBRARIES
364       ${Pango_LIBRARY}
365       ${Pango_Cairo_LIBRARY}
366     )
367   ENDIF ()
368 ENDIF ()
369
370 IF (WTF_USE_ICU_UNICODE)
371   LIST(APPEND WebCore_SOURCES
372     editing/SmartReplaceICU.cpp
373     platform/text/TextEncodingDetectorICU.cpp
374     platform/text/TextBreakIteratorICU.cpp
375     platform/text/TextCodecICU.cpp
376   )
377 ENDIF ()
378
379 LIST(APPEND WebCore_LIBRARIES
380   ${CAIRO_LIBRARIES}
381   ${ECORE_LIBRARIES}
382   ${ECORE_EVAS_LIBRARIES}
383   ${ECORE_FILE_LIBRARIES}
384   ${ECORE_X_LIBRARIES}
385   ${E_DBUS_LIBRARIES}
386   ${E_DBUS_EUKIT_LIBRARIES}
387   ${EDJE_LIBRARIES}
388   ${EEZE_LIBRARIES}
389   ${EINA_LIBRARIES}
390   ${EVAS_LIBRARIES}
391   ${FONTCONFIG_LIBRARIES}
392   ${FREETYPE_LIBRARIES}
393   ${ICU_LIBRARIES}
394   ${JPEG_LIBRARY}
395   ${LIBXML2_LIBRARIES}
396   ${LIBXSLT_LIBRARIES}
397   ${PNG_LIBRARY}
398   ${SQLITE_LIBRARIES}
399   ${GLIB_LIBRARIES}
400   ${GLIB_GIO_LIBRARIES}
401   ${GLIB_GOBJECT_LIBRARIES}
402   ${LIBSOUP_LIBRARIES}
403   ${ZLIB_LIBRARIES}
404 )
405
406 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
407   ${CAIRO_INCLUDE_DIRS}
408   ${ECORE_INCLUDE_DIRS}
409   ${ECORE_EVAS_INCLUDE_DIRS}
410   ${ECORE_FILE_INCLUDE_DIRS}
411   ${ECORE_X_INCLUDE_DIRS}
412   ${E_DBUS_INCLUDE_DIRS}
413   ${E_DBUS_EUKIT_INCLUDE_DIRS}
414   ${EDJE_INCLUDE_DIRS}
415   ${EEZE_INCLUDE_DIRS}
416   ${EINA_INCLUDE_DIRS}
417   ${EVAS_INCLUDE_DIRS}
418   ${FREETYPE_INCLUDE_DIRS}
419   ${ICU_INCLUDE_DIRS}
420   ${LIBXML2_INCLUDE_DIR}
421   ${LIBXSLT_INCLUDE_DIR}
422   ${SQLITE_INCLUDE_DIR}
423   ${GLIB_INCLUDE_DIRS}
424   ${LIBSOUP_INCLUDE_DIRS}
425   ${ZLIB_INCLUDE_DIRS}
426 )
427
428 IF (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
429   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
430     "${WEBCORE_DIR}/platform/graphics/gstreamer"
431
432     ${GSTREAMER_INCLUDE_DIRS}
433     ${GSTREAMER_BASE_INCLUDE_DIRS}
434     ${GSTREAMER_APP_INCLUDE_DIRS}
435     ${GSTREAMER_INTERFACES_INCLUDE_DIRS}
436     ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
437   )
438   LIST(APPEND WebCore_SOURCES
439     platform/graphics/gstreamer/GRefPtrGStreamer.cpp
440     platform/graphics/gstreamer/GStreamerUtilities.cpp
441     platform/graphics/gstreamer/GStreamerVersioning.cpp
442   )
443   LIST(APPEND WebCore_LIBRARIES
444     ${GSTREAMER_LIBRARIES}
445     ${GSTREAMER_BASE_LIBRARIES}
446     ${GSTREAMER_APP_LIBRARIES}
447     ${GSTREAMER_INTERFACES_LIBRARIES}
448     ${GSTREAMER_PBUTILS_LIBRARIES}
449   )
450 ENDIF ()
451
452 IF (ENABLE_VIDEO)
453   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
454     ${GSTREAMER_VIDEO_INCLUDE_DIRS}
455   )
456   LIST(APPEND WebCore_SOURCES
457     platform/graphics/gstreamer/GStreamerGWorld.cpp
458     platform/graphics/gstreamer/ImageGStreamerCairo.cpp
459     platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
460     platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp
461     platform/graphics/gstreamer/URIUtils.cpp
462     platform/graphics/gstreamer/VideoSinkGStreamer.cpp
463     platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
464   )
465   LIST(APPEND WebCore_LIBRARIES
466     ${GSTREAMER_VIDEO_LIBRARIES}
467   )
468 ENDIF ()
469
470 IF (WTF_USE_3D_GRAPHICS)
471   SET(WTF_USE_OPENGL 1)
472   ADD_DEFINITIONS(-DWTF_USE_OPENGL=1)
473
474   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
475     "${WEBCORE_DIR}/platform/graphics/cairo"
476     "${WEBCORE_DIR}/platform/graphics/opengl"
477     "${WEBCORE_DIR}/platform/graphics/texmap"
478   )
479   LIST(APPEND WebCore_LIBRARIES
480     ${OPENGL_gl_LIBRARY}
481   )
482   LIST(APPEND WebCore_SOURCES
483     platform/graphics/OpenGLShims.cpp
484     platform/graphics/cairo/DrawingBufferCairo.cpp
485     platform/graphics/cairo/GLContext.cpp
486     platform/graphics/cairo/GraphicsContext3DCairo.cpp
487     platform/graphics/cairo/GraphicsContext3DPrivate.cpp
488     platform/graphics/opengl/Extensions3DOpenGL.cpp
489     platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
490     platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
491     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
492     platform/graphics/texmap/TextureMapperGL.cpp
493     platform/graphics/texmap/TextureMapperShaderManager.cpp
494   )
495 ENDIF ()
496
497 #ADD_DEFINITIONS(-DWTF_USE_CROSS_PLATFORM_CONTEXT_MENUS=1
498 ADD_DEFINITIONS(-DWTF_USE_CROSS_PLATFORM_CONTEXT_MENUS=0
499                 -DDATA_DIR="${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}")
500
501 IF (ENABLE_GAMEPAD)
502   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
503     ${EEZE_INCLUDE_DIRS}
504   )
505   LIST(APPEND WebCore_LIBRARIES
506     ${EEZE_LIBRARIES}
507   )
508 ENDIF ()
509
510 IF (ENABLE_TIZEN_SUPPORT)
511     INCLUDE_IF_EXISTS(${WEBCORE_DIR}/PlatformTizen.cmake)
512 ENDIF ()