summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
author刘学利 <[email protected]>2022-03-16 07:19:54 +0000
committer刘学利 <[email protected]>2022-03-16 07:19:54 +0000
commit270a31cfaa6b5f7df8aab8fc7d39f63a23809071 (patch)
treecfaa3fdc6d5c9724e2df31655b6dea8bf32cab71 /support
parent6d9ed75b88c1b65e036a26b2c430e49ae4fc4c1c (diff)
TSG-9724: 适配Rocky Linux8.5v2.0.9
Diffstat (limited to 'support')
-rw-r--r--support/CMakeLists.txt28
-rw-r--r--support/openssl-1.1.1m.tar.gzbin0 -> 9847315 bytes
2 files changed, 28 insertions, 0 deletions
diff --git a/support/CMakeLists.txt b/support/CMakeLists.txt
new file mode 100644
index 0000000..db6c0e1
--- /dev/null
+++ b/support/CMakeLists.txt
@@ -0,0 +1,28 @@
+# CMakeFiles for 3rd vendor library
+
+include(ExternalProject)
+
+### OpenSSL 1.1.1m
+ExternalProject_Add(openssl PREFIX openssl
+ URL ${CMAKE_CURRENT_SOURCE_DIR}/openssl-1.1.1m.tar.gz
+ URL_MD5 8ec70f665c145c3103f6e330f538a9db
+ CONFIGURE_COMMAND ./Configure linux-x86_64 --prefix=<INSTALL_DIR> --openssldir=<INSTALL_DIR>/lib/ssl -fPIC no-shared
+ BUILD_COMMAND ${MAKE_COMMAND}
+ INSTALL_COMMAND make install_sw
+ BUILD_IN_SOURCE 1)
+
+ExternalProject_Get_Property(openssl INSTALL_DIR)
+set(OPENSSL_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include)
+set(OPENSSL_LINK_DIRECTORIES ${INSTALL_DIR}/lib)
+set(OPENSSL_PKGCONFIG_PATH ${INSTALL_DIR}/lib/pkgconfig/)
+file(MAKE_DIRECTORY ${INSTALL_DIR}/include)
+
+add_library(openssl-crypto-static STATIC IMPORTED GLOBAL)
+add_dependencies(openssl-crypto-static openssl)
+set_property(TARGET openssl-crypto-static PROPERTY IMPORTED_LOCATION ${INSTALL_DIR}/lib/libcrypto.a)
+set_property(TARGET openssl-crypto-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include)
+
+add_library(openssl-ssl-static STATIC IMPORTED GLOBAL)
+add_dependencies(openssl-ssl-static openssl)
+set_property(TARGET openssl-ssl-static PROPERTY IMPORTED_LOCATION ${INSTALL_DIR}/lib/libssl.a)
+set_property(TARGET openssl-ssl-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include)
diff --git a/support/openssl-1.1.1m.tar.gz b/support/openssl-1.1.1m.tar.gz
new file mode 100644
index 0000000..2db4ee8
--- /dev/null
+++ b/support/openssl-1.1.1m.tar.gz
Binary files differ