Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libssh2.sh: cleanups after 1.11.1 bump
Browse files Browse the repository at this point in the history
vszakats committed Oct 16, 2024
1 parent 9b3b457 commit d9806b7
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions libssh2.sh
Original file line number Diff line number Diff line change
@@ -34,18 +34,11 @@ _VER="$1"
if [ "${_OS}" = 'win' ]; then
# Silence useless libssh2 warning about missing runtime DLL
touch "${_TOP}/${_OPENSSL}/${_PP}/crypto.dll"
if [ "${LIBSSH2_VER_}" = '1.11.0' ]; then
touch "${_TOP}/${_OPENSSL}/${_PP}/ssl.dll"
fi
fi
elif [ "${_OS}" = 'win' ]; then
options+=' -DCRYPTO_BACKEND=WinCNG'
fi

if [ "${LIBSSH2_VER_}" != '1.11.0' ]; then
options+=' -DLIBSSH2_NO_DEPRECATED=ON'
fi

if [[ "${_CONFIG}" != *'nounity'* ]]; then
options+=' -DCMAKE_UNITY_BUILD=ON'
fi
@@ -54,17 +47,14 @@ _VER="$1"
options+=' -DHIDE_SYMBOLS=OFF'
fi

if [ "${LIBSSH2_VER_}" = '1.11.0' ]; then
LIBSSH2_CPPFLAGS+=' -DLIBSSH2_NO_DSA'
fi

if [ "${CW_DEV_INCREMENTAL:-}" != '1' ] || [ ! -d "${_BLDDIR}" ]; then
# shellcheck disable=SC2086
cmake -B "${_BLDDIR}" ${_CMAKE_GLOBAL} ${options} \
'-DBUILD_SHARED_LIBS=OFF' \
'-DBUILD_EXAMPLES=OFF' \
'-DBUILD_TESTING=OFF' \
'-DENABLE_DEBUG_LOGGING=OFF' \
'-DLIBSSH2_NO_DEPRECATED=ON' \
"-DCMAKE_C_FLAGS=${_CFLAGS_GLOBAL_CMAKE} ${_CFLAGS_GLOBAL} ${_CPPFLAGS_GLOBAL} ${LIBSSH2_CPPFLAGS} ${_LDFLAGS_GLOBAL} ${LIBS}" # --debug-trycompile
fi

0 comments on commit d9806b7

Please sign in to comment.