Changeset 294906 in webkit
- Timestamp:
- May 26, 2022, 4:13:12 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/Source/cmake/OptionsPlayStation.cmake (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/cmake/OptionsPlayStation.cmake
r292313 r294906 19 19 set(ENABLE_WEBKIT_LEGACY OFF) 20 20 set(ENABLE_WEBINSPECTORUI OFF) 21 22 # Specify third party library directory 23 if (NOT WEBKIT_LIBRARIES_DIR) 24 if (DEFINED ENV{WEBKIT_LIBRARIES}) 25 set(WEBKIT_LIBRARIES_DIR "$ENV{WEBKIT_LIBRARIES}" CACHE PATH "Path to PlayStationRequirements") 26 else () 27 set(WEBKIT_LIBRARIES_DIR "${CMAKE_SOURCE_DIR}/WebKitLibraries/playstation" CACHE PATH "Path to PlayStationRequirements") 28 endif () 29 endif () 30 31 if (DEFINED ENV{WEBKIT_IGNORE_PATH}) 32 set(CMAKE_IGNORE_PATH $ENV{WEBKIT_IGNORE_PATH}) 33 endif () 34 35 list(APPEND CMAKE_PREFIX_PATH ${WEBKIT_LIBRARIES_DIR}) 36 37 # Find libraries 38 find_library(C_STD_LIBRARY c) 39 find_library(KERNEL_LIBRARY kernel) 40 find_package(ICU 61.2 REQUIRED COMPONENTS data i18n uc) 41 42 set(USE_WPE_BACKEND_PLAYSTATION OFF) 43 44 if (ENABLE_WEBCORE) 45 set(WebKitRequirements_COMPONENTS 46 JPEG 47 LibPSL 48 LibXml2 49 ProcessLauncher 50 SQLite3 51 ZLIB 52 ) 53 54 find_package(WPEBackendPlayStation) 55 if (WPEBackendPlayStation_FOUND) 56 # WPE::libwpe is compiled into the PlayStation backend 57 set(WPE_NAMES SceWPE) 58 find_package(WPE REQUIRED) 59 60 SET_AND_EXPOSE_TO_BUILD(USE_WPE_BACKEND_PLAYSTATION ON) 61 else () 62 list(APPEND WebKitRequirements_COMPONENTS libwpe) 63 endif () 64 65 find_package(WebKitRequirements REQUIRED COMPONENTS ${WebKitRequirements_COMPONENTS}) 66 67 # The OpenGL ES implementation is in the same library as the EGL implementation 68 set(OpenGLES2_NAMES ${EGL_NAMES}) 69 70 find_package(CURL 7.77.0 REQUIRED) 71 find_package(Cairo REQUIRED) 72 find_package(EGL REQUIRED) 73 find_package(Fontconfig REQUIRED) 74 find_package(Freetype REQUIRED) 75 find_package(HarfBuzz REQUIRED COMPONENTS ICU) 76 find_package(OpenGLES2 REQUIRED) 77 find_package(OpenSSL REQUIRED) 78 find_package(PNG REQUIRED) 79 find_package(Threads REQUIRED) 80 find_package(WebP REQUIRED COMPONENTS demux) 81 endif () 21 82 22 83 WEBKIT_OPTION_BEGIN() … … 94 155 WEBKIT_OPTION_END() 95 156 96 if (DEFINED ENV{WEBKIT_IGNORE_PATH})97 set(CMAKE_IGNORE_PATH $ENV{WEBKIT_IGNORE_PATH})98 endif ()99 100 157 # Do not use a separate directory based on configuration when building 101 158 # with the Visual Studio generator … … 111 168 set(CMAKE_VISIBILITY_INLINES_HIDDEN ON) 112 169 113 # Specify third party library directory114 if (NOT WEBKIT_LIBRARIES_DIR)115 if (DEFINED ENV{WEBKIT_LIBRARIES})116 set(WEBKIT_LIBRARIES_DIR "$ENV{WEBKIT_LIBRARIES}" CACHE PATH "Path to PlayStationRequirements")117 else ()118 set(WEBKIT_LIBRARIES_DIR "${CMAKE_SOURCE_DIR}/WebKitLibraries/playstation" CACHE PATH "Path to PlayStationRequirements")119 endif ()120 endif ()121 122 list(APPEND CMAKE_PREFIX_PATH ${WEBKIT_LIBRARIES_DIR})123 124 set(WebKitRequirements_COMPONENTS125 JPEG126 LibPSL127 LibXml2128 ProcessLauncher129 SQLite3130 ZLIB131 )132 133 find_package(WPEBackendPlayStation)134 if (WPEBackendPlayStation_FOUND)135 # WPE::libwpe is compiled into the PlayStation backend136 set(WPE_NAMES SceWPE)137 find_package(WPE REQUIRED)138 139 SET_AND_EXPOSE_TO_BUILD(USE_WPE_BACKEND_PLAYSTATION ON)140 else ()141 list(APPEND WebKitRequirements_COMPONENTS libwpe)142 endif ()143 144 find_library(C_STD_LIBRARY c)145 find_library(KERNEL_LIBRARY kernel)146 find_package(WebKitRequirements REQUIRED COMPONENTS ${WebKitRequirements_COMPONENTS})147 148 # The OpenGL ES implementation is in the same library as the EGL implementation149 set(OpenGLES2_NAMES ${EGL_NAMES})150 151 find_package(Cairo REQUIRED)152 find_package(CURL 7.77.0 REQUIRED)153 find_package(EGL REQUIRED)154 find_package(Fontconfig REQUIRED)155 find_package(Freetype REQUIRED)156 find_package(HarfBuzz REQUIRED COMPONENTS ICU)157 find_package(ICU 61.2 REQUIRED COMPONENTS data i18n uc)158 find_package(OpenGLES2 REQUIRED)159 find_package(OpenSSL REQUIRED)160 find_package(PNG REQUIRED)161 find_package(Threads REQUIRED)162 find_package(WebP REQUIRED COMPONENTS demux)163 164 170 set(CMAKE_C_STANDARD_LIBRARIES 165 171 "${CMAKE_C_STANDARD_LIBRARIES} ${C_STD_LIBRARY}" 166 )172 ) 167 173 set(CMAKE_CXX_STANDARD_LIBRARIES 168 174 "${CMAKE_CXX_STANDARD_LIBRARIES} ${C_STD_LIBRARY}" 169 )175 ) 170 176 171 177 SET_AND_EXPOSE_TO_BUILD(HAVE_PTHREAD_SETNAME_NP ON) 172 178 179 # Platform options 173 180 SET_AND_EXPOSE_TO_BUILD(USE_CAIRO ON) 174 181 SET_AND_EXPOSE_TO_BUILD(USE_CURL ON) … … 191 198 SET_AND_EXPOSE_TO_BUILD(USE_TILED_BACKING_STORE ON) 192 199 200 # WebDriver options 193 201 if (ENABLE_WEBDRIVER) 194 202 SET_AND_EXPOSE_TO_BUILD(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS ON)
Note:
See TracChangeset
for help on using the changeset viewer.