Tizen 2.1 base
[framework/web/webkit-efl.git] / Source / WebCore / PlatformTizen.cmake
1 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
2     "${JAVASCRIPTCORE_DIR}/wtf/efl"
3     "${WEBCORE_DIR}/platform/efl/tizen"
4     "${WEBCORE_DIR}/platform/graphics/efl/tizen"
5     "${WEBCORE_DIR}/platform/graphics/gpu"
6     "${WEBCORE_DIR}/platform/graphics/opengl"
7     "${WEBCORE_DIR}/platform/graphics/texmap"
8     ${CAPI_INCLUDE_DIRS}
9     ${ELEMENTARY_INCLUDE_DIRS}
10     ${LevelDB_INCLUDE_DIRS}
11     ${LevelDB-MemEnv_INCLUDE_DIRS}
12     ${MM-Player_INCLUDE_DIRS}
13     ${Pmapi_INCLUDE_DIRS}
14     ${VConf_INCLUDE_DIRS}
15 )
16
17 LIST(APPEND WebCore_LIBRARIES
18     ${CAPI_LIBRARIES}
19     ${ELEMENTARY_LIBRARIES}
20     ${LevelDB_LIBRARIES}
21     ${LevelDB-MemEnv_LIBRARIES}
22     ${MM-Player_LIBRARIES}
23     ${Pmapi_LIBRARIES}
24     ${VConf_LIBRARIES}
25 )
26
27 LIST(APPEND WebCore_USER_AGENT_STYLE_SHEETS
28     ${WEBCORE_DIR}/css/mediaControlsTizen.css
29     ${WEBCORE_DIR}/css/mediaControlsTizenFullscreen.css
30 )
31
32 # Replace EFL port files with Tizen's.
33 LIST(REMOVE_ITEM WebCore_SOURCES
34     platform/efl/ClipboardEfl.cpp
35     platform/efl/DragDataEfl.cpp
36     platform/efl/DragImageEfl.cpp
37     platform/efl/LocalizedStringsEfl.cpp
38     platform/efl/NetworkInfoProviderEfl.cpp
39 )
40
41 IF (WTF_USE_3D_GRAPHICS)
42     LIST(REMOVE_ITEM WebCore_SOURCES
43         platform/graphics/cairo/DrawingBufferCairo.cpp
44         platform/graphics/cairo/GLContext.cpp
45         platform/graphics/cairo/GraphicsContext3DCairo.cpp
46         platform/graphics/cairo/GraphicsContext3DPrivate.cpp
47         platform/graphics/opengl/Extensions3DOpenGL.cpp
48         platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
49         platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
50         platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
51     )
52 ENDIF ()
53
54 IF (WTF_USE_SKIA)
55     LIST(REMOVE_ITEM WebCore_SOURCES platform/graphics/efl/FontEfl.cpp)
56 ENDIF ()
57
58
59 LIST(APPEND WebCore_SOURCES
60     Modules/mediastream/MediaStreamRecorder.cpp
61
62     platform/efl/tizen/ClipboardTizen.cpp
63     platform/efl/tizen/DataObjectTizen.cpp
64     platform/efl/tizen/DeviceMotionClientTizen.cpp
65     platform/efl/tizen/DeviceOrientationClientTizen.cpp
66     platform/efl/tizen/DeviceOrientationProviderTizen.cpp
67     platform/efl/tizen/DeviceMotionProviderTizen.cpp
68     platform/efl/tizen/DragDataTizen.cpp
69     platform/efl/tizen/DragImageTizen.cpp
70     platform/efl/tizen/LocalizedStringsTizen.cpp
71     platform/efl/tizen/NetworkInfoProviderTizen.cpp
72     platform/efl/tizen/PasteboardTizen.cpp
73     platform/efl/tizen/SSLKeyGeneratorTizen.cpp
74     platform/efl/tizen/SSLPrivateKeyStoreTizen.cpp
75     platform/efl/tizen/TizenColorUtilities.cpp
76     platform/efl/tizen/TizenProfiler.cpp
77     platform/mediastream/MediaRecorder.cpp
78     platform/mediastream/tizen/LocalMediaServer.cpp
79     platform/mediastream/tizen/MediaStreamCenterTizen.cpp
80     platform/mediastream/tizen/MediaStreamManager.cpp
81     platform/network/tizen/NetworkStateNotifierTizen.cpp
82
83     plugins/PluginPackage.cpp
84 )
85
86 IF (ENABLE_ALLINONE)
87     LIST(APPEND WebCore_SOURCES
88         css/SVGCSSComputedStyleDeclaration.cpp
89         css/SVGCSSParser.cpp
90         css/SVGCSSStyleSelector.cpp
91
92         platform/graphics/SVGGlyph.cpp
93
94         rendering/PointerEventsHitRules.cpp
95         rendering/style/SVGRenderStyle.cpp
96         rendering/style/SVGRenderStyleDefs.cpp
97         rendering/svg/RenderSVGAllInOne.cpp
98
99         svg/SVGAllInOne.cpp
100         svg/animation/SMILTime.cpp
101         svg/animation/SMILTimeContainer.cpp
102         svg/animation/SVGSMILElement.cpp
103         svg/graphics/SVGImage.cpp
104         svg/graphics/SVGImageCache.cpp
105         svg/graphics/filters/SVGFEImage.cpp
106         svg/graphics/filters/SVGFilter.cpp
107         svg/graphics/filters/SVGFilterBuilder.cpp
108         svg/properties/SVGAttributeToPropertyMap.cpp
109         svg/properties/SVGPathSegListPropertyTearOff.cpp
110     )
111 ENDIF ()
112
113 IF (ENABLE_TOUCH_ADJUSTMENT)
114     LIST(APPEND WebCore_SOURCES
115         page/TouchAdjustment.cpp
116     )
117 ENDIF ()
118
119 IF (WTF_USE_TEXTURE_MAPPER)
120     LIST(APPEND WebCore_SOURCES
121         platform/graphics/texmap/TextureMapperCuller.cpp
122     )
123 ENDIF ()
124
125 IF (ENABLE_TIZEN_KEYGEN)
126     LIST(APPEND WebCore_LIBRARIES
127         ${OPENSSL_LIBRARIES}
128     )
129     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
130         ${OPENSSL_INCLUDE_DIRS}
131     )
132 ENDIF()
133
134 IF (ENABLE_TIZEN_MEDIA_STREAM)
135     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
136         ${WEBCORE_DIR}/platform/mediastream/tizen
137     )
138     IF (ENABLE_WEBKIT2)
139         LIST(APPEND WebCore_SOURCES
140             platform/mediastream/tizen/MediaRecorderPrivateImpl.cpp
141         )
142     ELSE ()
143         LIST(APPEND WebCore_SOURCES
144             platform/mediastream/tizen/MediaRecorderPrivateDeprecated.cpp
145             platform/mediastream/tizen/MediaStreamPlayer.cpp
146         )
147     ENDIF ()
148 ENDIf ()
149
150 IF (ENABLE_VIDEO)
151     LIST(APPEND WebCore_SOURCES
152         platform/audio/gstreamer/AudioSessionManagerGStreamerTizen.cpp
153         platform/graphics/gstreamer/WebKitCameraSourceGStreamer.cpp
154     )
155     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
156         ${ASM_INCLUDE_DIRS}
157         ${SESSION_INCLUDE_DIRS}
158     )
159     LIST(APPEND WebCore_LIBRARIES
160         ${ASM_LIBRARIES}
161         ${SESSION_LIBRARIES}
162      )
163 ENDIF ()
164
165 INCLUDE_IF_EXISTS(${WEBCORE_DIR}/PlatformExperimental.cmake)
166
167 IF (ENABLE_TIZEN_WEBKIT2_TILED_AC_SHARED_PLATFORM_SURFACE)
168     LIST(APPEND WebCore_SOURCES
169         platform/graphics/surfaces/tizen/GraphicsSurfaceTizen.cpp
170         platform/graphics/efl/SharedPlatformSurfaceEfl.cpp
171         platform/graphics/gstreamer/SharedVideoPlatformSurfaceTizen.cpp
172         platform/graphics/texmap/PlatformSurfaceTextureGL.cpp
173     )
174 ELSE ()
175     LIST(APPEND WebCore_SOURCES
176         platform/graphics/surfaces/efl/GraphicsSurfaceEfl.cpp
177     )
178 ENDIF ()
179
180 IF (WTF_USE_ACCELERATED_COMPOSITING AND ENABLE_WEBKIT2)
181     LIST(APPEND WebCore_SOURCES
182         platform/graphics/GraphicsContext3D.cpp
183         platform/graphics/efl/tizen/CanvasLayer2D.cpp
184         platform/graphics/efl/tizen/Extensions3DTizen.cpp
185         platform/graphics/efl/tizen/GraphicsContext3DOffscreen.cpp
186         platform/graphics/efl/tizen/GraphicsContext3DInternal.cpp
187         platform/graphics/efl/tizen/TizenGraphicsContext3DEfl.cpp
188         platform/graphics/gpu/DrawingBuffer.cpp
189         platform/graphics/gpu/tizen/DrawingBufferTizen.cpp
190     )
191
192     IF (WTF_USE_TEXTURE_MAPPER)
193         LIST(APPEND WebCore_SOURCES
194             platform/graphics/gstreamer/VideoLayerTizen.cpp
195             platform/graphics/surfaces/GraphicsSurface.cpp
196         )
197     ENDIF ()
198 ENDIF()
199
200 # Need to move other cmake file.
201 IF (NOT ENABLE_WEBKIT2)
202     LIST(APPEND EWebCore_HEADERS
203       "${CMAKE_CURRENT_SOURCE_DIR}/plugins/npapi.h"
204       "${CMAKE_CURRENT_SOURCE_DIR}/plugins/npfunctions.h"
205       "${CMAKE_CURRENT_SOURCE_DIR}/plugins/npruntime.h"
206       "${CMAKE_CURRENT_SOURCE_DIR}/plugins/nptypes.h"
207     )
208     INSTALL(FILES ${EWebCore_HEADERS}
209         DESTINATION include/${WebKit_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR})
210 ENDIF ()