build: add zlib

This commit is contained in:
2026-04-12 20:10:52 -03:00
parent ebe2000993
commit 448f6b7167
4 changed files with 8 additions and 1 deletions
+3
View File
@@ -7,3 +7,6 @@
[submodule "vendor/json"]
path = vendor/json
url = https://github.com/nlohmann/json
[submodule "vendor/zlib"]
path = vendor/zlib
url = https://github.com/madler/zlib
+1 -1
View File
@@ -76,7 +76,7 @@ add_executable(dbd-unlocker ${UNLOCKER_SOURCES})
string(RANDOM LENGTH 12 ALPHABET "abcdefghijklmnopqrstuvwxyz0123456789" RANDOM_EXE_NAME)
set_target_properties(dbd-unlocker PROPERTIES OUTPUT_NAME "${RANDOM_EXE_NAME}")
target_link_libraries(dbd-unlocker PRIVATE dbd-unlocker-warnings OpenSSL::SSL OpenSSL::Crypto nerutils wsock32 ws2_32 wininet crypt32 nlohmann_json)
target_link_libraries(dbd-unlocker PRIVATE dbd-unlocker-warnings OpenSSL::SSL OpenSSL::Crypto nerutils wsock32 ws2_32 wininet crypt32 nlohmann_json zlib)
if(NOT MSVC)
target_link_options(dbd-unlocker PRIVATE -static -static-libgcc -static-libstdc++)
+3
View File
@@ -1,2 +1,5 @@
add_subdirectory(nerutils)
add_subdirectory(json)
set(ZLIB_BUILD_TESTING OFF)
add_subdirectory(zlib)
Vendored Submodule
+1
Submodule vendor/zlib added at f9dd6009be