aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/openssl
diff options
context:
space:
mode:
authordimdim11 <dimdim11@yandex-team.com>2024-03-29 11:12:43 +0300
committerdimdim11 <dimdim11@yandex-team.com>2024-03-29 11:28:40 +0300
commit0595439604d7da0ebf23a96e99cf4cb19b24648e (patch)
tree5e277dd430f26a06e4d661b52b19921688985a73 /contrib/libs/openssl
parent96aeada1ca0f152abaa79537e03d75a4e4af94f3 (diff)
downloadydb-0595439604d7da0ebf23a96e99cf4cb19b24648e.tar.gz
Control of exporting with system STL/vanilla protoc/linux-headers/openSSL by ymake.core.conf
eb123654ae6ebb82ad676dd1fdcd866e27ee1d88
Diffstat (limited to 'contrib/libs/openssl')
-rw-r--r--contrib/libs/openssl/crypto/ya.make14
-rw-r--r--contrib/libs/openssl/ya.make21
2 files changed, 20 insertions, 15 deletions
diff --git a/contrib/libs/openssl/crypto/ya.make b/contrib/libs/openssl/crypto/ya.make
index be3f2b7328..c6e9d82018 100644
--- a/contrib/libs/openssl/crypto/ya.make
+++ b/contrib/libs/openssl/crypto/ya.make
@@ -13,15 +13,16 @@ LICENSE(
LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
-# TODO(YMAKE-92) Move this information out of ya.make and allow per project configuration
-IF (OPENSOURCE_PROJECT == "catboost")
+IF (OPENSOURCE_REPLACE_OPENSSL)
+
OPENSOURCE_EXPORT_REPLACEMENT(
CMAKE OpenSSL
CMAKE_PACKAGE_COMPONENT Crypto
CMAKE_TARGET OpenSSL::Crypto
- CONAN openssl/1.1.1t
+ CONAN openssl/${OPENSOURCE_REPLACE_OPENSSL}
)
-ENDIF()
+
+ENDIF() # IF (OPENSOURCE_REPLACE_OPENSSL)
PEERDIR(
contrib/libs/zlib
@@ -37,8 +38,7 @@ ADDINCL(
contrib/libs/openssl/include
)
-# TODO(YMAKE-92) Move this information out of ya.make and allow per project configuration
-IF (NOT EXPORT_CMAKE OR OPENSOURCE_PROJECT != "catboost")
+IF (NOT EXPORT_CMAKE OR NOT OPENSOURCE_REPLACE_OPENSSL)
IF (OS_LINUX)
IF (ARCH_ARM64)
@@ -1362,6 +1362,6 @@ IF (ARCADIA_OPENSSL_DISABLE_ARMV7_TICK)
)
ENDIF()
-ENDIF()
+ENDIF() # IF (NOT EXPORT_CMAKE OR NOT OPENSOURCE_REPLACE_OPENSSL)
END()
diff --git a/contrib/libs/openssl/ya.make b/contrib/libs/openssl/ya.make
index e8d70a9a31..e6c03b5b48 100644
--- a/contrib/libs/openssl/ya.make
+++ b/contrib/libs/openssl/ya.make
@@ -6,14 +6,21 @@ VERSION(1.1.1t)
ORIGINAL_SOURCE(https://github.com/openssl/openssl/archive/OpenSSL_1_1_1t.tar.gz)
-# TODO(YMAKE-92) Move this information out of ya.make and allow per project configuration
-IF (OPENSOURCE_PROJECT == "catboost")
+IF (OPENSOURCE_REPLACE_OPENSSL)
+
OPENSOURCE_EXPORT_REPLACEMENT(
CMAKE OpenSSL
CMAKE_TARGET OpenSSL::OpenSSL
- CONAN openssl/1.1.1t
+ CONAN openssl/${OPENSOURCE_REPLACE_OPENSSL}
)
-ENDIF()
+
+ELSE() # IF (OPENSOURCE_REPLACE_OPENSSL)
+
+ ADDINCL(
+ GLOBAL contrib/libs/openssl/include
+ )
+
+ENDIF() # ELSE() # IF (OPENSOURCE_REPLACE_OPENSSL)
LICENSE(
Apache-2.0 AND
@@ -33,12 +40,10 @@ PEERDIR(
)
ADDINCL(
- GLOBAL contrib/libs/openssl/include
contrib/libs/openssl
)
-# TODO(YMAKE-92) Move this information out of ya.make and allow per project configuration
-IF (NOT EXPORT_CMAKE OR OPENSOURCE_PROJECT != "catboost")
+IF (NOT EXPORT_CMAKE OR NOT OPENSOURCE_REPLACE_OPENSSL)
IF (OS_LINUX)
IF (ARCH_ARM64)
@@ -335,7 +340,7 @@ IF (OS_ANDROID AND ARCH_ARM64)
)
ENDIF()
-ENDIF()
+ENDIF() # IF (NOT EXPORT_CMAKE OR NOT OPENSOURCE_REPLACE_OPENSSL)
END()