summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt17
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
64CMAKE_DEPENDENT_OPTION(YUZU_USE_FASTER_LD "Check if a faster linker is available" ON "NOT WIN32" OFF) 64CMAKE_DEPENDENT_OPTION(YUZU_USE_FASTER_LD "Check if a faster linker is available" ON "NOT WIN32" OFF)
65 65
66set(DEFAULT_ENABLE_OPENSSL ON)
67if (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)
75endif()
76option(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
67if (ANDROID) 79if (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)
281find_package(lz4 REQUIRED) 293find_package(lz4 REQUIRED)
282find_package(nlohmann_json 3.8 REQUIRED) 294find_package(nlohmann_json 3.8 REQUIRED)
283find_package(Opus 1.3 MODULE) 295find_package(Opus 1.3 MODULE)
296find_package(VulkanMemoryAllocator CONFIG)
284find_package(ZLIB 1.2 REQUIRED) 297find_package(ZLIB 1.2 REQUIRED)
285find_package(zstd 1.5 REQUIRED) 298find_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)
323endif() 336endif()
324 337
338if(ENABLE_OPENSSL)
339 find_package(OpenSSL 1.1.1 REQUIRED)
340endif()
341
325# Please consider this as a stub 342# Please consider this as a stub
326if(ENABLE_QT6 AND Qt6_LOCATION) 343if(ENABLE_QT6 AND Qt6_LOCATION)
327 list(APPEND CMAKE_PREFIX_PATH "${Qt6_LOCATION}") 344 list(APPEND CMAKE_PREFIX_PATH "${Qt6_LOCATION}")