PlatformGTK.cmake 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. list(APPEND WebCore_INCLUDE_DIRECTORIES
  2. "${WEBCORE_DIR}/accessibility/atk"
  3. "${WEBCORE_DIR}/editing/atk"
  4. "${WEBCORE_DIR}/page/gtk"
  5. "${WEBCORE_DIR}/platform/cairo"
  6. "${WEBCORE_DIR}/platform/gtk"
  7. "${WEBCORE_DIR}/platform/graphics/cairo"
  8. "${WEBCORE_DIR}/platform/graphics/egl"
  9. "${WEBCORE_DIR}/platform/graphics/glx"
  10. "${WEBCORE_DIR}/platform/graphics/gtk"
  11. "${WEBCORE_DIR}/platform/graphics/freetype"
  12. "${WEBCORE_DIR}/platform/graphics/harfbuzz/"
  13. "${WEBCORE_DIR}/platform/graphics/harfbuzz/ng"
  14. "${WEBCORE_DIR}/platform/graphics/opengl"
  15. "${WEBCORE_DIR}/platform/linux"
  16. "${WEBCORE_DIR}/platform/mediastream/gstreamer"
  17. "${WEBCORE_DIR}/platform/network/gtk"
  18. "${WEBCORE_DIR}/platform/network/soup"
  19. "${WEBCORE_DIR}/platform/text/gtk"
  20. "${WEBCORE_DIR}/plugins/gtk"
  21. )
  22. list(APPEND WebCore_SOURCES
  23. accessibility/atk/AccessibilityObjectAtk.cpp
  24. accessibility/atk/AXObjectCacheAtk.cpp
  25. accessibility/atk/WebKitAccessibleHyperlink.cpp
  26. accessibility/atk/WebKitAccessibleInterfaceAction.cpp
  27. accessibility/atk/WebKitAccessibleInterfaceComponent.cpp
  28. accessibility/atk/WebKitAccessibleInterfaceDocument.cpp
  29. accessibility/atk/WebKitAccessibleInterfaceEditableText.cpp
  30. accessibility/atk/WebKitAccessibleInterfaceHyperlinkImpl.cpp
  31. accessibility/atk/WebKitAccessibleInterfaceHypertext.cpp
  32. accessibility/atk/WebKitAccessibleInterfaceImage.cpp
  33. accessibility/atk/WebKitAccessibleInterfaceSelection.cpp
  34. accessibility/atk/WebKitAccessibleInterfaceTable.cpp
  35. accessibility/atk/WebKitAccessibleInterfaceText.cpp
  36. accessibility/atk/WebKitAccessibleInterfaceValue.cpp
  37. accessibility/atk/WebKitAccessibleUtil.cpp
  38. accessibility/atk/WebKitAccessibleWrapperAtk.cpp
  39. editing/SmartReplaceICU.cpp
  40. editing/atk/FrameSelectionAtk.cpp
  41. page/gtk/DragControllerGtk.cpp
  42. page/gtk/EventHandlerGtk.cpp
  43. platform/cairo/WidgetBackingStoreCairo.cpp
  44. platform/Cursor.cpp
  45. platform/audio/gtk/AudioBusGtk.cpp
  46. platform/audio/gstreamer/AudioDestinationGStreamer.cpp
  47. platform/audio/gstreamer/AudioFileReaderGStreamer.cpp
  48. platform/audio/gstreamer/FFTFrameGStreamer.cpp
  49. platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp
  50. platform/gtk/AsyncFileSystemGtk.cpp
  51. platform/gtk/ClipboardGtk.cpp
  52. platform/gtk/ClipboardUtilitiesGtk.cpp
  53. platform/gtk/ContextMenuGtk.cpp
  54. platform/gtk/ContextMenuItemGtk.cpp
  55. platform/gtk/CursorGtk.cpp
  56. platform/gtk/DataObjectGtk.cpp
  57. platform/gtk/DragDataGtk.cpp
  58. platform/gtk/DragIcon.cpp
  59. platform/gtk/DragImageGtk.cpp
  60. platform/gtk/ErrorsGtk.cpp
  61. platform/gtk/EventLoopGtk.cpp
  62. platform/gtk/FileSystemGtk.cpp
  63. platform/gtk/GamepadsGtk.cpp
  64. platform/gtk/GOwnPtrGtk.cpp
  65. platform/gtk/GRefPtrGtk.cpp
  66. platform/gtk/GtkClickCounter.cpp
  67. platform/gtk/GtkDragAndDropHelper.cpp
  68. platform/gtk/GtkInputMethodFilter.cpp
  69. platform/gtk/GtkPluginWidget.cpp
  70. platform/gtk/GtkPopupMenu.cpp
  71. platform/gtk/GtkUtilities.cpp
  72. platform/gtk/GtkVersioning.c
  73. platform/gtk/GtkWidgetBackingStoreX11.cpp
  74. platform/gtk/KeyBindingTranslator.cpp
  75. platform/gtk/LanguageGtk.cpp
  76. platform/gtk/LocalizedStringsGtk.cpp
  77. platform/gtk/LoggingGtk.cpp
  78. platform/gtk/MainFrameScrollbarGtk.cpp
  79. platform/gtk/MIMETypeRegistryGtk.cpp
  80. platform/gtk/PasteboardGtk.cpp
  81. platform/gtk/PasteboardHelper.cpp
  82. platform/gtk/PlatformKeyboardEventGtk.cpp
  83. platform/gtk/PlatformMouseEventGtk.cpp
  84. platform/gtk/PlatformScreenGtk.cpp
  85. platform/gtk/PlatformWheelEventGtk.cpp
  86. platform/gtk/PopupMenuGtk.cpp
  87. platform/gtk/RedirectedXCompositeWindow.cpp
  88. platform/gtk/RenderThemeGtk2.cpp
  89. platform/gtk/RenderThemeGtk3.cpp
  90. platform/gtk/RenderThemeGtk.cpp
  91. platform/gtk/RunLoopGtk.cpp
  92. platform/gtk/ScrollbarThemeGtk2.cpp
  93. platform/gtk/ScrollbarThemeGtk3.cpp
  94. platform/gtk/ScrollbarThemeGtk.cpp
  95. platform/gtk/ScrollViewGtk.cpp
  96. platform/gtk/SearchPopupMenuGtk.cpp
  97. platform/gtk/SharedBufferGtk.cpp
  98. platform/gtk/SharedTimerGtk.cpp
  99. platform/gtk/SoundGtk.cpp
  100. platform/gtk/TemporaryLinkStubs.cpp
  101. platform/gtk/UserAgentGtk.cpp
  102. platform/gtk/WebKitAuthenticationWidget.cpp
  103. platform/gtk/WidgetGtk.cpp
  104. platform/gtk/WidgetRenderingContext.cpp
  105. platform/graphics/cairo/BitmapImageCairo.cpp
  106. platform/graphics/cairo/CairoUtilities.cpp
  107. platform/graphics/cairo/DrawingBufferCairo.cpp
  108. platform/graphics/cairo/FontCairo.cpp
  109. platform/graphics/cairo/FontCairoHarfbuzzNG.cpp
  110. platform/graphics/cairo/GLContext.cpp
  111. platform/graphics/cairo/GradientCairo.cpp
  112. platform/graphics/cairo/GraphicsContext3DCairo.cpp
  113. platform/graphics/cairo/GraphicsContext3DPrivate.cpp
  114. platform/graphics/cairo/GraphicsContextCairo.cpp
  115. platform/graphics/cairo/ImageBufferCairo.cpp
  116. platform/graphics/cairo/ImageCairo.cpp
  117. platform/graphics/cairo/IntRectCairo.cpp
  118. platform/graphics/cairo/OwnPtrCairo.cpp
  119. platform/graphics/cairo/PathCairo.cpp
  120. platform/graphics/cairo/PatternCairo.cpp
  121. platform/graphics/cairo/PlatformContextCairo.cpp
  122. platform/graphics/cairo/PlatformPathCairo.cpp
  123. platform/graphics/cairo/RefPtrCairo.cpp
  124. platform/graphics/cairo/TileCairo.cpp
  125. platform/graphics/cairo/TiledBackingStoreBackendCairo.cpp
  126. platform/graphics/cairo/TransformationMatrixCairo.cpp
  127. platform/graphics/egl/GLContextEGL.cpp
  128. platform/graphics/glx/GLContextGLX.cpp
  129. platform/graphics/gtk/ColorGtk.cpp
  130. platform/graphics/gtk/FullscreenVideoControllerGtk.cpp
  131. platform/graphics/gtk/GdkCairoUtilities.cpp
  132. platform/graphics/gtk/IconGtk.cpp
  133. platform/graphics/gtk/ImageBufferGtk.cpp
  134. platform/graphics/gtk/ImageGtk.cpp
  135. platform/graphics/gtk/IntPointGtk.cpp
  136. platform/graphics/gtk/IntRectGtk.cpp
  137. platform/graphics/freetype/FontCacheFreeType.cpp
  138. platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
  139. platform/graphics/freetype/FontPlatformDataFreeType.cpp
  140. platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
  141. platform/graphics/freetype/SimpleFontDataFreeType.cpp
  142. platform/graphics/gstreamer/GRefPtrGStreamer.cpp
  143. platform/graphics/gstreamer/GStreamerGWorld.cpp
  144. platform/graphics/gstreamer/GStreamerUtilities.cpp
  145. platform/graphics/gstreamer/GStreamerVersioning.cpp
  146. platform/graphics/gstreamer/ImageGStreamerCairo.cpp
  147. platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
  148. platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
  149. platform/graphics/gstreamer/PlatformVideoWindowGtk.cpp
  150. platform/graphics/gstreamer/VideoSinkGStreamer.cpp
  151. platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
  152. platform/graphics/harfbuzz/HarfBuzzFaceCairo.cpp
  153. platform/graphics/harfbuzz/HarfBuzzFace.cpp
  154. platform/graphics/harfbuzz/HarfBuzzShaper.cpp
  155. platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
  156. platform/graphics/opengl/Extensions3DOpenGL.cpp
  157. platform/graphics/opengl/Extensions3DOpenGLES.cpp
  158. platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
  159. platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
  160. platform/graphics/OpenGLShims.cpp
  161. platform/graphics/WOFFFileFormat.cpp
  162. platform/image-decoders/cairo/ImageDecoderCairo.cpp
  163. platform/linux/GamepadDeviceLinux.cpp
  164. platform/mediastream/gstreamer/MediaStreamCenterGStreamer.cpp
  165. platform/network/gtk/CredentialBackingStore.cpp
  166. platform/network/soup/AuthenticationChallengeSoup.cpp
  167. platform/network/soup/CookieJarSoup.cpp
  168. platform/network/soup/CookieStorageSoup.cpp
  169. platform/network/soup/CredentialStorageSoup.cpp
  170. platform/network/soup/DNSSoup.cpp
  171. platform/network/soup/GOwnPtrSoup.cpp
  172. platform/network/soup/NetworkStorageSessionSoup.cpp
  173. platform/network/soup/ProxyResolverSoup.cpp
  174. platform/network/soup/ProxyServerSoup.cpp
  175. platform/network/soup/ResourceErrorSoup.cpp
  176. platform/network/soup/ResourceHandleSoup.cpp
  177. platform/network/soup/ResourceRequestSoup.cpp
  178. platform/network/soup/ResourceResponseSoup.cpp
  179. platform/network/soup/SocketStreamHandleSoup.cpp
  180. platform/network/soup/SoupURIUtils.cpp
  181. platform/PlatformStrategies.cpp
  182. platform/text/gtk/TextBreakIteratorInternalICUGtk.cpp
  183. platform/text/enchant/TextCheckerEnchant.cpp
  184. platform/text/LocaleICU.cpp
  185. platform/text/TextBreakIteratorICU.cpp
  186. platform/text/TextCodecICU.cpp
  187. platform/text/TextEncodingDetectorICU.cpp
  188. )
  189. if (ENABLE_NETSCAPE_PLUGIN_API)
  190. list(APPEND WebCore_SOURCES
  191. plugins/PluginDatabase.cpp
  192. plugins/PluginDebug.cpp
  193. plugins/PluginPackage.cpp plugins/PluginStream.cpp
  194. plugins/PluginView.cpp
  195. plugins/gtk/PluginPackageGtk.cpp
  196. plugins/gtk/PluginViewGtk.cpp
  197. plugins/gtk/gtk2xtbin.c
  198. )
  199. else ()
  200. list(APPEND WebCore_SOURCES
  201. plugins/PluginPackageNone.cpp
  202. plugins/PluginViewNone.cpp
  203. )
  204. endif ()
  205. list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
  206. ${WEBCORE_DIR}/css/mediaControlsGtk.css
  207. )
  208. list(APPEND WebCore_LIBRARIES
  209. ${ATK_LIBRARIES}
  210. ${ENCHANT_LIBRARIES}
  211. ${CAIRO_LIBRARIES}
  212. ${FONTCONFIG_LIBRARIES}
  213. ${FREETYPE_LIBRARIES}
  214. ${ICU_LIBRARIES}
  215. ${JPEG_LIBRARIES}
  216. ${LIBXML2_LIBRARIES}
  217. ${LIBXSLT_LIBRARIES}
  218. ${PNG_LIBRARIES}
  219. ${SQLITE_LIBRARIES}
  220. ${GLIB_LIBRARIES}
  221. ${GLIB_GIO_LIBRARIES}
  222. ${GLIB_GOBJECT_LIBRARIES}
  223. ${GLIB_GMODULE_LIBRARIES}
  224. ${GAIL3_LIBRARIES}
  225. ${GTK3_LIBRARIES}
  226. ${LIBSOUP_LIBRARIES}
  227. ${ZLIB_LIBRARIES}
  228. ${HARFBUZZ_LIBRARIES}
  229. ${WEBP_LIBRARIES}
  230. ${XT_LIBRARIES}
  231. ${X11_X11_LIB}
  232. ${X11_Xcomposite_LIB}
  233. ${X11_Xrender_LIB}
  234. ${X11_Xdamage_LIB}
  235. )
  236. list(APPEND WebCore_INCLUDE_DIRECTORIES
  237. ${ATK_INCLUDE_DIRS}
  238. ${ENCHANT_INCLUDE_DIRS}
  239. ${CAIRO_INCLUDE_DIRS}
  240. ${FREETYPE_INCLUDE_DIRS}
  241. ${ICU_INCLUDE_DIRS}
  242. ${LIBXML2_INCLUDE_DIR}
  243. ${LIBXSLT_INCLUDE_DIR}
  244. ${SQLITE_INCLUDE_DIR}
  245. ${GAIL3_INCLUDE_DIRS}
  246. ${GLIB_INCLUDE_DIRS}
  247. ${GTK3_INCLUDE_DIRS}
  248. ${LIBSOUP_INCLUDE_DIRS}
  249. ${ZLIB_INCLUDE_DIRS}
  250. ${HARFBUZZ_INCLUDE_DIRS}
  251. ${WEBP_INCLUDE_DIRS}
  252. ${XT_INCLUDE_DIRS}
  253. )
  254. if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
  255. list(APPEND WebCore_INCLUDE_DIRECTORIES
  256. ${WEBCORE_DIR}/platform/graphics/gstreamer
  257. ${GSTREAMER_INCLUDE_DIRS}
  258. ${GSTREAMER_BASE_INCLUDE_DIRS}
  259. ${GSTREAMER_APP_INCLUDE_DIRS}
  260. ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
  261. )
  262. list(APPEND WebCore_LIBRARIES
  263. ${GSTREAMER_LIBRARIES}
  264. ${GSTREAMER_BASE_LIBRARIES}
  265. ${GSTREAMER_APP_LIBRARIES}
  266. ${GSTREAMER_PBUTILS_LIBRARIES}
  267. )
  268. # Avoiding a GLib deprecation warning due to GStreamer API using deprecated classes.
  269. set_source_files_properties(platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp PROPERTIES COMPILE_DEFINITIONS "GLIB_DISABLE_DEPRECATION_WARNINGS=1")
  270. endif ()
  271. if (ENABLE_VIDEO)
  272. list(APPEND WebCore_INCLUDE_DIRECTORIES
  273. ${GSTREAMER_VIDEO_INCLUDE_DIRS}
  274. )
  275. list(APPEND WebCore_LIBRARIES
  276. ${GSTREAMER_VIDEO_LIBRARIES}
  277. )
  278. endif ()
  279. if (ENABLE_WEB_AUDIO)
  280. list(APPEND WebCore_INCLUDE_DIRECTORIES
  281. ${WEBCORE_DIR}/platform/audio/gstreamer
  282. ${GSTREAMER_AUDIO_INCLUDE_DIRS}
  283. ${GSTREAMER_FFT_INCLUDE_DIRS}
  284. )
  285. list(APPEND WebCore_LIBRARIES
  286. ${GSTREAMER_AUDIO_LIBRARIES}
  287. ${GSTREAMER_FFT_LIBRARIES}
  288. )
  289. endif ()
  290. if (ENABLE_TEXTURE_MAPPER)
  291. list(APPEND WebCore_INCLUDE_DIRECTORIES
  292. "${WEBCORE_DIR}/platform/graphics/texmap"
  293. )
  294. list(APPEND WebCore_SOURCES
  295. platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
  296. platform/graphics/texmap/TextureMapperGL.cpp
  297. platform/graphics/texmap/TextureMapperShaderProgram.cpp
  298. )
  299. endif ()
  300. if (WTF_USE_EGL)
  301. list(APPEND WebCore_LIBRARIES
  302. ${EGL_LIBRARY}
  303. )
  304. endif ()
  305. install(FILES
  306. "${WEBCORE_DIR}/Resources/textAreaResizeCorner.png"
  307. "${WEBCORE_DIR}/Resources/nullPlugin.png"
  308. "${WEBCORE_DIR}/Resources/urlIcon.png"
  309. "${WEBCORE_DIR}/Resources/missingImage.png"
  310. "${WEBCORE_DIR}/Resources/panIcon.png"
  311. "${WEBCORE_DIR}/Resources/deleteButton.png"
  312. "${WEBCORE_DIR}/Resources/inputSpeech.png"
  313. DESTINATION
  314. "${DATA_INSTALL_DIR}/images")
  315. if (ENABLE_WEB_AUDIO)
  316. install(FILES
  317. "${WEBCORE_DIR}/platform/audio/resources/Composite.wav"
  318. DESTINATION
  319. "${DATA_INSTALL_DIR}/resources/audio")
  320. endif ()