diff options
Diffstat (limited to 'library/cpp/openssl/init')
-rw-r--r-- | library/cpp/openssl/init/CMakeLists.darwin.txt | 19 | ||||
-rw-r--r-- | library/cpp/openssl/init/CMakeLists.linux-aarch64.txt | 20 | ||||
-rw-r--r-- | library/cpp/openssl/init/CMakeLists.linux.txt | 20 | ||||
-rw-r--r-- | library/cpp/openssl/init/CMakeLists.txt | 18 |
4 files changed, 66 insertions, 11 deletions
diff --git a/library/cpp/openssl/init/CMakeLists.darwin.txt b/library/cpp/openssl/init/CMakeLists.darwin.txt new file mode 100644 index 0000000000..6049df14dc --- /dev/null +++ b/library/cpp/openssl/init/CMakeLists.darwin.txt @@ -0,0 +1,19 @@ + +# 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(cpp-openssl-init) +target_link_libraries(cpp-openssl-init PUBLIC + contrib-libs-cxxsupp + yutil + OpenSSL::OpenSSL +) +target_sources(cpp-openssl-init PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/openssl/init/init.cpp +) diff --git a/library/cpp/openssl/init/CMakeLists.linux-aarch64.txt b/library/cpp/openssl/init/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..acd1cea691 --- /dev/null +++ b/library/cpp/openssl/init/CMakeLists.linux-aarch64.txt @@ -0,0 +1,20 @@ + +# 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(cpp-openssl-init) +target_link_libraries(cpp-openssl-init PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + OpenSSL::OpenSSL +) +target_sources(cpp-openssl-init PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/openssl/init/init.cpp +) diff --git a/library/cpp/openssl/init/CMakeLists.linux.txt b/library/cpp/openssl/init/CMakeLists.linux.txt new file mode 100644 index 0000000000..acd1cea691 --- /dev/null +++ b/library/cpp/openssl/init/CMakeLists.linux.txt @@ -0,0 +1,20 @@ + +# 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(cpp-openssl-init) +target_link_libraries(cpp-openssl-init PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + OpenSSL::OpenSSL +) +target_sources(cpp-openssl-init PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/openssl/init/init.cpp +) diff --git a/library/cpp/openssl/init/CMakeLists.txt b/library/cpp/openssl/init/CMakeLists.txt index 6049df14dc..3e0811fb22 100644 --- a/library/cpp/openssl/init/CMakeLists.txt +++ b/library/cpp/openssl/init/CMakeLists.txt @@ -6,14 +6,10 @@ # original buildsystem will not be accepted. -find_package(OpenSSL REQUIRED) - -add_library(cpp-openssl-init) -target_link_libraries(cpp-openssl-init PUBLIC - contrib-libs-cxxsupp - yutil - OpenSSL::OpenSSL -) -target_sources(cpp-openssl-init PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/openssl/init/init.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (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() |