summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar comex2023-06-25 17:36:51 -0700
committerGravatar comex2023-06-25 17:36:51 -0700
commit8b9c077826dbbbdc0188936d1d83f7f5e0ded8dd (patch)
tree207d5727d1363e25c064066205c0a51282006244 /CMakeLists.txt
parentre-format (diff)
downloadyuzu-8b9c077826dbbbdc0188936d1d83f7f5e0ded8dd.tar.gz
yuzu-8b9c077826dbbbdc0188936d1d83f7f5e0ded8dd.tar.xz
yuzu-8b9c077826dbbbdc0188936d1d83f7f5e0ded8dd.zip
Disable OpenSSL on Android.
Apparently Android uses BoringSSL, but doesn't actually expose headers for it in the NDK.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bd3808515..51b35d31a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,7 +63,16 @@ 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
66CMAKE_DEPENDENT_OPTION(ENABLE_OPENSSL "Enable OpenSSL backend for ISslConnection" ON "NOT WIN32" OFF) 66set(DEFAULT_ENABLE_OPENSSL ON)
67if (ANDROID OR WIN32)
68 # - Windows defaults to the Schannel backend.
69 # - Android currently has no SSL backend as the NDK doesn't include any SSL
70 # library; a proper 'native' backend would have to go through Java.
71 # But you can force builds for those platforms to use OpenSSL if you have
72 # your own copy of it.
73 set(DEFAULT_ENABLE_OPENSSL OFF)
74endif()
75option(ENABLE_OPENSSL "Enable OpenSSL backend for ISslConnection" ${DEFAULT_ENABLE_OPENSSL})
67 76
68# On Android, fetch and compile libcxx before doing anything else 77# On Android, fetch and compile libcxx before doing anything else
69if (ANDROID) 78if (ANDROID)