diff options
author | dcherednik <dcherednik@ydb.tech> | 2022-10-26 16:40:35 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2022-10-26 16:40:35 +0300 |
commit | b981cca279190176740c3bf5c5b4fd03be51b599 (patch) | |
tree | f5ec6210fdce0e976cbbe4dc8ae78bb6509adf49 /contrib/libs/base64/ssse3 | |
parent | 6dc0de995652f7eeecdbdb88dc98b00bb0653a2f (diff) | |
download | ydb-b981cca279190176740c3bf5c5b4fd03be51b599.tar.gz |
Enable linux-arm platform.
Diffstat (limited to 'contrib/libs/base64/ssse3')
-rw-r--r-- | contrib/libs/base64/ssse3/CMakeLists.darwin.txt | 35 | ||||
-rw-r--r-- | contrib/libs/base64/ssse3/CMakeLists.linux-aarch64.txt | 17 | ||||
-rw-r--r-- | contrib/libs/base64/ssse3/CMakeLists.linux.txt | 35 | ||||
-rw-r--r-- | contrib/libs/base64/ssse3/CMakeLists.txt | 34 |
4 files changed, 94 insertions, 27 deletions
diff --git a/contrib/libs/base64/ssse3/CMakeLists.darwin.txt b/contrib/libs/base64/ssse3/CMakeLists.darwin.txt new file mode 100644 index 0000000000..b8150d469c --- /dev/null +++ b/contrib/libs/base64/ssse3/CMakeLists.darwin.txt @@ -0,0 +1,35 @@ + +# 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. + + + +add_library(libs-base64-ssse3) +target_link_libraries(libs-base64-ssse3 PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-base64-ssse3 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c + APPEND + PROPERTY + COMPILE_OPTIONS + -mssse3 + -std=c11 +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c + APPEND + PROPERTY + COMPILE_OPTIONS + -mssse3 + -std=c11 +) diff --git a/contrib/libs/base64/ssse3/CMakeLists.linux-aarch64.txt b/contrib/libs/base64/ssse3/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..dc101b6932 --- /dev/null +++ b/contrib/libs/base64/ssse3/CMakeLists.linux-aarch64.txt @@ -0,0 +1,17 @@ + +# 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. + + + +add_library(libs-base64-ssse3) +target_link_libraries(libs-base64-ssse3 PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-base64-ssse3 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c +) diff --git a/contrib/libs/base64/ssse3/CMakeLists.linux.txt b/contrib/libs/base64/ssse3/CMakeLists.linux.txt new file mode 100644 index 0000000000..b8150d469c --- /dev/null +++ b/contrib/libs/base64/ssse3/CMakeLists.linux.txt @@ -0,0 +1,35 @@ + +# 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. + + + +add_library(libs-base64-ssse3) +target_link_libraries(libs-base64-ssse3 PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-base64-ssse3 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c + APPEND + PROPERTY + COMPILE_OPTIONS + -mssse3 + -std=c11 +) +set_property( + SOURCE + ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c + APPEND + PROPERTY + COMPILE_OPTIONS + -mssse3 + -std=c11 +) diff --git a/contrib/libs/base64/ssse3/CMakeLists.txt b/contrib/libs/base64/ssse3/CMakeLists.txt index b8150d469c..3e0811fb22 100644 --- a/contrib/libs/base64/ssse3/CMakeLists.txt +++ b/contrib/libs/base64/ssse3/CMakeLists.txt @@ -6,30 +6,10 @@ # original buildsystem will not be accepted. - -add_library(libs-base64-ssse3) -target_link_libraries(libs-base64-ssse3 PUBLIC - contrib-libs-cxxsupp -) -target_sources(libs-base64-ssse3 PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c -) -set_property( - SOURCE - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/codec_ssse3.c - APPEND - PROPERTY - COMPILE_OPTIONS - -mssse3 - -std=c11 -) -set_property( - SOURCE - ${CMAKE_SOURCE_DIR}/contrib/libs/base64/ssse3/lib.c - APPEND - PROPERTY - COMPILE_OPTIONS - -mssse3 - -std=c11 -) +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() |