PlatformGTK.cmake 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. set(DERIVED_SOURCES_WEBKIT2GTK_DIR ${DERIVED_SOURCES_DIR}/webkit2gtk)
  2. set(WEBKIT2_BUILT_API_DIR ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/webkit2)
  3. set(WEBKIT2_FORWARDING_HEADERS_DIR ${DERIVED_SOURCES_DIR}/ForwardingHeaders/webkit2gtk)
  4. file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT2_DIR})
  5. file(MAKE_DIRECTORY ${WEBKIT2_BUILT_API_DIR})
  6. file(MAKE_DIRECTORY ${WEBKIT2_FORWARDING_HEADERS_DIR})
  7. configure_file(UIProcess/API/gtk/WebKitVersion.h.in ${WEBKIT2_BUILT_API_DIR}/WebKitVersion.h)
  8. add_definitions(-DWEBKIT2_COMPILATION)
  9. add_definitions(-DLIBEXECDIR="${CMAKE_INSTALL_FULL_LIBEXECDIR}")
  10. add_definitions(-DPACKAGE_LOCALE_DIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")
  11. add_definitions(-DLIBDIR="${CMAKE_INSTALL_FULL_LIBDIR}")
  12. list(APPEND WebKit2_SOURCES
  13. ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.cpp
  14. ${WEBKIT2_BUILT_API_DIR}/WebKitEnumTypes.cpp
  15. Platform/gtk/LoggingGtk.cpp
  16. Platform/gtk/ModuleGtk.cpp
  17. Platform/gtk/WorkQueueGtk.cpp
  18. Platform/unix/SharedMemoryUnix.cpp
  19. WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp
  20. WebProcess/WebPage/gtk/WebPageGtk.cpp
  21. WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp
  22. WebProcess/WebPage/gtk/WebInspectorGtk.cpp
  23. WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp
  24. WebProcess/WebCoreSupport/gtk/WebPopupMenuGtk.cpp
  25. WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp
  26. WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp
  27. WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp
  28. WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp
  29. UIProcess/API/C/gtk/WKFullScreenClientGtk.cpp
  30. UIProcess/API/C/gtk/WKInspectorClientGtk.cpp
  31. UIProcess/gtk/WebContextMenuProxyGtk.cpp
  32. UIProcess/gtk/WebContextGtk.cpp
  33. UIProcess/gtk/WebPageProxyGtk.cpp
  34. UIProcess/gtk/WebPreferencesGtk.cpp
  35. UIProcess/gtk/WebFullScreenClientGtk.cpp
  36. UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp
  37. UIProcess/gtk/WebInspectorProxyGtk.cpp
  38. UIProcess/gtk/TextCheckerGtk.cpp
  39. UIProcess/gtk/WebPopupMenuProxyGtk.cpp
  40. UIProcess/gtk/WebInspectorClientGtk.cpp
  41. UIProcess/gtk/WebProcessProxyGtk.cpp
  42. UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp
  43. UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp
  44. Shared/API/c/gtk/WKGraphicsContextGtk.cpp
  45. Shared/Downloads/gtk/DownloadSoupErrorsGtk.cpp
  46. Shared/gtk/ArgumentCodersGtk.cpp
  47. Shared/gtk/LayerTreeContextGtk.cpp
  48. Shared/gtk/NativeWebKeyboardEventGtk.cpp
  49. Shared/gtk/NativeWebMouseEventGtk.cpp
  50. Shared/gtk/NativeWebWheelEventGtk.cpp
  51. Shared/gtk/PrintInfoGtk.cpp
  52. Shared/gtk/ProcessExecutablePathGtk.cpp
  53. Shared/gtk/WebEventFactory.cpp
  54. Platform/CoreIPC/unix/ConnectionUnix.cpp
  55. Platform/CoreIPC/unix/AttachmentUnix.cpp
  56. PluginProcess/unix/PluginControllerProxyUnix.cpp
  57. PluginProcess/unix/PluginProcessMainUnix.cpp
  58. PluginProcess/unix/PluginProcessUnix.cpp
  59. Shared/API/c/cairo/WKImageCairo.cpp
  60. Shared/Downloads/soup/DownloadSoup.cpp
  61. Shared/cairo/ShareableBitmapCairo.cpp
  62. Shared/linux/SeccompFilters/OpenSyscall.cpp
  63. Shared/linux/SeccompFilters/SigactionSyscall.cpp
  64. Shared/linux/SeccompFilters/SigprocmaskSyscall.cpp
  65. Shared/linux/SeccompFilters/SeccompBroker.cpp
  66. Shared/linux/SeccompFilters/SeccompFilters.cpp
  67. Shared/linux/SeccompFilters/Syscall.cpp
  68. Shared/linux/SeccompFilters/SyscallPolicy.cpp
  69. Shared/linux/WebMemorySamplerLinux.cpp
  70. Shared/soup/PlatformCertificateInfo.cpp
  71. Shared/soup/WebCoreArgumentCodersSoup.cpp
  72. UIProcess/DefaultUndoController.cpp
  73. Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp
  74. UIProcess/API/C/cairo/WKIconDatabaseCairo.cpp
  75. UIProcess/API/C/CoordinatedGraphics/WKView.cpp
  76. UIProcess/API/C/soup/WKContextSoup.cpp
  77. UIProcess/API/C/soup/WKCookieManagerSoup.cpp
  78. UIProcess/API/C/soup/WKSoupRequestManager.cpp
  79. UIProcess/cairo/BackingStoreCairo.cpp
  80. UIProcess/CoordinatedGraphics/WebView.cpp
  81. UIProcess/CoordinatedGraphics/WebViewClient.cpp
  82. UIProcess/InspectorServer/soup/WebSocketServerSoup.cpp
  83. UIProcess/soup/WebCookieManagerProxySoup.cpp
  84. UIProcess/soup/WebSoupRequestManagerClient.cpp
  85. UIProcess/soup/WebSoupRequestManagerProxy.cpp
  86. UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
  87. UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp
  88. UIProcess/Storage/StorageManager.cpp
  89. WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
  90. WebProcess/Cookies/soup/WebKitSoupCookieJarSqlite.cpp
  91. WebProcess/Plugins/Netscape/unix/PluginProxyUnix.cpp
  92. WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
  93. WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp
  94. WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp
  95. WebProcess/soup/WebProcessSoup.cpp
  96. WebProcess/soup/WebSoupRequestManager.cpp
  97. WebProcess/soup/WebKitSoupRequestGeneric.cpp
  98. WebProcess/soup/WebKitSoupRequestInputStream.cpp
  99. UIProcess/API/gtk/PageClientImpl.cpp
  100. UIProcess/API/gtk/PageClientImpl.h
  101. UIProcess/API/gtk/webkit2.h
  102. UIProcess/API/gtk/WebKitAuthenticationDialog.cpp
  103. UIProcess/API/gtk/WebKitAuthenticationDialog.h
  104. UIProcess/API/gtk/WebKitBackForwardList.cpp
  105. UIProcess/API/gtk/WebKitBackForwardList.h
  106. UIProcess/API/gtk/WebKitBackForwardListItem.cpp
  107. UIProcess/API/gtk/WebKitBackForwardListItem.h
  108. UIProcess/API/gtk/WebKitBackForwardListPrivate.h
  109. UIProcess/API/gtk/WebKitContextMenuActions.cpp
  110. UIProcess/API/gtk/WebKitContextMenuActions.h
  111. UIProcess/API/gtk/WebKitContextMenuActionsPrivate.h
  112. UIProcess/API/gtk/WebKitContextMenuClient.cpp
  113. UIProcess/API/gtk/WebKitContextMenuClient.h
  114. UIProcess/API/gtk/WebKitContextMenu.cpp
  115. UIProcess/API/gtk/WebKitContextMenu.h
  116. UIProcess/API/gtk/WebKitContextMenuItem.cpp
  117. UIProcess/API/gtk/WebKitContextMenuItem.h
  118. UIProcess/API/gtk/WebKitContextMenuItemPrivate.h
  119. UIProcess/API/gtk/WebKitContextMenuPrivate.h
  120. UIProcess/API/gtk/WebKitCookieManager.cpp
  121. UIProcess/API/gtk/WebKitCookieManager.h
  122. UIProcess/API/gtk/WebKitCookieManagerPrivate.h
  123. UIProcess/API/gtk/WebKitDefines.h
  124. UIProcess/API/gtk/WebKitDownloadClient.cpp
  125. UIProcess/API/gtk/WebKitDownloadClient.h
  126. UIProcess/API/gtk/WebKitDownload.cpp
  127. UIProcess/API/gtk/WebKitDownload.h
  128. UIProcess/API/gtk/WebKitDownloadPrivate.h
  129. UIProcess/API/gtk/WebKitEditingCommands.h
  130. UIProcess/API/gtk/WebKitError.cpp
  131. UIProcess/API/gtk/WebKitError.h
  132. UIProcess/API/gtk/WebKitFaviconDatabase.cpp
  133. UIProcess/API/gtk/WebKitFaviconDatabase.h
  134. UIProcess/API/gtk/WebKitFaviconDatabasePrivate.h
  135. UIProcess/API/gtk/WebKitFileChooserRequest.cpp
  136. UIProcess/API/gtk/WebKitFileChooserRequest.h
  137. UIProcess/API/gtk/WebKitFileChooserRequestPrivate.h
  138. UIProcess/API/gtk/WebKitFindController.cpp
  139. UIProcess/API/gtk/WebKitFindController.h
  140. UIProcess/API/gtk/WebKitFormClient.cpp
  141. UIProcess/API/gtk/WebKitFormClient.h
  142. UIProcess/API/gtk/WebKitFormSubmissionRequest.cpp
  143. UIProcess/API/gtk/WebKitFormSubmissionRequest.h
  144. UIProcess/API/gtk/WebKitFormSubmissionRequestPrivate.h
  145. UIProcess/API/gtk/WebKitForwardDeclarations.h
  146. UIProcess/API/gtk/WebKitFullscreenClient.cpp
  147. UIProcess/API/gtk/WebKitFullscreenClient.h
  148. UIProcess/API/gtk/WebKitGeolocationPermissionRequest.cpp
  149. UIProcess/API/gtk/WebKitGeolocationPermissionRequest.h
  150. UIProcess/API/gtk/WebKitGeolocationPermissionRequestPrivate.h
  151. UIProcess/API/gtk/WebKitGeolocationProvider.cpp
  152. UIProcess/API/gtk/WebKitGeolocationProvider.h
  153. UIProcess/API/gtk/WebKitHitTestResult.cpp
  154. UIProcess/API/gtk/WebKitHitTestResult.h
  155. UIProcess/API/gtk/WebKitHitTestResultPrivate.h
  156. UIProcess/API/gtk/WebKitInjectedBundleClient.cpp
  157. UIProcess/API/gtk/WebKitInjectedBundleClient.h
  158. UIProcess/API/gtk/WebKitJavascriptResult.cpp
  159. UIProcess/API/gtk/WebKitJavascriptResult.h
  160. UIProcess/API/gtk/WebKitJavascriptResultPrivate.h
  161. UIProcess/API/gtk/WebKitLoaderClient.cpp
  162. UIProcess/API/gtk/WebKitLoaderClient.h
  163. UIProcess/API/gtk/WebKitMimeInfo.cpp
  164. UIProcess/API/gtk/WebKitMimeInfo.h
  165. UIProcess/API/gtk/WebKitMimeInfoPrivate.h
  166. UIProcess/API/gtk/WebKitNavigationPolicyDecision.cpp
  167. UIProcess/API/gtk/WebKitNavigationPolicyDecision.h
  168. UIProcess/API/gtk/WebKitNavigationPolicyDecisionPrivate.h
  169. UIProcess/API/gtk/WebKitPermissionRequest.cpp
  170. UIProcess/API/gtk/WebKitPermissionRequest.h
  171. UIProcess/API/gtk/WebKitPlugin.cpp
  172. UIProcess/API/gtk/WebKitPlugin.h
  173. UIProcess/API/gtk/WebKitPluginPrivate.h
  174. UIProcess/API/gtk/WebKitPolicyClient.cpp
  175. UIProcess/API/gtk/WebKitPolicyClient.h
  176. UIProcess/API/gtk/WebKitPolicyDecision.cpp
  177. UIProcess/API/gtk/WebKitPolicyDecision.h
  178. UIProcess/API/gtk/WebKitPolicyDecisionPrivate.h
  179. UIProcess/API/gtk/WebKitPrintOperation.cpp
  180. UIProcess/API/gtk/WebKitPrintOperation.h
  181. UIProcess/API/gtk/WebKitPrintOperationPrivate.h
  182. UIProcess/API/gtk/WebKitPrivate.cpp
  183. UIProcess/API/gtk/WebKitPrivate.h
  184. UIProcess/API/gtk/WebKitRequestManagerClient.cpp
  185. UIProcess/API/gtk/WebKitRequestManagerClient.h
  186. UIProcess/API/gtk/WebKitResponsePolicyDecision.cpp
  187. UIProcess/API/gtk/WebKitResponsePolicyDecision.h
  188. UIProcess/API/gtk/WebKitResponsePolicyDecisionPrivate.h
  189. UIProcess/API/gtk/WebKitScriptDialog.cpp
  190. UIProcess/API/gtk/WebKitScriptDialog.h
  191. UIProcess/API/gtk/WebKitScriptDialogPrivate.h
  192. UIProcess/API/gtk/WebKitSecurityManager.cpp
  193. UIProcess/API/gtk/WebKitSecurityManager.h
  194. UIProcess/API/gtk/WebKitSecurityManagerPrivate.h
  195. UIProcess/API/gtk/WebKitSettings.cpp
  196. UIProcess/API/gtk/WebKitSettings.h
  197. UIProcess/API/gtk/WebKitSettingsPrivate.h
  198. UIProcess/API/gtk/WebKitTextChecker.cpp
  199. UIProcess/API/gtk/WebKitTextChecker.h
  200. UIProcess/API/gtk/WebKitUIClient.cpp
  201. UIProcess/API/gtk/WebKitUIClient.h
  202. UIProcess/API/gtk/WebKitURIRequest.cpp
  203. UIProcess/API/gtk/WebKitURIRequest.h
  204. UIProcess/API/gtk/WebKitURIRequestPrivate.h
  205. UIProcess/API/gtk/WebKitURIResponse.cpp
  206. UIProcess/API/gtk/WebKitURIResponse.h
  207. UIProcess/API/gtk/WebKitURIResponsePrivate.h
  208. UIProcess/API/gtk/WebKitURISchemeRequest.cpp
  209. UIProcess/API/gtk/WebKitURISchemeRequest.h
  210. UIProcess/API/gtk/WebKitURISchemeRequestPrivate.h
  211. UIProcess/API/gtk/WebKitVersion.cpp
  212. UIProcess/API/gtk/WebKitVersion.h.in
  213. UIProcess/API/gtk/WebKitWebContext.cpp
  214. UIProcess/API/gtk/WebKitWebContext.h
  215. UIProcess/API/gtk/WebKitWebContextPrivate.h
  216. UIProcess/API/gtk/WebKitWebInspector.cpp
  217. UIProcess/API/gtk/WebKitWebInspector.h
  218. UIProcess/API/gtk/WebKitWebInspectorPrivate.h
  219. UIProcess/API/gtk/WebKitWebResource.cpp
  220. UIProcess/API/gtk/WebKitWebResource.h
  221. UIProcess/API/gtk/WebKitWebResourcePrivate.h
  222. UIProcess/API/gtk/WebKitWebViewBaseAccessible.cpp
  223. UIProcess/API/gtk/WebKitWebViewBaseAccessible.h
  224. UIProcess/API/gtk/WebKitWebViewBase.cpp
  225. UIProcess/API/gtk/WebKitWebViewBase.h
  226. UIProcess/API/gtk/WebKitWebViewBasePrivate.h
  227. UIProcess/API/gtk/WebKitWebView.cpp
  228. UIProcess/API/gtk/WebKitWebViewGroup.cpp
  229. UIProcess/API/gtk/WebKitWebViewGroup.h
  230. UIProcess/API/gtk/WebKitWebViewGroupPrivate.h
  231. UIProcess/API/gtk/WebKitWebView.h
  232. UIProcess/API/gtk/WebKitWebViewPrivate.h
  233. UIProcess/API/gtk/WebKitWindowProperties.cpp
  234. UIProcess/API/gtk/WebKitWindowProperties.h
  235. UIProcess/API/gtk/WebKitWindowPropertiesPrivate.h
  236. UIProcess/API/gtk/WebViewBaseInputMethodFilter.cpp
  237. UIProcess/API/gtk/WebViewBaseInputMethodFilter.h
  238. UIProcess/API/C/gtk/WKFullScreenClientGtk.cpp
  239. UIProcess/API/C/gtk/WKInspectorClientGtk.cpp
  240. UIProcess/API/C/gtk/WKView.cpp
  241. WebProcess/gtk/WebProcessMainGtk.cpp
  242. )
  243. set(WebKit2_INSTALLED_HEADERS
  244. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitBackForwardList.h
  245. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitBackForwardListItem.h
  246. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitContextMenu.h
  247. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitContextMenuActions.h
  248. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitContextMenuItem.h
  249. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitCookieManager.h
  250. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitDefines.h
  251. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitDownload.h
  252. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitEditingCommands.h
  253. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitError.h
  254. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitFaviconDatabase.h
  255. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitFileChooserRequest.h
  256. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitFindController.h
  257. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitFormSubmissionRequest.h
  258. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitForwardDeclarations.h
  259. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitGeolocationPermissionRequest.h
  260. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitHitTestResult.h
  261. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitJavascriptResult.h
  262. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitMimeInfo.h
  263. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitNavigationPolicyDecision.h
  264. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitPermissionRequest.h
  265. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitPlugin.h
  266. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitPolicyDecision.h
  267. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitPrintOperation.h
  268. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitResponsePolicyDecision.h
  269. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitScriptDialog.h
  270. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitSecurityManager.h
  271. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitSettings.h
  272. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitURIRequest.h
  273. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitURIResponse.h
  274. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitURISchemeRequest.h
  275. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebContext.h
  276. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebInspector.h
  277. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebResource.h
  278. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebView.h
  279. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebViewBase.h
  280. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWebViewGroup.h
  281. ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitWindowProperties.h
  282. ${WEBKIT2_DIR}/UIProcess/API/gtk/webkit2.h
  283. ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.h
  284. ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h
  285. ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h
  286. )
  287. list(APPEND WebKit2_MESSAGES_IN_FILES
  288. UIProcess/soup/WebSoupRequestManagerProxy.messages.in
  289. WebProcess/soup/WebSoupRequestManager.messages.in
  290. )
  291. # This is necessary because of a conflict between the GTK+ API WebKitVersion.h and one generated by WebCore.
  292. list(INSERT WebKit2_INCLUDE_DIRECTORIES 0
  293. "${WEBKIT2_FORWARDING_HEADERS_DIR}"
  294. "${WEBKIT2_BUILT_API_DIR}"
  295. "${DERIVED_SOURCES_WEBKIT2GTK_DIR}"
  296. )
  297. list(APPEND WebKit2_INCLUDE_DIRECTORIES
  298. "${WEBCORE_DIR}/platform/gtk"
  299. "${WEBCORE_DIR}/platform/graphics/cairo"
  300. "${WEBCORE_DIR}/platform/network/soup"
  301. "${WEBCORE_DIR}/platform/text/enchant"
  302. "${WEBKIT2_DIR}/Shared/API/c/gtk"
  303. "${WEBKIT2_DIR}/Shared/Downloads/soup"
  304. "${WEBKIT2_DIR}/Shared/gtk"
  305. "${WEBKIT2_DIR}/Shared/soup"
  306. "${WEBKIT2_DIR}/UIProcess/API/C/cairo"
  307. "${WEBKIT2_DIR}/UIProcess/API/C/gtk"
  308. "${WEBKIT2_DIR}/UIProcess/API/C/soup"
  309. "${WEBKIT2_DIR}/UIProcess/API/cpp/gtk"
  310. "${WEBKIT2_DIR}/UIProcess/API/gtk"
  311. "${WEBKIT2_DIR}/UIProcess/gtk"
  312. "${WEBKIT2_DIR}/UIProcess/soup"
  313. "${WEBKIT2_DIR}/WebProcess/gtk"
  314. "${WEBKIT2_DIR}/WebProcess/soup"
  315. "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/gtk"
  316. "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/soup"
  317. "${WEBKIT2_DIR}/WebProcess/WebPage/atk"
  318. "${WEBKIT2_DIR}/WebProcess/WebPage/gtk"
  319. "${WTF_DIR}/wtf/gtk/"
  320. "${WTF_DIR}/wtf/gobject"
  321. ${WTF_DIR}
  322. ${CAIRO_INCLUDE_DIRS}
  323. ${ENCHANT_INCLUDE_DIRS}
  324. ${GLIB_INCLUDE_DIRS}
  325. ${GTK3_INCLUDE_DIRS}
  326. ${LIBSOUP_INCLUDE_DIRS}
  327. )
  328. list(APPEND WebProcess_SOURCES
  329. gtk/MainGtk.cpp
  330. )
  331. set(WebKit2_MARSHAL_LIST ${WEBKIT2_DIR}/UIProcess/API/gtk/webkit2marshal.list)
  332. add_custom_command(
  333. OUTPUT ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.cpp
  334. ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.h
  335. MAIN_DEPENDENCY ${WebKit2_MARSHAL_LIST}
  336. COMMAND echo extern \"C\" { > ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.cpp
  337. COMMAND glib-genmarshal --prefix=webkit_marshal ${WebKit2_MARSHAL_LIST} --body >> ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.cpp
  338. COMMAND echo } >> ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.cpp
  339. COMMAND glib-genmarshal --prefix=webkit_marshal ${WebKit2_MARSHAL_LIST} --header > ${WEBKIT2_BUILT_API_DIR}/WebKitMarshal.h
  340. VERBATIM)
  341. add_custom_command(
  342. OUTPUT ${WEBKIT2_BUILT_API_DIR}/WebKitEnumTypes.h
  343. ${WEBKIT2_BUILT_API_DIR}/WebKitEnumTypes.cpp
  344. DEPENDS ${WebKit2_INSTALLED_HEADERS}
  345. COMMAND glib-mkenums --template ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitEnumTypes.h.template ${WebKit2_INSTALLED_HEADERS} | sed s/web_kit/webkit/ | sed s/WEBKIT_TYPE_KIT/WEBKIT_TYPE/ > ${WEBKIT2_BUILT_API_DIR}/WebKitEnumTypes.h
  346. COMMAND glib-mkenums --template ${WEBKIT2_DIR}/UIProcess/API/gtk/WebKitEnumTypes.cpp.template ${WebKit2_INSTALLED_HEADERS} | sed s/web_kit/webkit/ > ${WEBKIT2_BUILT_API_DIR}/WebKitEnumTypes.cpp
  347. VERBATIM)
  348. # This symbolic link allows includes like #include <webkit2/WebkitWebView.h> which simulates installed headers.
  349. add_custom_target(fake-installed-headers
  350. mkdir -p ${DERIVED_SOURCES_WEBKIT2_DIR}/webkit2gtk/include
  351. COMMAND ln -n -s -f ${WEBKIT2_DIR}/UIProcess/API/gtk ${WEBKIT2_FORWARDING_HEADERS_DIR}/webkit2
  352. )
  353. add_custom_target(gtk-forwarding-headers
  354. COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include gtk
  355. )
  356. add_custom_target(soup-forwarding-headers
  357. COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
  358. )
  359. set(WEBKIT2_EXTRA_DEPENDENCIES
  360. gtk-forwarding-headers
  361. soup-forwarding-headers
  362. fake-installed-headers
  363. )
  364. if (ENABLE_PLUGIN_PROCESS)
  365. add_definitions(-DENABLE_PLUGIN_PROCESS=1)
  366. set(PluginProcess_EXECUTABLE_NAME WebKitPluginProcess)
  367. list(APPEND PluginProcess_INCLUDE_DIRECTORIES
  368. "${WEBKIT2_DIR}/PluginProcess/unix"
  369. )
  370. include_directories(${PluginProcess_INCLUDE_DIRECTORIES})
  371. list(APPEND PluginProcess_SOURCES
  372. ${WEBKIT2_DIR}/unix/PluginMainUnix.cpp
  373. )
  374. set(PluginProcess_LIBRARIES
  375. WebKit2
  376. )
  377. add_executable(${PluginProcess_EXECUTABLE_NAME} ${PluginProcess_SOURCES})
  378. target_link_libraries(${PluginProcess_EXECUTABLE_NAME} ${PluginProcess_LIBRARIES})
  379. install(TARGETS ${PluginProcess_EXECUTABLE_NAME} DESTINATION "${EXEC_INSTALL_DIR}")
  380. endif () # ENABLE_PLUGIN_PROCESS