diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f8febb90..9023d2072 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -63,6 +63,18 @@ option(YUZU_DOWNLOAD_TIME_ZONE_DATA "Always download time zone binaries" OFF) | |||
| 63 | 63 | ||
| 64 | CMAKE_DEPENDENT_OPTION(YUZU_USE_FASTER_LD "Check if a faster linker is available" ON "NOT WIN32" OFF) | 64 | CMAKE_DEPENDENT_OPTION(YUZU_USE_FASTER_LD "Check if a faster linker is available" ON "NOT WIN32" OFF) |
| 65 | 65 | ||
| 66 | set(DEFAULT_ENABLE_OPENSSL ON) | ||
| 67 | if (ANDROID OR WIN32 OR APPLE) | ||
| 68 | # - Windows defaults to the Schannel backend. | ||
| 69 | # - macOS defaults to the SecureTransport backend. | ||
| 70 | # - Android currently has no SSL backend as the NDK doesn't include any SSL | ||
| 71 | # library; a proper 'native' backend would have to go through Java. | ||
| 72 | # But you can force builds for those platforms to use OpenSSL if you have | ||
| 73 | # your own copy of it. | ||
| 74 | set(DEFAULT_ENABLE_OPENSSL OFF) | ||
| 75 | endif() | ||
| 76 | option(ENABLE_OPENSSL "Enable OpenSSL backend for ISslConnection" ${DEFAULT_ENABLE_OPENSSL}) | ||
| 77 | |||
| 66 | # On Android, fetch and compile libcxx before doing anything else | 78 | # On Android, fetch and compile libcxx before doing anything else |
| 67 | if (ANDROID) | 79 | if (ANDROID) |
| 68 | set(CMAKE_SKIP_INSTALL_RULES ON) | 80 | set(CMAKE_SKIP_INSTALL_RULES ON) |
| @@ -281,6 +293,7 @@ find_package(LLVM MODULE COMPONENTS Demangle) | |||
| 281 | find_package(lz4 REQUIRED) | 293 | find_package(lz4 REQUIRED) |
| 282 | find_package(nlohmann_json 3.8 REQUIRED) | 294 | find_package(nlohmann_json 3.8 REQUIRED) |
| 283 | find_package(Opus 1.3 MODULE) | 295 | find_package(Opus 1.3 MODULE) |
| 296 | find_package(VulkanMemoryAllocator CONFIG) | ||
| 284 | find_package(ZLIB 1.2 REQUIRED) | 297 | find_package(ZLIB 1.2 REQUIRED) |
| 285 | find_package(zstd 1.5 REQUIRED) | 298 | find_package(zstd 1.5 REQUIRED) |
| 286 | 299 | ||
| @@ -322,6 +335,10 @@ if (MINGW) | |||
| 322 | find_library(MSWSOCK_LIBRARY mswsock REQUIRED) | 335 | find_library(MSWSOCK_LIBRARY mswsock REQUIRED) |
| 323 | endif() | 336 | endif() |
| 324 | 337 | ||
| 338 | if(ENABLE_OPENSSL) | ||
| 339 | find_package(OpenSSL 1.1.1 REQUIRED) | ||
| 340 | endif() | ||
| 341 | |||
| 325 | # Please consider this as a stub | 342 | # Please consider this as a stub |
| 326 | if(ENABLE_QT6 AND Qt6_LOCATION) | 343 | if(ENABLE_QT6 AND Qt6_LOCATION) |
| 327 | list(APPEND CMAKE_PREFIX_PATH "${Qt6_LOCATION}") | 344 | list(APPEND CMAKE_PREFIX_PATH "${Qt6_LOCATION}") |