build: add zlib
This commit is contained in:
@@ -7,3 +7,6 @@
|
|||||||
[submodule "vendor/json"]
|
[submodule "vendor/json"]
|
||||||
path = vendor/json
|
path = vendor/json
|
||||||
url = https://github.com/nlohmann/json
|
url = https://github.com/nlohmann/json
|
||||||
|
[submodule "vendor/zlib"]
|
||||||
|
path = vendor/zlib
|
||||||
|
url = https://github.com/madler/zlib
|
||||||
|
|||||||
+1
-1
@@ -76,7 +76,7 @@ add_executable(dbd-unlocker ${UNLOCKER_SOURCES})
|
|||||||
string(RANDOM LENGTH 12 ALPHABET "abcdefghijklmnopqrstuvwxyz0123456789" RANDOM_EXE_NAME)
|
string(RANDOM LENGTH 12 ALPHABET "abcdefghijklmnopqrstuvwxyz0123456789" RANDOM_EXE_NAME)
|
||||||
set_target_properties(dbd-unlocker PROPERTIES OUTPUT_NAME "${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)
|
if(NOT MSVC)
|
||||||
target_link_options(dbd-unlocker PRIVATE -static -static-libgcc -static-libstdc++)
|
target_link_options(dbd-unlocker PRIVATE -static -static-libgcc -static-libstdc++)
|
||||||
|
|||||||
Vendored
+3
@@ -1,2 +1,5 @@
|
|||||||
add_subdirectory(nerutils)
|
add_subdirectory(nerutils)
|
||||||
add_subdirectory(json)
|
add_subdirectory(json)
|
||||||
|
|
||||||
|
set(ZLIB_BUILD_TESTING OFF)
|
||||||
|
add_subdirectory(zlib)
|
||||||
|
|||||||
+1
Submodule vendor/zlib added at f9dd6009be
Reference in New Issue
Block a user