commit-queue@webkit.org | 65deb1f | 2017-05-25 02:16:33 +0000 | [diff] [blame] | 1 | include(platform/Cairo.cmake) |
commit-queue@webkit.org | 76bf3f5 | 2017-05-26 21:41:19 +0000 | [diff] [blame] | 2 | include(platform/FreeType.cmake) |
zandobersek@gmail.com | f0aac23 | 2017-07-20 05:57:35 +0000 | [diff] [blame] | 3 | include(platform/GCrypt.cmake) |
commit-queue@webkit.org | 77ba605 | 2016-02-13 19:12:28 +0000 | [diff] [blame] | 4 | include(platform/GStreamer.cmake) |
commit-queue@webkit.org | b393fab | 2016-02-10 22:01:18 +0000 | [diff] [blame] | 5 | include(platform/ImageDecoders.cmake) |
don.olmstead@sony.com | 3a69521 | 2019-04-18 23:20:26 +0000 | [diff] [blame] | 6 | include(platform/Soup.cmake) |
mcatanzaro@igalia.com | 941d098 | 2017-11-01 12:22:53 +0000 | [diff] [blame] | 7 | include(platform/TextureMapper.cmake) |
commit-queue@webkit.org | b393fab | 2016-02-10 22:01:18 +0000 | [diff] [blame] | 8 | |
mrobinson@webkit.org | 7abfe3d | 2015-04-29 16:20:34 +0000 | [diff] [blame] | 9 | set(WebCore_OUTPUT_NAME WebCoreGTK) |
| 10 | |
mcatanzaro@igalia.com | 462cf68 | 2017-10-31 15:16:07 +0000 | [diff] [blame] | 11 | list(APPEND WebCore_UNIFIED_SOURCE_LIST_FILES |
| 12 | "SourcesGTK.txt" |
| 13 | |
| 14 | "platform/SourcesGLib.txt" |
mcatanzaro@igalia.com | 462cf68 | 2017-10-31 15:16:07 +0000 | [diff] [blame] | 15 | ) |
| 16 | |
don.olmstead@sony.com | 3a69521 | 2019-04-18 23:20:26 +0000 | [diff] [blame] | 17 | list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 18 | "${WEBCORE_DIR}/accessibility/atk" |
| 19 | "${WEBCORE_DIR}/editing/atk" |
| 20 | "${WEBCORE_DIR}/page/gtk" |
don.olmstead@sony.com | a3504bf | 2018-11-29 18:36:29 +0000 | [diff] [blame] | 21 | "${WEBCORE_DIR}/platform/generic" |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 22 | "${WEBCORE_DIR}/platform/gtk" |
mrobinson@webkit.org | 0373a74 | 2013-05-21 18:49:40 +0000 | [diff] [blame] | 23 | "${WEBCORE_DIR}/platform/graphics/egl" |
| 24 | "${WEBCORE_DIR}/platform/graphics/glx" |
commit-queue@webkit.org | 8245958 | 2018-06-07 18:31:47 +0000 | [diff] [blame] | 25 | "${WEBCORE_DIR}/platform/graphics/gstreamer" |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 26 | "${WEBCORE_DIR}/platform/graphics/gtk" |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 27 | "${WEBCORE_DIR}/platform/graphics/opengl" |
mario@webkit.org | 1795391 | 2013-11-07 15:18:43 +0000 | [diff] [blame] | 28 | "${WEBCORE_DIR}/platform/graphics/opentype" |
zandobersek@gmail.com | 476640a | 2014-09-15 11:35:08 +0000 | [diff] [blame] | 29 | "${WEBCORE_DIR}/platform/graphics/wayland" |
carlosgc@webkit.org | 91debb8 | 2015-05-03 15:20:34 +0000 | [diff] [blame] | 30 | "${WEBCORE_DIR}/platform/graphics/x11" |
philn@webkit.org | ed394fc | 2018-08-05 09:26:00 +0000 | [diff] [blame] | 31 | "${WEBCORE_DIR}/platform/mediacapabilities" |
adam.bergkvist@ericsson.com | b6432d8 | 2016-03-07 21:25:03 +0000 | [diff] [blame] | 32 | "${WEBCORE_DIR}/platform/mediastream/gtk" |
commit-queue@webkit.org | 8245958 | 2018-06-07 18:31:47 +0000 | [diff] [blame] | 33 | "${WEBCORE_DIR}/platform/mediastream/gstreamer" |
mrobinson@webkit.org | 7529c73 | 2014-01-06 18:33:15 +0000 | [diff] [blame] | 34 | "${WEBCORE_DIR}/platform/mock/mediasource" |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 35 | "${WEBCORE_DIR}/platform/network/gtk" |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 36 | "${WEBCORE_DIR}/platform/text/gtk" |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 37 | ) |
| 38 | |
carlosgc@webkit.org | 3397455 | 2019-05-28 06:36:34 +0000 | [diff] [blame] | 39 | if (USE_WPE_RENDERER) |
| 40 | list(APPEND WebCore_INCLUDE_DIRECTORIES |
| 41 | "${WEBCORE_DIR}/platform/graphics/libwpe" |
| 42 | ) |
| 43 | endif () |
| 44 | |
don.olmstead@sony.com | 3a69521 | 2019-04-18 23:20:26 +0000 | [diff] [blame] | 45 | list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS |
| 46 | platform/graphics/x11/PlatformDisplayX11.h |
| 47 | platform/graphics/x11/XErrorTrapper.h |
| 48 | platform/graphics/x11/XUniquePtr.h |
| 49 | platform/graphics/x11/XUniqueResource.h |
| 50 | |
| 51 | platform/gtk/CompositionResults.h |
| 52 | platform/gtk/GRefPtrGtk.h |
| 53 | platform/gtk/GUniquePtrGtk.h |
| 54 | platform/gtk/GtkUtilities.h |
don.olmstead@sony.com | 3a69521 | 2019-04-18 23:20:26 +0000 | [diff] [blame] | 55 | platform/gtk/PasteboardHelper.h |
| 56 | platform/gtk/SelectionData.h |
| 57 | |
| 58 | platform/text/enchant/TextCheckerEnchant.h |
| 59 | ) |
| 60 | |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 61 | list(APPEND WebCore_USER_AGENT_STYLE_SHEETS |
| 62 | ${WEBCORE_DIR}/css/mediaControlsGtk.css |
| 63 | ) |
| 64 | |
calvaris@igalia.com | f7c6451 | 2014-02-13 11:28:34 +0000 | [diff] [blame] | 65 | set(WebCore_USER_AGENT_SCRIPTS |
timothy_horton@apple.com | b68592c | 2018-10-29 21:22:44 +0000 | [diff] [blame] | 66 | ${WEBCORE_DIR}/en.lproj/mediaControlsLocalizedStrings.js |
dino@apple.com | b12d28e | 2014-09-08 22:33:21 +0000 | [diff] [blame] | 67 | ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.js |
calvaris@igalia.com | f7c6451 | 2014-02-13 11:28:34 +0000 | [diff] [blame] | 68 | ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsGtk.js |
| 69 | ) |
| 70 | |
| 71 | set(WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES ${WEBCORE_DIR}/platform/gtk/RenderThemeGtk.cpp) |
| 72 | |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 73 | list(APPEND WebCore_LIBRARIES |
| 74 | ${ATK_LIBRARIES} |
paroga@webkit.org | afcfc2f5 | 2013-09-23 08:26:01 +0000 | [diff] [blame] | 75 | ${ENCHANT_LIBRARIES} |
carlosgc@webkit.org | 67edc45 | 2019-06-20 11:08:29 +0000 | [diff] [blame] | 76 | ${GDK_LIBRARIES} |
paroga@webkit.org | afcfc2f5 | 2013-09-23 08:26:01 +0000 | [diff] [blame] | 77 | ${GLIB_GIO_LIBRARIES} |
| 78 | ${GLIB_GMODULE_LIBRARIES} |
| 79 | ${GLIB_GOBJECT_LIBRARIES} |
| 80 | ${GLIB_LIBRARIES} |
carlosgc@webkit.org | 67edc45 | 2019-06-20 11:08:29 +0000 | [diff] [blame] | 81 | ${GTK_LIBRARIES} |
mcatanzaro@igalia.com | 1f0e60d | 2018-10-15 15:02:59 +0000 | [diff] [blame] | 82 | ${LIBSECCOMP_LIBRARIES} |
mrobinson@webkit.org | fb7cf36 | 2014-03-17 16:42:54 +0000 | [diff] [blame] | 83 | ${LIBSECRET_LIBRARIES} |
commit-queue@webkit.org | 34e2b42 | 2017-12-20 01:10:11 +0000 | [diff] [blame] | 84 | ${LIBTASN1_LIBRARIES} |
mrobinson@webkit.org | 216ddcb | 2015-04-29 22:46:15 +0000 | [diff] [blame] | 85 | ${HYPHEN_LIBRARIES} |
gns@gnome.org | 4862022 | 2017-10-04 07:46:25 +0000 | [diff] [blame] | 86 | ${UPOWERGLIB_LIBRARIES} |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 87 | ${X11_X11_LIB} |
| 88 | ${X11_Xcomposite_LIB} |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 89 | ${X11_Xdamage_LIB} |
paroga@webkit.org | afcfc2f5 | 2013-09-23 08:26:01 +0000 | [diff] [blame] | 90 | ${X11_Xrender_LIB} |
rakuco@webkit.org | f5a8e01 | 2014-04-04 14:03:20 +0000 | [diff] [blame] | 91 | ${X11_Xt_LIB} |
paroga@webkit.org | afcfc2f5 | 2013-09-23 08:26:01 +0000 | [diff] [blame] | 92 | ${ZLIB_LIBRARIES} |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 93 | ) |
| 94 | |
carlosgc@webkit.org | 3397455 | 2019-05-28 06:36:34 +0000 | [diff] [blame] | 95 | if (USE_WPE_RENDERER) |
| 96 | list(APPEND WebCore_LIBRARIES |
| 97 | ${WPE_LIBRARIES} |
| 98 | ) |
| 99 | endif () |
| 100 | |
mcatanzaro@igalia.com | 79b0548 | 2015-05-19 01:35:57 +0000 | [diff] [blame] | 101 | list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 102 | ${ATK_INCLUDE_DIRS} |
mrobinson@webkit.org | 7529c73 | 2014-01-06 18:33:15 +0000 | [diff] [blame] | 103 | ${ENCHANT_INCLUDE_DIRS} |
carlosgc@webkit.org | 67edc45 | 2019-06-20 11:08:29 +0000 | [diff] [blame] | 104 | ${GDK_INCLUDE_DIRS} |
mrobinson@webkit.org | 7529c73 | 2014-01-06 18:33:15 +0000 | [diff] [blame] | 105 | ${GIO_UNIX_INCLUDE_DIRS} |
| 106 | ${GLIB_INCLUDE_DIRS} |
carlosgc@webkit.org | 67edc45 | 2019-06-20 11:08:29 +0000 | [diff] [blame] | 107 | ${GTK_INCLUDE_DIRS} |
mcatanzaro@igalia.com | 1f0e60d | 2018-10-15 15:02:59 +0000 | [diff] [blame] | 108 | ${LIBSECCOMP_INCLUDE_DIRS} |
mrobinson@webkit.org | fb7cf36 | 2014-03-17 16:42:54 +0000 | [diff] [blame] | 109 | ${LIBSECRET_INCLUDE_DIRS} |
commit-queue@webkit.org | 34e2b42 | 2017-12-20 01:10:11 +0000 | [diff] [blame] | 110 | ${LIBTASN1_INCLUDE_DIRS} |
gns@gnome.org | 4862022 | 2017-10-04 07:46:25 +0000 | [diff] [blame] | 111 | ${UPOWERGLIB_INCLUDE_DIRS} |
mrobinson@webkit.org | 7529c73 | 2014-01-06 18:33:15 +0000 | [diff] [blame] | 112 | ${ZLIB_INCLUDE_DIRS} |
mrobinson@webkit.org | 6f44019 | 2013-05-16 18:16:56 +0000 | [diff] [blame] | 113 | ) |
| 114 | |
carlosgc@webkit.org | 3397455 | 2019-05-28 06:36:34 +0000 | [diff] [blame] | 115 | if (USE_WPE_RENDERER) |
| 116 | list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES |
| 117 | ${WPE_INCLUDE_DIRS} |
| 118 | ) |
| 119 | endif () |
| 120 | |
dino@apple.com | 8a0559b | 2018-02-17 00:48:36 +0000 | [diff] [blame] | 121 | if (USE_OPENGL_ES) |
carlosgc@webkit.org | 637bc29 | 2015-03-10 13:19:35 +0000 | [diff] [blame] | 122 | list(APPEND WebCore_SOURCES |
| 123 | platform/graphics/opengl/Extensions3DOpenGLES.cpp |
| 124 | platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp |
| 125 | ) |
| 126 | endif () |
| 127 | |
mrobinson@webkit.org | 2c91b42 | 2015-05-01 23:38:18 +0000 | [diff] [blame] | 128 | if (USE_OPENGL) |
carlosgc@webkit.org | 637bc29 | 2015-03-10 13:19:35 +0000 | [diff] [blame] | 129 | list(APPEND WebCore_SOURCES |
| 130 | platform/graphics/OpenGLShims.cpp |
| 131 | |
| 132 | platform/graphics/opengl/Extensions3DOpenGL.cpp |
| 133 | platform/graphics/opengl/GraphicsContext3DOpenGL.cpp |
| 134 | ) |
| 135 | endif () |
| 136 | |
zandobersek@gmail.com | d58e0c4 | 2014-08-22 08:19:52 +0000 | [diff] [blame] | 137 | if (ENABLE_WAYLAND_TARGET) |
don.olmstead@sony.com | 3a69521 | 2019-04-18 23:20:26 +0000 | [diff] [blame] | 138 | list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS |
| 139 | platform/graphics/wayland/PlatformDisplayWayland.h |
| 140 | platform/graphics/wayland/WlUniquePtr.h |
| 141 | ) |
mcatanzaro@igalia.com | 79b0548 | 2015-05-19 01:35:57 +0000 | [diff] [blame] | 142 | list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES |
clopez@igalia.com | 7b007e6 | 2015-04-01 14:30:18 +0000 | [diff] [blame] | 143 | ${WAYLAND_INCLUDE_DIRS} |
zandobersek@gmail.com | 476640a | 2014-09-15 11:35:08 +0000 | [diff] [blame] | 144 | ) |
| 145 | list(APPEND WebCore_LIBRARIES |
| 146 | ${WAYLAND_LIBRARIES} |
| 147 | ) |
zandobersek@gmail.com | d58e0c4 | 2014-08-22 08:19:52 +0000 | [diff] [blame] | 148 | endif () |
| 149 | |
mcatanzaro@igalia.com | 79b0548 | 2015-05-19 01:35:57 +0000 | [diff] [blame] | 150 | include_directories(SYSTEM |
| 151 | ${WebCore_SYSTEM_INCLUDE_DIRECTORIES} |
| 152 | ) |
| 153 | |
carlosgc@webkit.org | 9e07f02 | 2019-04-30 09:06:23 +0000 | [diff] [blame] | 154 | list(APPEND WebCoreTestSupport_LIBRARIES PRIVATE ${GTK_LIBRARIES}) |
mcatanzaro@igalia.com | f62dda5 | 2019-05-10 18:03:56 +0000 | [diff] [blame] | 155 | list(APPEND WebCoreTestSupport_SYSTEM_INCLUDE_DIRECTORIES ${GTK_INCLUDE_DIRS}) |
carlosgc@webkit.org | 9e07f02 | 2019-04-30 09:06:23 +0000 | [diff] [blame] | 156 | |
mrobinson@webkit.org | 91032b6 | 2014-03-06 03:34:17 +0000 | [diff] [blame] | 157 | add_definitions(-DBUILDING_WEBKIT) |
commit-queue@webkit.org | f5e23dc | 2014-08-11 08:59:15 +0000 | [diff] [blame] | 158 | |
achristensen@apple.com | b9fd60a | 2015-09-25 22:04:32 +0000 | [diff] [blame] | 159 | if (ENABLE_SMOOTH_SCROLLING) |
| 160 | list(APPEND WebCore_SOURCES |
carlosgc@webkit.org | 4a67691 | 2016-01-27 10:32:59 +0000 | [diff] [blame] | 161 | platform/ScrollAnimationSmooth.cpp |
achristensen@apple.com | b9fd60a | 2015-09-25 22:04:32 +0000 | [diff] [blame] | 162 | ) |
| 163 | endif () |