aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/regex
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-03-09 12:42:44 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-03-09 12:42:44 +0300
commit6324d075a5e80b6943b5de6b465b775050fe83df (patch)
treee02ce32e988042438f64df770a528164ac572879 /library/cpp/regex
parent039e25e1597bec288de44e5061c1b84e195add08 (diff)
downloadydb-6324d075a5e80b6943b5de6b465b775050fe83df.tar.gz
Intermediate changes
Diffstat (limited to 'library/cpp/regex')
-rw-r--r--library/cpp/regex/CMakeLists.txt2
-rw-r--r--library/cpp/regex/CMakeLists.windows-x86_64.txt11
-rw-r--r--library/cpp/regex/hyperscan/CMakeLists.txt2
-rw-r--r--library/cpp/regex/hyperscan/CMakeLists.windows-x86_64.txt22
-rw-r--r--library/cpp/regex/pcre/CMakeLists.txt2
-rw-r--r--library/cpp/regex/pcre/CMakeLists.windows-x86_64.txt22
-rw-r--r--library/cpp/regex/pire/CMakeLists.txt2
-rw-r--r--library/cpp/regex/pire/CMakeLists.windows-x86_64.txt42
8 files changed, 105 insertions, 0 deletions
diff --git a/library/cpp/regex/CMakeLists.txt b/library/cpp/regex/CMakeLists.txt
index 8f8c04afe54..d90657116d0 100644
--- a/library/cpp/regex/CMakeLists.txt
+++ b/library/cpp/regex/CMakeLists.txt
@@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND
include(CMakeLists.linux-aarch64.txt)
elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
include(CMakeLists.darwin-x86_64.txt)
+elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA)
+ include(CMakeLists.windows-x86_64.txt)
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA)
include(CMakeLists.linux-x86_64.txt)
endif()
diff --git a/library/cpp/regex/CMakeLists.windows-x86_64.txt b/library/cpp/regex/CMakeLists.windows-x86_64.txt
new file mode 100644
index 00000000000..6e2a4fabcd2
--- /dev/null
+++ b/library/cpp/regex/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,11 @@
+
+# This file was generated 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/hyperscan/CMakeLists.txt b/library/cpp/regex/hyperscan/CMakeLists.txt
index a603bef54ed..bb0d0ecd25f 100644
--- a/library/cpp/regex/hyperscan/CMakeLists.txt
+++ b/library/cpp/regex/hyperscan/CMakeLists.txt
@@ -8,6 +8,8 @@
if (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
include(CMakeLists.darwin-x86_64.txt)
+elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA)
+ include(CMakeLists.windows-x86_64.txt)
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA)
include(CMakeLists.linux-x86_64.txt)
endif()
diff --git a/library/cpp/regex/hyperscan/CMakeLists.windows-x86_64.txt b/library/cpp/regex/hyperscan/CMakeLists.windows-x86_64.txt
new file mode 100644
index 00000000000..47150388a7a
--- /dev/null
+++ b/library/cpp/regex/hyperscan/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,22 @@
+
+# This file was generated 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/pcre/CMakeLists.txt b/library/cpp/regex/pcre/CMakeLists.txt
index 8f8c04afe54..d90657116d0 100644
--- a/library/cpp/regex/pcre/CMakeLists.txt
+++ b/library/cpp/regex/pcre/CMakeLists.txt
@@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND
include(CMakeLists.linux-aarch64.txt)
elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
include(CMakeLists.darwin-x86_64.txt)
+elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA)
+ include(CMakeLists.windows-x86_64.txt)
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA)
include(CMakeLists.linux-x86_64.txt)
endif()
diff --git a/library/cpp/regex/pcre/CMakeLists.windows-x86_64.txt b/library/cpp/regex/pcre/CMakeLists.windows-x86_64.txt
new file mode 100644
index 00000000000..8e01e97c1d2
--- /dev/null
+++ b/library/cpp/regex/pcre/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,22 @@
+
+# This file was generated 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-pcre)
+target_link_libraries(cpp-regex-pcre PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ contrib-libs-pcre
+ libs-pcre-pcre16
+ libs-pcre-pcre32
+ cpp-containers-stack_array
+)
+target_sources(cpp-regex-pcre PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/regex/pcre/pcre.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/regex/pcre/regexp.cpp
+)
diff --git a/library/cpp/regex/pire/CMakeLists.txt b/library/cpp/regex/pire/CMakeLists.txt
index 8f8c04afe54..d90657116d0 100644
--- a/library/cpp/regex/pire/CMakeLists.txt
+++ b/library/cpp/regex/pire/CMakeLists.txt
@@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND
include(CMakeLists.linux-aarch64.txt)
elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
include(CMakeLists.darwin-x86_64.txt)
+elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA)
+ include(CMakeLists.windows-x86_64.txt)
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA)
include(CMakeLists.linux-x86_64.txt)
endif()
diff --git a/library/cpp/regex/pire/CMakeLists.windows-x86_64.txt b/library/cpp/regex/pire/CMakeLists.windows-x86_64.txt
new file mode 100644
index 00000000000..f1fde4acf65
--- /dev/null
+++ b/library/cpp/regex/pire/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,42 @@
+
+# This file was generated 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-pire)
+target_compile_options(cpp-regex-pire PRIVATE
+ -DPIRE_NO_CONFIG
+)
+target_include_directories(cpp-regex-pire PUBLIC
+ ${CMAKE_BINARY_DIR}/library/cpp/regex/pire/__/__/__/__/contrib/libs/pire/pire
+)
+target_link_libraries(cpp-regex-pire PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ library-cpp-charset
+)
+target_sources(cpp-regex-pire PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/regex/pire/pcre2pire.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/classes.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/encoding.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/fsm.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/scanner_io.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/easy.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/scanners/null.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/extra/capture.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/extra/count.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/extra/glyphs.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/re_lexer.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/read_unicode.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/regex/pire/extraencodings.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/approx_matching.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/half_final_fsm.cpp
+)
+target_bison_parser(cpp-regex-pire
+ PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/pire/pire/re_parser.y
+)