aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/regex
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
commitb4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch)
tree6a64ab25a145265287789bceed3f59e953561206 /library/cpp/regex
parent5e837a820d5be0671fa4096a1cc1e378453e5132 (diff)
downloadydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'library/cpp/regex')
-rw-r--r--library/cpp/regex/hyperscan/CMakeLists.txt13
-rw-r--r--library/cpp/regex/pcre/CMakeLists.txt13
-rw-r--r--library/cpp/regex/pire/CMakeLists.txt36
3 files changed, 62 insertions, 0 deletions
diff --git a/library/cpp/regex/hyperscan/CMakeLists.txt b/library/cpp/regex/hyperscan/CMakeLists.txt
new file mode 100644
index 0000000000..17b4f3fb5b
--- /dev/null
+++ b/library/cpp/regex/hyperscan/CMakeLists.txt
@@ -0,0 +1,13 @@
+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
new file mode 100644
index 0000000000..e4a6473043
--- /dev/null
+++ b/library/cpp/regex/pcre/CMakeLists.txt
@@ -0,0 +1,13 @@
+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
new file mode 100644
index 0000000000..3f8c31f745
--- /dev/null
+++ b/library/cpp/regex/pire/CMakeLists.txt
@@ -0,0 +1,36 @@
+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_include_directories(cpp-regex-pire PRIVATE
+ ${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
+)