1
0
mirror of https://github.com/luanti-org/luanti.git synced 2026-01-12 04:05:26 +01:00

Update docs regarding ENABLE_CURL

This commit is contained in:
sfan5
2026-01-09 12:57:28 +01:00
committed by SmallJoker
parent b98afa6e9a
commit f8752003e5
4 changed files with 7 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ General options and their default values:
BUILD_UNITTESTS=TRUE - Build unittest sources
BUILD_BENCHMARKS=FALSE - Build benchmark sources
BUILD_DOCUMENTATION=TRUE - Build doxygen documentation
CMAKE_BUILD_TYPE=Release - Type of build (Release vs. Debug)
CMAKE_BUILD_TYPE=Release - Type of build (optimizaton level, debug information)
Release - Release build
Debug - Debug build
SemiDebug - Partially optimized debug build
@@ -25,7 +25,7 @@ General options and their default values:
USE_SDL2_STATIC=TRUE - Links with SDL2::SDL2-static instead of SDL2::SDL2
USE_SDL3=FALSE - Build with SDL3; Enables IrrlichtMt device SDL3 (experimental)
USE_SDL3_STATIC=TRUE - Links with SDL3::SDL3-static instead of SDL3::SDL3-shared
ENABLE_CURL=ON - Build with cURL; Enables use of online mod repo, public serverlist and remote media fetching via http
ENABLE_CURL=ON - Build with cURL; Enables use of server list, content browser and more
ENABLE_CURSES=ON - Build with (n)curses; Enables a server side terminal (command line option: --terminal)
ENABLE_GETTEXT=ON - Build with Gettext; Allows using translations
ENABLE_LEVELDB=ON - Build with LevelDB; Enables use of LevelDB map backend

View File

@@ -17,7 +17,7 @@ After you successfully built vcpkg you can easily install the required libraries
vcpkg install zlib zstd curl[ssl] openal-soft libvorbis libogg libjpeg-turbo sqlite3 freetype luajit gmp jsoncpp gettext[tools] sdl2 --triplet x64-windows
```
- `curl` is optional, but required to read the serverlist, `curl[ssl]` is required to use the content store.
- `curl[ssl]` is optional, but required to use many online features.
- `openal-soft`, `libvorbis` and `libogg` are optional, but required to use sound.
- `luajit` is optional, it replaces the integrated Lua interpreter with a faster just-in-time interpreter.
- `gmp` and `jsoncpp` are optional, otherwise the bundled versions will be compiled

View File

@@ -67,7 +67,7 @@ if(PRECOMPILE_HEADERS)
endif()
option(ENABLE_CURL "Enable cURL support for fetching media" TRUE)
option(ENABLE_CURL "Enable cURL support" TRUE)
set(USE_CURL FALSE)
if(ENABLE_CURL)
@@ -82,10 +82,10 @@ endif()
if(NOT USE_CURL)
if(BUILD_CLIENT)
message(WARNING "cURL is required to load the server list")
message(WARNING "cURL is required to use the server list, content browser or update checker")
endif()
if(BUILD_SERVER)
message(WARNING "cURL is required to announce to the server list")
message(WARNING "cURL is required to announce to the server list or use the HTTP API")
endif()
endif()

View File

@@ -220,7 +220,7 @@ HTTPFetchOngoing::HTTPFetchOngoing(const HTTPFetchRequest &request_,
// Set static cURL options
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, CURLFOLLOW_ALL);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 3L);
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, ""); // = all supported ones