2021-05-01 19:56:56 +00:00
|
|
|
# CURL
|
|
|
|
|
|
|
|
if(USE_SYSTEM_CURL)
|
|
|
|
message("-- RPCS3: using shared libcurl")
|
|
|
|
find_package(CURL REQUIRED)
|
|
|
|
add_library(libcurl INTERFACE)
|
|
|
|
target_link_libraries(libcurl INTERFACE CURL::libcurl)
|
|
|
|
else()
|
|
|
|
message("-- RPCS3: building libcurl + wolfssl submodules")
|
2022-01-15 11:20:48 +00:00
|
|
|
add_compile_definitions(HAVE_SNI OPENSSL_EXTRA)
|
2021-05-01 19:56:56 +00:00
|
|
|
option(BUILD_CURL_EXE "Set to ON to build curl executable." OFF)
|
2022-04-24 07:40:38 +00:00
|
|
|
option(CURL_USE_WOLFSSL "enable wolfSSL for SSL/TLS" ON)
|
2021-05-01 19:56:56 +00:00
|
|
|
option(HTTP_ONLY "disables all protocols except HTTP (This overrides all CURL_DISABLE_* options)" ON)
|
|
|
|
option(CURL_ZLIB "Set to ON to enable building curl with zlib support." OFF)
|
|
|
|
set(CURL_CA_PATH "none" CACHE STRING "Location of default CA path. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'auto'.")
|
2021-09-11 21:55:53 +00:00
|
|
|
if(USE_MSVC_STATIC_CRT)
|
|
|
|
set(CURL_STATIC_CRT ON CACHE BOOL "Use static crt to build curl" FORCE)
|
|
|
|
endif()
|
2021-05-02 19:59:32 +00:00
|
|
|
add_subdirectory(curl EXCLUDE_FROM_ALL)
|
2021-09-16 12:59:08 +00:00
|
|
|
|
|
|
|
set_property(TARGET libcurl PROPERTY FOLDER "3rdparty/")
|
|
|
|
|
2021-05-01 19:56:56 +00:00
|
|
|
endif()
|