Merge "[Release] Webkit2-efl-123997_0.11.60" into tizen_2.2
[framework/web/webkit-efl.git] / Source / WebCore / PlatformTizen.cmake
1 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
2     "${JAVASCRIPTCORE_DIR}/wtf/efl"
3     "${WEBCORE_DIR}/Modules/contenthandler"
4     "${WEBCORE_DIR}/page/efl/tizen"
5     "${WEBCORE_DIR}/platform/audio/gstreamer/tizen"
6     "${WEBCORE_DIR}/platform/efl/tizen"
7     "${WEBCORE_DIR}/platform/graphics/efl/tizen"
8     "${WEBCORE_DIR}/platform/graphics/gpu"
9     "${WEBCORE_DIR}/platform/graphics/gstreamer/tizen"
10     "${WEBCORE_DIR}/platform/graphics/opengl"
11     "${WEBCORE_DIR}/platform/graphics/texmap/tizen"
12     "${WEBCORE_DIR}/platform/mediastream/tizen"
13     ${ASM_INCLUDE_DIRS}
14     ${CAPI_INCLUDE_DIRS}
15     ${ELEMENTARY_INCLUDE_DIRS}
16     ${ENCHANT_INCLUDE_DIRS}
17     ${GLES_INCLUDE_DIRS}
18     ${GSTREAMER_AUDIO_INCLUDE_DIRS}
19     ${GSTREAMER_FFT_INCLUDE_DIRS}
20     ${LevelDB_INCLUDE_DIRS}
21     ${LevelDB-MemEnv_INCLUDE_DIRS}
22     ${Libavcodec_INCLUDE_DIR}
23     ${MMSOUND_INCLUDE_DIRS}
24     ${MM-Player_INCLUDE_DIRS}
25     ${OPENSSL_INCLUDE_DIRS}
26     ${Pmapi_INCLUDE_DIRS}
27     ${SESSION_INCLUDE_DIRS}
28     ${VConf_INCLUDE_DIRS}
29     ${feedback_INCLUDE_DIR}
30 )
31
32 LIST(APPEND WebCore_LIBRARIES
33     ${ASM_LIBRARIES}
34     ${CAPI_LIBRARIES}
35     ${ELEMENTARY_LIBRARIES}
36     ${ENCHANT_LIBRARIES}
37     ${GLES_LIBRARIES}
38     ${GSTREAMER_AUDIO_LIBRARIES}
39     ${GSTREAMER_FFT_LIBRARIES}
40     ${LevelDB_LIBRARIES}
41     ${LevelDB-MemEnv_LIBRARIES}
42     ${Libavcodec_LIBS}
43     ${MMSOUND_LIBRARIES}
44     ${MM-Player_LIBRARIES}
45     ${OPENSSL_LIBRARIES}
46     ${Pmapi_LIBRARIES}
47     ${SESSION_LIBRARIES}
48     ${VConf_LIBRARIES}
49     ${feedback_LIBRARY}
50 )
51
52 LIST(APPEND WebCore_USER_AGENT_STYLE_SHEETS
53     ${WEBCORE_DIR}/css/mediaControlsTizen.css
54     ${WEBCORE_DIR}/css/mediaControlsTizenFullscreenHorizontal.css
55     ${WEBCORE_DIR}/css/mediaControlsTizenFullscreenVertical.css
56 )
57
58 # Replace EFL port files with Tizen's.
59 LIST(REMOVE_ITEM WebCore_SOURCES
60     platform/efl/ClipboardEfl.cpp
61     platform/efl/DragDataEfl.cpp
62     platform/efl/DragImageEfl.cpp
63     platform/efl/LocalizedStringsEfl.cpp
64     platform/efl/NetworkInfoProviderEfl.cpp
65     platform/efl/PasteboardEfl.cpp
66     platform/efl/ScrollbarThemeEfl.cpp
67     platform/mediastream/gstreamer/MediaStreamCenterGStreamer.cpp
68     platform/network/soup/ResourceHandleSoup.cpp
69     platform/network/soup/SocketStreamHandleSoup.cpp
70 )
71
72 IF (WTF_USE_3D_GRAPHICS)
73     LIST(REMOVE_ITEM WebCore_SOURCES
74         platform/graphics/cairo/DrawingBufferCairo.cpp
75         platform/graphics/cairo/GLContext.cpp
76         platform/graphics/cairo/GraphicsContext3DCairo.cpp
77         platform/graphics/cairo/GraphicsContext3DPrivate.cpp
78         platform/graphics/opengl/Extensions3DOpenGL.cpp
79         platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
80         platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
81         platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
82     )
83 ENDIF ()
84
85 IF (WTF_USE_SKIA)
86     LIST(REMOVE_ITEM WebCore_SOURCES platform/graphics/efl/FontEfl.cpp)
87 ENDIF ()
88
89 # Begin to add tizen specific files.
90 LIST(APPEND WebCore_IDL_FILES
91     Modules/contenthandler/NavigatorRegisterContentHandler.idl
92
93     Modules/mediastream/BlobCallback.idl
94     Modules/mediastream/MediaStreamRecorder.idl
95
96     page/efl/tizen/External.idl
97 )
98
99 LIST(APPEND WebCore_SOURCES
100     Modules/contenthandler/NavigatorRegisterContentHandler.cpp
101     Modules/mediastream/MediaStreamRecorder.cpp
102
103     page/efl/tizen/External.cpp
104
105     platform/audio/ffmpeg/FFTFrameFFMPEG.cpp
106     platform/audio/gstreamer/FFTFrameGStreamer.cpp
107     platform/audio/gstreamer/tizen/AudioSessionManagerGStreamerTizen.cpp
108
109     platform/efl/tizen/AsyncFileSystemCallbacksTizen.cpp
110     platform/efl/tizen/AsyncFileSystemTizen.cpp
111     platform/efl/tizen/AsyncFileSystemTaskControllerTizen.cpp
112     platform/efl/tizen/AsyncFileWriterClientTizen.cpp
113     platform/efl/tizen/AsyncFileWriterTizen.cpp
114     platform/efl/tizen/ClipboardTizen.cpp
115     platform/efl/tizen/DataObjectTizen.cpp
116     platform/efl/tizen/DeviceMotionClientTizen.cpp
117     platform/efl/tizen/DeviceOrientationClientTizen.cpp
118     platform/efl/tizen/DeviceOrientationProviderTizen.cpp
119     platform/efl/tizen/DeviceMotionProviderTizen.cpp
120     platform/efl/tizen/DragDataTizen.cpp
121     platform/efl/tizen/DragImageTizen.cpp
122     platform/efl/tizen/FileSystemTizen.cpp
123     platform/efl/tizen/LocalizedStringsTizen.cpp
124     platform/efl/tizen/NetworkInfoProviderTizen.cpp
125     platform/efl/tizen/PasteboardTizen.cpp
126     platform/efl/tizen/ScrollbarThemeTizen.cpp
127     platform/efl/tizen/SSLKeyGeneratorTizen.cpp
128     platform/efl/tizen/SSLPrivateKeyStoreTizen.cpp
129     platform/efl/tizen/TizenLinkEffect.cpp
130     platform/efl/tizen/TizenProfiler.cpp
131     platform/efl/tizen/TizenExtensibleAPI.cpp
132
133     platform/graphics/efl/tizen/Canvas2DLayerTizen.cpp
134     platform/graphics/efl/tizen/Extensions3DTizen.cpp
135     platform/graphics/efl/tizen/GraphicsContext3D.cpp
136     platform/graphics/efl/tizen/GraphicsContext3DInternal.cpp
137     platform/graphics/efl/tizen/GraphicsContext3DOffscreen.cpp
138     platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp
139     platform/graphics/efl/tizen/TizenGraphicsContext3DEfl.cpp
140     platform/graphics/gpu/DrawingBuffer.cpp
141     platform/graphics/gpu/tizen/DrawingBufferTizen.cpp
142     platform/graphics/gstreamer/tizen/SharedVideoPlatformSurfaceTizen.cpp
143     platform/graphics/gstreamer/tizen/VideoLayerTizen.cpp
144     platform/graphics/gstreamer/tizen/WebKitCameraSourceGStreamerTizen.cpp
145     platform/graphics/surfaces/GraphicsSurface.cpp
146     platform/graphics/surfaces/tizen/GraphicsSurfaceTizen.cpp
147     platform/graphics/texmap/tizen/PlatformSurfaceTextureGL.cpp
148
149     platform/mediastream/tizen/LocalMediaServer.cpp
150     platform/mediastream/tizen/MediaRecorder.cpp
151     platform/mediastream/tizen/MediaRecorderPrivateImpl.cpp
152     platform/mediastream/tizen/MediaStreamCenterTizen.cpp
153     platform/mediastream/tizen/MediaStreamManager.cpp
154
155     platform/network/soup/tizen/ResourceHandleSoupTizen.cpp
156     platform/network/soup/tizen/SocketStreamHandleSoupTizen.cpp
157     platform/network/tizen/NetworkStateNotifierTizen.cpp
158
159     plugins/PluginPackage.cpp
160 )
161
162 IF (WTF_USE_TEXTURE_MAPPER)
163     LIST(APPEND WebCore_SOURCES
164         platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
165         platform/graphics/texmap/TextureMapperCuller.cpp
166     )
167 ELSE ()
168     LIST(APPEND WebCore_SOURCES
169         platform/graphics/efl/GraphicsLayerEfl.cpp
170     )
171 ENDIF ()
172
173 IF (ENABLE_TOUCH_ADJUSTMENT)
174     LIST(APPEND WebCore_SOURCES
175         page/TouchAdjustment.cpp
176     )
177 ENDIF ()
178
179 INCLUDE_IF_EXISTS(${WEBCORE_DIR}/PlatformExperimental.cmake)
180
181 IF (NOT ENABLE_TIZEN_WEBKIT2_TILED_AC_SHARED_PLATFORM_SURFACE)
182     LIST(APPEND WebCore_SOURCES
183         platform/graphics/surfaces/efl/GraphicsSurfaceEfl.cpp
184     )
185 ENDIF ()
186
187 IF (ENABLE_ALLINONE)
188     LIST(APPEND WebCore_SOURCES
189         css/SVGCSSComputedStyleDeclaration.cpp
190         css/SVGCSSParser.cpp
191         css/SVGCSSStyleSelector.cpp
192
193         inspector/InspectorAllInOne.cpp
194
195         platform/graphics/SVGGlyph.cpp
196
197         rendering/PointerEventsHitRules.cpp
198         rendering/style/SVGRenderStyle.cpp
199         rendering/style/SVGRenderStyleDefs.cpp
200         rendering/svg/RenderSVGAllInOne.cpp
201
202         svg/SVGAllInOne.cpp
203         svg/animation/SMILTime.cpp
204         svg/animation/SMILTimeContainer.cpp
205         svg/animation/SVGSMILElement.cpp
206         svg/graphics/SVGImage.cpp
207         svg/graphics/SVGImageCache.cpp
208         svg/graphics/filters/SVGFEImage.cpp
209         svg/graphics/filters/SVGFilter.cpp
210         svg/graphics/filters/SVGFilterBuilder.cpp
211         svg/properties/SVGAttributeToPropertyMap.cpp
212         svg/properties/SVGPathSegListPropertyTearOff.cpp
213     )
214 ENDIF ()
215
216 IF (ENABLE_WEB_AUDIO)
217     SET(WEB_AUDIO_DIR ${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/webaudio/resources)
218     FILE(GLOB WEB_AUDIO_DATA "${WEBCORE_DIR}/platform/audio/resources/*.wav")
219     INSTALL(FILES ${WEB_AUDIO_DATA} DESTINATION ${WEB_AUDIO_DIR})
220     ADD_DEFINITIONS(-DUNINSTALLED_AUDIO_RESOURCES_DIR="${WEBCORE_DIR}/platform/audio/resources")
221 ENDIF ()