diff options
author | dcherednik <dcherednik@ydb.tech> | 2022-11-22 13:34:53 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2022-11-22 13:34:53 +0300 |
commit | fced20b9af826fdc3ec0886fe1f9740467ffba72 (patch) | |
tree | 6200ffc2db79a07a915454606f78fcd8221780ab /library/cpp | |
parent | 3e5907562bf4dae9cf824bd61032a343e2d294fd (diff) | |
download | ydb-fced20b9af826fdc3ec0886fe1f9740467ffba72.tar.gz |
Build hyperscan udf on x86_64 only.
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/regex/CMakeLists.darwin.txt | 11 | ||||
-rw-r--r-- | library/cpp/regex/CMakeLists.linux-aarch64.txt | 10 | ||||
-rw-r--r-- | library/cpp/regex/CMakeLists.linux.txt | 11 | ||||
-rw-r--r-- | library/cpp/regex/CMakeLists.txt | 10 | ||||
-rw-r--r-- | library/cpp/regex/hyperscan/CMakeLists.darwin.txt | 22 | ||||
-rw-r--r-- | library/cpp/regex/hyperscan/CMakeLists.linux.txt | 22 | ||||
-rw-r--r-- | library/cpp/regex/hyperscan/CMakeLists.txt | 19 |
7 files changed, 88 insertions, 17 deletions
diff --git a/library/cpp/regex/CMakeLists.darwin.txt b/library/cpp/regex/CMakeLists.darwin.txt new file mode 100644 index 0000000000..0eebca8708 --- /dev/null +++ b/library/cpp/regex/CMakeLists.darwin.txt @@ -0,0 +1,11 @@ + +# 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_subdirectory(hyperscan) +add_subdirectory(pcre) +add_subdirectory(pire) diff --git a/library/cpp/regex/CMakeLists.linux-aarch64.txt b/library/cpp/regex/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..f25cde9bab --- /dev/null +++ b/library/cpp/regex/CMakeLists.linux-aarch64.txt @@ -0,0 +1,10 @@ + +# 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_subdirectory(pcre) +add_subdirectory(pire) diff --git a/library/cpp/regex/CMakeLists.linux.txt b/library/cpp/regex/CMakeLists.linux.txt new file mode 100644 index 0000000000..0eebca8708 --- /dev/null +++ b/library/cpp/regex/CMakeLists.linux.txt @@ -0,0 +1,11 @@ + +# 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_subdirectory(hyperscan) +add_subdirectory(pcre) +add_subdirectory(pire) diff --git a/library/cpp/regex/CMakeLists.txt b/library/cpp/regex/CMakeLists.txt index 0eebca8708..3e0811fb22 100644 --- a/library/cpp/regex/CMakeLists.txt +++ b/library/cpp/regex/CMakeLists.txt @@ -6,6 +6,10 @@ # original buildsystem will not be accepted. -add_subdirectory(hyperscan) -add_subdirectory(pcre) -add_subdirectory(pire) +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() diff --git a/library/cpp/regex/hyperscan/CMakeLists.darwin.txt b/library/cpp/regex/hyperscan/CMakeLists.darwin.txt new file mode 100644 index 0000000000..9339884699 --- /dev/null +++ b/library/cpp/regex/hyperscan/CMakeLists.darwin.txt @@ -0,0 +1,22 @@ + +# 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(cpp-regex-hyperscan) +target_link_libraries(cpp-regex-hyperscan PUBLIC + contrib-libs-cxxsupp + yutil + contrib-libs-hyperscan + libs-hyperscan-runtime_core2 + libs-hyperscan-runtime_corei7 + libs-hyperscan-runtime_avx2 + libs-hyperscan-runtime_avx512 +) +target_sources(cpp-regex-hyperscan PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/regex/hyperscan/hyperscan.cpp +) diff --git a/library/cpp/regex/hyperscan/CMakeLists.linux.txt b/library/cpp/regex/hyperscan/CMakeLists.linux.txt new file mode 100644 index 0000000000..9339884699 --- /dev/null +++ b/library/cpp/regex/hyperscan/CMakeLists.linux.txt @@ -0,0 +1,22 @@ + +# 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(cpp-regex-hyperscan) +target_link_libraries(cpp-regex-hyperscan PUBLIC + contrib-libs-cxxsupp + yutil + contrib-libs-hyperscan + libs-hyperscan-runtime_core2 + libs-hyperscan-runtime_corei7 + libs-hyperscan-runtime_avx2 + libs-hyperscan-runtime_avx512 +) +target_sources(cpp-regex-hyperscan PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/regex/hyperscan/hyperscan.cpp +) diff --git a/library/cpp/regex/hyperscan/CMakeLists.txt b/library/cpp/regex/hyperscan/CMakeLists.txt index 9339884699..79468a5d8d 100644 --- a/library/cpp/regex/hyperscan/CMakeLists.txt +++ b/library/cpp/regex/hyperscan/CMakeLists.txt @@ -6,17 +6,8 @@ # original buildsystem will not be accepted. - -add_library(cpp-regex-hyperscan) -target_link_libraries(cpp-regex-hyperscan PUBLIC - contrib-libs-cxxsupp - yutil - contrib-libs-hyperscan - libs-hyperscan-runtime_core2 - libs-hyperscan-runtime_corei7 - libs-hyperscan-runtime_avx2 - libs-hyperscan-runtime_avx512 -) -target_sources(cpp-regex-hyperscan PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/regex/hyperscan/hyperscan.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() |