diff options
author | thegeorg <thegeorg@yandex-team.com> | 2022-12-15 19:25:15 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2022-12-15 19:25:15 +0300 |
commit | 0c31d97afd7858af5f8f858c8addf91655ca9ccc (patch) | |
tree | 4d8a246db168f7beaafcd06d486c034115c2123d /library/cpp/unicode | |
parent | d1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff) | |
download | ydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz |
Sync linux-headers instead of using system ones
Diffstat (limited to 'library/cpp/unicode')
-rw-r--r-- | library/cpp/unicode/normalization/CMakeLists.darwin.txt | 18 | ||||
-rw-r--r-- | library/cpp/unicode/normalization/CMakeLists.linux-aarch64.txt | 19 | ||||
-rw-r--r-- | library/cpp/unicode/normalization/CMakeLists.linux.txt | 19 | ||||
-rw-r--r-- | library/cpp/unicode/normalization/CMakeLists.txt | 17 | ||||
-rw-r--r-- | library/cpp/unicode/punycode/CMakeLists.darwin.txt | 19 | ||||
-rw-r--r-- | library/cpp/unicode/punycode/CMakeLists.linux-aarch64.txt | 20 | ||||
-rw-r--r-- | library/cpp/unicode/punycode/CMakeLists.linux.txt | 20 | ||||
-rw-r--r-- | library/cpp/unicode/punycode/CMakeLists.txt | 18 | ||||
-rw-r--r-- | library/cpp/unicode/set/CMakeLists.darwin.txt | 33 | ||||
-rw-r--r-- | library/cpp/unicode/set/CMakeLists.linux-aarch64.txt | 34 | ||||
-rw-r--r-- | library/cpp/unicode/set/CMakeLists.linux.txt | 34 | ||||
-rw-r--r-- | library/cpp/unicode/set/CMakeLists.txt | 32 |
12 files changed, 237 insertions, 46 deletions
diff --git a/library/cpp/unicode/normalization/CMakeLists.darwin.txt b/library/cpp/unicode/normalization/CMakeLists.darwin.txt new file mode 100644 index 0000000000..1e8c85a02f --- /dev/null +++ b/library/cpp/unicode/normalization/CMakeLists.darwin.txt @@ -0,0 +1,18 @@ + +# 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-unicode-normalization) +target_link_libraries(cpp-unicode-normalization PUBLIC + contrib-libs-cxxsupp +) +target_sources(cpp-unicode-normalization PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/normalization/generated/composition.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/normalization/generated/decomposition.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/normalization/normalization.cpp +) diff --git a/library/cpp/unicode/normalization/CMakeLists.linux-aarch64.txt b/library/cpp/unicode/normalization/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..1631c59be1 --- /dev/null +++ b/library/cpp/unicode/normalization/CMakeLists.linux-aarch64.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. + + + +add_library(cpp-unicode-normalization) +target_link_libraries(cpp-unicode-normalization PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp +) +target_sources(cpp-unicode-normalization PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/normalization/generated/composition.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/normalization/generated/decomposition.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/normalization/normalization.cpp +) diff --git a/library/cpp/unicode/normalization/CMakeLists.linux.txt b/library/cpp/unicode/normalization/CMakeLists.linux.txt new file mode 100644 index 0000000000..1631c59be1 --- /dev/null +++ b/library/cpp/unicode/normalization/CMakeLists.linux.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. + + + +add_library(cpp-unicode-normalization) +target_link_libraries(cpp-unicode-normalization PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp +) +target_sources(cpp-unicode-normalization PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/normalization/generated/composition.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/normalization/generated/decomposition.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/normalization/normalization.cpp +) diff --git a/library/cpp/unicode/normalization/CMakeLists.txt b/library/cpp/unicode/normalization/CMakeLists.txt index 1e8c85a02f..3e0811fb22 100644 --- a/library/cpp/unicode/normalization/CMakeLists.txt +++ b/library/cpp/unicode/normalization/CMakeLists.txt @@ -6,13 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-unicode-normalization) -target_link_libraries(cpp-unicode-normalization PUBLIC - contrib-libs-cxxsupp -) -target_sources(cpp-unicode-normalization PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/unicode/normalization/generated/composition.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/unicode/normalization/generated/decomposition.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/unicode/normalization/normalization.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() diff --git a/library/cpp/unicode/punycode/CMakeLists.darwin.txt b/library/cpp/unicode/punycode/CMakeLists.darwin.txt new file mode 100644 index 0000000000..6637434e2d --- /dev/null +++ b/library/cpp/unicode/punycode/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(IDN REQUIRED) + +add_library(cpp-unicode-punycode) +target_link_libraries(cpp-unicode-punycode PUBLIC + contrib-libs-cxxsupp + yutil + IDN::IDN +) +target_sources(cpp-unicode-punycode PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/punycode/punycode.cpp +) diff --git a/library/cpp/unicode/punycode/CMakeLists.linux-aarch64.txt b/library/cpp/unicode/punycode/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..dadd9e6d62 --- /dev/null +++ b/library/cpp/unicode/punycode/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(IDN REQUIRED) + +add_library(cpp-unicode-punycode) +target_link_libraries(cpp-unicode-punycode PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + IDN::IDN +) +target_sources(cpp-unicode-punycode PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/punycode/punycode.cpp +) diff --git a/library/cpp/unicode/punycode/CMakeLists.linux.txt b/library/cpp/unicode/punycode/CMakeLists.linux.txt new file mode 100644 index 0000000000..dadd9e6d62 --- /dev/null +++ b/library/cpp/unicode/punycode/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(IDN REQUIRED) + +add_library(cpp-unicode-punycode) +target_link_libraries(cpp-unicode-punycode PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + IDN::IDN +) +target_sources(cpp-unicode-punycode PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/punycode/punycode.cpp +) diff --git a/library/cpp/unicode/punycode/CMakeLists.txt b/library/cpp/unicode/punycode/CMakeLists.txt index 6637434e2d..3e0811fb22 100644 --- a/library/cpp/unicode/punycode/CMakeLists.txt +++ b/library/cpp/unicode/punycode/CMakeLists.txt @@ -6,14 +6,10 @@ # original buildsystem will not be accepted. -find_package(IDN REQUIRED) - -add_library(cpp-unicode-punycode) -target_link_libraries(cpp-unicode-punycode PUBLIC - contrib-libs-cxxsupp - yutil - IDN::IDN -) -target_sources(cpp-unicode-punycode PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/unicode/punycode/punycode.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() diff --git a/library/cpp/unicode/set/CMakeLists.darwin.txt b/library/cpp/unicode/set/CMakeLists.darwin.txt new file mode 100644 index 0000000000..44380308ed --- /dev/null +++ b/library/cpp/unicode/set/CMakeLists.darwin.txt @@ -0,0 +1,33 @@ + +# 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-unicode-set) +target_link_libraries(cpp-unicode-set PUBLIC + contrib-libs-cxxsupp + yutil + tools-enum_parser-enum_serialization_runtime +) +target_sources(cpp-unicode-set PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/set.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/quoted_pair.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_parser.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_token.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/generated/category_ranges.cpp +) +generate_enum_serilization(cpp-unicode-set + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_token.h + INCLUDE_HEADERS + library/cpp/unicode/set/unicode_set_token.h +) +target_ragel_lexers(cpp-unicode-set + PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_lexer.rl6 + -CG2 +) diff --git a/library/cpp/unicode/set/CMakeLists.linux-aarch64.txt b/library/cpp/unicode/set/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..861a16e0cd --- /dev/null +++ b/library/cpp/unicode/set/CMakeLists.linux-aarch64.txt @@ -0,0 +1,34 @@ + +# 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-unicode-set) +target_link_libraries(cpp-unicode-set PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + tools-enum_parser-enum_serialization_runtime +) +target_sources(cpp-unicode-set PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/set.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/quoted_pair.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_parser.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_token.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/generated/category_ranges.cpp +) +generate_enum_serilization(cpp-unicode-set + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_token.h + INCLUDE_HEADERS + library/cpp/unicode/set/unicode_set_token.h +) +target_ragel_lexers(cpp-unicode-set + PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_lexer.rl6 + -CG2 +) diff --git a/library/cpp/unicode/set/CMakeLists.linux.txt b/library/cpp/unicode/set/CMakeLists.linux.txt new file mode 100644 index 0000000000..861a16e0cd --- /dev/null +++ b/library/cpp/unicode/set/CMakeLists.linux.txt @@ -0,0 +1,34 @@ + +# 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-unicode-set) +target_link_libraries(cpp-unicode-set PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + tools-enum_parser-enum_serialization_runtime +) +target_sources(cpp-unicode-set PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/set.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/quoted_pair.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_parser.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_token.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/generated/category_ranges.cpp +) +generate_enum_serilization(cpp-unicode-set + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_token.h + INCLUDE_HEADERS + library/cpp/unicode/set/unicode_set_token.h +) +target_ragel_lexers(cpp-unicode-set + PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_lexer.rl6 + -CG2 +) diff --git a/library/cpp/unicode/set/CMakeLists.txt b/library/cpp/unicode/set/CMakeLists.txt index 44380308ed..3e0811fb22 100644 --- a/library/cpp/unicode/set/CMakeLists.txt +++ b/library/cpp/unicode/set/CMakeLists.txt @@ -6,28 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-unicode-set) -target_link_libraries(cpp-unicode-set PUBLIC - contrib-libs-cxxsupp - yutil - tools-enum_parser-enum_serialization_runtime -) -target_sources(cpp-unicode-set PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/set.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/quoted_pair.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_parser.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_token.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/generated/category_ranges.cpp -) -generate_enum_serilization(cpp-unicode-set - ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_token.h - INCLUDE_HEADERS - library/cpp/unicode/set/unicode_set_token.h -) -target_ragel_lexers(cpp-unicode-set - PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/unicode/set/unicode_set_lexer.rl6 - -CG2 -) +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() |