]> de.git.xonotic.org Git - xonotic/xonotic.wiki.git/commitdiff
Update Shared libraries (buildfiles)
authorRudolf Polzer <divverent@gmail.com>
Wed, 8 Dec 2021 19:46:46 +0000 (19:46 +0000)
committerRudolf Polzer <divverent@gmail.com>
Wed, 8 Dec 2021 19:46:46 +0000 (19:46 +0000)
Shared-libraries-(buildfiles).md

index 56ecde41202b58498a87b706f24712ff182bbf3a..29a4e39cacafc0cf627ce1eafbf7ffa6ba496628 100644 (file)
@@ -12,12 +12,20 @@ TODO: macOS
 libcurl is used for downloading *.pk3 files from servers
 
 ### Windows
-Darkplaces loads `libcurl-4.dll` or `libcurl-3.dll`
 
-Build instructions:
-* clone https://gitlab.com/incognico/build-libcurl-windows
-* run `build.bat` in a VS2019 Development Shell
-* rename the built dlls (x64 & x86) to `libcurl-4.dll`
+```
+git clone -b curl-7_80_0 https://github.com/curl/curl || true
+curl -o x86_64-w64-mingw32.cmake https://raw.githubusercontent.com/zyga/cmake-toolchains/master/Toolchain-Ubuntu-mingw64.cmake
+d0=$(pwd)
+rm -rf build
+mkdir build
+cd build
+cmake -DCMAKE_TOOLCHAIN_FILE="$d0/x86_64-w64-mingw32.cmake" -DCMAKE_INSTALL_PREFIX="$d0/out" "$d0/curl"
+make
+make install
+cd "$d0"
+cp out/bin/libcurl.dll ~/Games/xonotic/misc/buildfiles/win64/libcurl-4.dll
+```
 
 ### macOS
 Darkplaces loads `libcurl.4.dylib` or `libcurl.3.dylib` or `libcurl.2.dylib`
@@ -28,7 +36,6 @@ libjpeg-turbo is needed to display jpeg images/textures
 ### Windows
 
 ```
-set -ex
 git clone https://github.com/libjpeg-turbo/libjpeg-turbo.git || true
 curl -o x86_64-w64-mingw32.cmake https://raw.githubusercontent.com/zyga/cmake-toolchains/master/Toolchain-Ubuntu-mingw64.cmake
 d0=$(pwd)