mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Our own CMakeLists for gsasl
This commit is contained in:
parent
a87422f3a3
commit
1faefdf8ee
2
contrib/CMakeLists.txt
vendored
2
contrib/CMakeLists.txt
vendored
@ -194,7 +194,7 @@ if (USE_EMBEDDED_COMPILER)
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (USE_INTERNAL_LIBGSASL_LIBRARY)
|
if (USE_INTERNAL_LIBGSASL_LIBRARY)
|
||||||
add_subdirectory(libgsasl)
|
add_subdirectory(libgsasl-cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (USE_INTERNAL_LIBXML2_LIBRARY)
|
if (USE_INTERNAL_LIBXML2_LIBRARY)
|
||||||
|
105
contrib/libgsasl-cmake/CMakeLists.txt
Normal file
105
contrib/libgsasl-cmake/CMakeLists.txt
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
set (SRC_DIR "${ClickHouse_SOURCE_DIR}/contrib/libgsasl")
|
||||||
|
|
||||||
|
set(SRCS
|
||||||
|
${SRC_DIR}/gl/gc-gnulib.c
|
||||||
|
${SRC_DIR}/gl/printf-parse.c
|
||||||
|
${SRC_DIR}/gl/c-ctype.c
|
||||||
|
${SRC_DIR}/gl/float.c
|
||||||
|
${SRC_DIR}/gl/printf-args.c
|
||||||
|
${SRC_DIR}/gl/hmac-sha1.c
|
||||||
|
${SRC_DIR}/gl/itold.c
|
||||||
|
${SRC_DIR}/gl/hmac-md5.c
|
||||||
|
${SRC_DIR}/gl/gc-pbkdf2-sha1.c
|
||||||
|
${SRC_DIR}/gl/md5.c
|
||||||
|
${SRC_DIR}/gl/base64.c
|
||||||
|
${SRC_DIR}/gl/memxor.c
|
||||||
|
${SRC_DIR}/gl/sha1.c
|
||||||
|
${SRC_DIR}/openid20/client.c
|
||||||
|
${SRC_DIR}/openid20/mechinfo.c
|
||||||
|
${SRC_DIR}/openid20/server.c
|
||||||
|
${SRC_DIR}/anonymous/client.c
|
||||||
|
${SRC_DIR}/anonymous/mechinfo.c
|
||||||
|
${SRC_DIR}/anonymous/server.c
|
||||||
|
${SRC_DIR}/saml20/client.c
|
||||||
|
${SRC_DIR}/saml20/mechinfo.c
|
||||||
|
${SRC_DIR}/saml20/server.c
|
||||||
|
${SRC_DIR}/scram/parser.c
|
||||||
|
${SRC_DIR}/scram/printer.c
|
||||||
|
${SRC_DIR}/scram/tokens.c
|
||||||
|
${SRC_DIR}/scram/client.c
|
||||||
|
${SRC_DIR}/scram/mechinfo.c
|
||||||
|
${SRC_DIR}/scram/server.c
|
||||||
|
${SRC_DIR}/scram/validate.c
|
||||||
|
${SRC_DIR}/src/free.c
|
||||||
|
${SRC_DIR}/src/supportp.c
|
||||||
|
${SRC_DIR}/src/init.c
|
||||||
|
${SRC_DIR}/src/mechtools.c
|
||||||
|
${SRC_DIR}/src/error.c
|
||||||
|
${SRC_DIR}/src/property.c
|
||||||
|
${SRC_DIR}/src/done.c
|
||||||
|
${SRC_DIR}/src/callback.c
|
||||||
|
${SRC_DIR}/src/xstart.c
|
||||||
|
${SRC_DIR}/src/xfinish.c
|
||||||
|
${SRC_DIR}/src/version.c
|
||||||
|
${SRC_DIR}/src/xstep.c
|
||||||
|
${SRC_DIR}/src/mechname.c
|
||||||
|
${SRC_DIR}/src/xcode.c
|
||||||
|
${SRC_DIR}/src/crypto.c
|
||||||
|
${SRC_DIR}/src/doxygen.c
|
||||||
|
${SRC_DIR}/src/suggest.c
|
||||||
|
${SRC_DIR}/src/saslprep.c
|
||||||
|
${SRC_DIR}/src/listmech.c
|
||||||
|
${SRC_DIR}/src/register.c
|
||||||
|
${SRC_DIR}/src/base64.c
|
||||||
|
${SRC_DIR}/src/md5pwd.c
|
||||||
|
${SRC_DIR}/external/client.c
|
||||||
|
${SRC_DIR}/external/mechinfo.c
|
||||||
|
${SRC_DIR}/external/server.c
|
||||||
|
${SRC_DIR}/securid/client.c
|
||||||
|
${SRC_DIR}/securid/mechinfo.c
|
||||||
|
${SRC_DIR}/securid/server.c
|
||||||
|
${SRC_DIR}/plain/client.c
|
||||||
|
${SRC_DIR}/plain/mechinfo.c
|
||||||
|
${SRC_DIR}/plain/server.c
|
||||||
|
${SRC_DIR}/cram-md5/client.c
|
||||||
|
${SRC_DIR}/cram-md5/challenge.c
|
||||||
|
${SRC_DIR}/cram-md5/mechinfo.c
|
||||||
|
${SRC_DIR}/cram-md5/server.c
|
||||||
|
${SRC_DIR}/cram-md5/digest.c
|
||||||
|
${SRC_DIR}/digest-md5/client.c
|
||||||
|
${SRC_DIR}/digest-md5/digesthmac.c
|
||||||
|
${SRC_DIR}/digest-md5/free.c
|
||||||
|
${SRC_DIR}/digest-md5/getsubopt.c
|
||||||
|
${SRC_DIR}/digest-md5/mechinfo.c
|
||||||
|
${SRC_DIR}/digest-md5/nonascii.c
|
||||||
|
${SRC_DIR}/digest-md5/parser.c
|
||||||
|
${SRC_DIR}/digest-md5/printer.c
|
||||||
|
${SRC_DIR}/digest-md5/qop.c
|
||||||
|
${SRC_DIR}/digest-md5/server.c
|
||||||
|
${SRC_DIR}/digest-md5/session.c
|
||||||
|
${SRC_DIR}/digest-md5/test-parser.c
|
||||||
|
${SRC_DIR}/digest-md5/validate.c
|
||||||
|
${SRC_DIR}/login/client.c
|
||||||
|
${SRC_DIR}/login/mechinfo.c
|
||||||
|
${SRC_DIR}/login/server.c
|
||||||
|
)
|
||||||
|
|
||||||
|
if (USE_KRB5)
|
||||||
|
set(SRCS ${SRCS}
|
||||||
|
${SRC_DIR}/gssapi/client.c
|
||||||
|
${SRC_DIR}/gssapi/mechinfo.c
|
||||||
|
${SRC_DIR}/gssapi/server.c)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_library(libgsasl ${SRCS})
|
||||||
|
|
||||||
|
target_include_directories(libgsasl PUBLIC ${SRC_DIR})
|
||||||
|
target_include_directories(libgsasl PUBLIC ${SRC_DIR}/gl)
|
||||||
|
target_include_directories(libgsasl PUBLIC ${SRC_DIR}/src)
|
||||||
|
target_include_directories(libgsasl PUBLIC ${SRC_DIR}/digest-md5)
|
||||||
|
target_include_directories(libgsasl PRIVATE linux_x86_64/include)
|
||||||
|
|
||||||
|
if (USE_KRB5)
|
||||||
|
target_link_libraries(libgsasl PUBLIC ${KRB5_LIBRARY})
|
||||||
|
target_compile_definitions (libgsasl PRIVATE HAVE_GSSAPI_H=1 USE_GSSAPI=1 USE_KERBEROS_V5=1)
|
||||||
|
endif()
|
1091
contrib/libgsasl-cmake/linux_x86_64/include/config.h
Normal file
1091
contrib/libgsasl-cmake/linux_x86_64/include/config.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user