mirror of
https://github.com/godotengine/godot-git-plugin.git
synced 2026-01-06 02:09:44 +03:00
* Add libgit2 libs + source * Set libgit2 dll as dependency of gitapi * Add libgit2 shared object * Add x11 git2 static lib * Add libgit2 binaries to demo project * Add windows binaries to demo project for git addon * Update gitignore to regard all demo files * Add windows addon binary to demo * Add git init
21 lines
707 B
CMake
21 lines
707 B
CMake
FILE(GLOB SRC_NTLMCLIENT "ntlm.c" "unicode_builtin.c" "util.c")
|
|
|
|
ADD_DEFINITIONS(-DNTLM_STATIC=1)
|
|
|
|
DISABLE_WARNINGS(implicit-fallthrough)
|
|
|
|
IF (HTTPS_BACKEND STREQUAL "SecureTransport")
|
|
ADD_DEFINITIONS(-DCRYPT_COMMONCRYPTO)
|
|
SET(SRC_NTLMCLIENT_CRYPTO "crypt_commoncrypto.c")
|
|
ELSEIF (HTTPS_BACKEND STREQUAL "OpenSSL")
|
|
ADD_DEFINITIONS(-DCRYPT_OPENSSL)
|
|
SET(SRC_NTLMCLIENT_CRYPTO "crypt_openssl.c")
|
|
ELSEIF (HTTPS_BACKEND STREQUAL "mbedTLS")
|
|
ADD_DEFINITIONS(-DCRYPT_MBEDTLS)
|
|
SET(SRC_NTLMCLIENT_CRYPTO "crypt_mbedtls.c")
|
|
ELSE ()
|
|
MESSAGE(FATAL_ERROR "Unable to use libgit2's HTTPS backend (${HTTPS_BACKEND}) for NTLM crypto")
|
|
ENDIF()
|
|
|
|
ADD_LIBRARY(ntlmclient OBJECT ${SRC_NTLMCLIENT} ${SRC_NTLMCLIENT_CRYPTO})
|