aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/poco/Crypto
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2022-10-24 21:10:49 +0300
committerthegeorg <thegeorg@yandex-team.com>2022-10-24 21:10:49 +0300
commitd7c3d059f9dcb74cd142a940c0ebfc6998871ddd (patch)
tree41af92889d6a49d36931a93b50a30e918e058557 /contrib/libs/poco/Crypto
parent41e8dfe1db3b9e32a7d1497494d73fbb9f8aec00 (diff)
downloadydb-d7c3d059f9dcb74cd142a940c0ebfc6998871ddd.tar.gz
Drop some add_defines=False setting from yamaker projects
Diffstat (limited to 'contrib/libs/poco/Crypto')
-rw-r--r--contrib/libs/poco/Crypto/CMakeLists.darwin.txt55
-rw-r--r--contrib/libs/poco/Crypto/CMakeLists.linux.txt56
-rw-r--r--contrib/libs/poco/Crypto/CMakeLists.txt47
3 files changed, 116 insertions, 42 deletions
diff --git a/contrib/libs/poco/Crypto/CMakeLists.darwin.txt b/contrib/libs/poco/Crypto/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..64fc7aecd0
--- /dev/null
+++ b/contrib/libs/poco/Crypto/CMakeLists.darwin.txt
@@ -0,0 +1,55 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+find_package(OpenSSL REQUIRED)
+
+add_library(libs-poco-Crypto)
+target_compile_options(libs-poco-Crypto PRIVATE
+ -DPOCO_ENABLE_CPP11
+ -DPOCO_ENABLE_CPP14
+ -DPOCO_NO_AUTOMATIC_LIBS
+ -DPOCO_UNBUNDLED
+ -DPOCO_OS_FAMILY_UNIX
+ -Wno-everything
+)
+target_include_directories(libs-poco-Crypto PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/include
+)
+target_include_directories(libs-poco-Crypto PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/include
+)
+target_link_libraries(libs-poco-Crypto PUBLIC
+ contrib-libs-cxxsupp
+ OpenSSL::OpenSSL
+ libs-poco-Foundation
+)
+target_sources(libs-poco-Crypto PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/Cipher.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherFactory.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherImpl.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherKey.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherKeyImpl.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CryptoException.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CryptoStream.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CryptoTransform.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/DigestEngine.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/ECDSADigestEngine.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/ECKey.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/ECKeyImpl.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/EVPPKey.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/KeyPair.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/KeyPairImpl.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/OpenSSLInitializer.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/PKCS12Container.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSACipherImpl.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSADigestEngine.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSAKey.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSAKeyImpl.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/X509Certificate.cpp
+)
diff --git a/contrib/libs/poco/Crypto/CMakeLists.linux.txt b/contrib/libs/poco/Crypto/CMakeLists.linux.txt
new file mode 100644
index 0000000000..44f3610fb1
--- /dev/null
+++ b/contrib/libs/poco/Crypto/CMakeLists.linux.txt
@@ -0,0 +1,56 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+find_package(OpenSSL REQUIRED)
+
+add_library(libs-poco-Crypto)
+target_compile_options(libs-poco-Crypto PRIVATE
+ -DPOCO_ENABLE_CPP11
+ -DPOCO_ENABLE_CPP14
+ -DPOCO_NO_AUTOMATIC_LIBS
+ -DPOCO_UNBUNDLED
+ -DPOCO_OS_FAMILY_UNIX
+ -DPOCO_HAVE_FD_EPOLL
+ -Wno-everything
+)
+target_include_directories(libs-poco-Crypto PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/include
+)
+target_include_directories(libs-poco-Crypto PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/include
+)
+target_link_libraries(libs-poco-Crypto PUBLIC
+ contrib-libs-cxxsupp
+ OpenSSL::OpenSSL
+ libs-poco-Foundation
+)
+target_sources(libs-poco-Crypto PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/Cipher.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherFactory.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherImpl.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherKey.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherKeyImpl.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CryptoException.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CryptoStream.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CryptoTransform.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/DigestEngine.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/ECDSADigestEngine.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/ECKey.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/ECKeyImpl.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/EVPPKey.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/KeyPair.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/KeyPairImpl.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/OpenSSLInitializer.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/PKCS12Container.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSACipherImpl.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSADigestEngine.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSAKey.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSAKeyImpl.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/X509Certificate.cpp
+)
diff --git a/contrib/libs/poco/Crypto/CMakeLists.txt b/contrib/libs/poco/Crypto/CMakeLists.txt
index bfbf882e7e..79468a5d8d 100644
--- a/contrib/libs/poco/Crypto/CMakeLists.txt
+++ b/contrib/libs/poco/Crypto/CMakeLists.txt
@@ -6,45 +6,8 @@
# original buildsystem will not be accepted.
-find_package(OpenSSL REQUIRED)
-
-add_library(libs-poco-Crypto)
-target_compile_options(libs-poco-Crypto PRIVATE
- -Wno-everything
-)
-target_include_directories(libs-poco-Crypto PUBLIC
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/include
-)
-target_include_directories(libs-poco-Crypto PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Foundation/include
-)
-target_link_libraries(libs-poco-Crypto PUBLIC
- contrib-libs-cxxsupp
- OpenSSL::OpenSSL
- libs-poco-Foundation
-)
-target_sources(libs-poco-Crypto PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/Cipher.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherFactory.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherImpl.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherKey.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CipherKeyImpl.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CryptoException.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CryptoStream.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/CryptoTransform.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/DigestEngine.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/ECDSADigestEngine.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/ECKey.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/ECKeyImpl.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/EVPPKey.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/KeyPair.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/KeyPairImpl.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/OpenSSLInitializer.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/PKCS12Container.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSACipherImpl.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSADigestEngine.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSAKey.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/RSAKeyImpl.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/poco/Crypto/src/X509Certificate.cpp
-)
+if (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux.txt)
+endif()