diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-03-09 12:42:44 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-03-09 12:42:44 +0300 |
commit | 6324d075a5e80b6943b5de6b465b775050fe83df (patch) | |
tree | e02ce32e988042438f64df770a528164ac572879 /library/cpp/yson | |
parent | 039e25e1597bec288de44e5061c1b84e195add08 (diff) | |
download | ydb-6324d075a5e80b6943b5de6b465b775050fe83df.tar.gz |
Intermediate changes
Diffstat (limited to 'library/cpp/yson')
-rw-r--r-- | library/cpp/yson/CMakeLists.txt | 2 | ||||
-rw-r--r-- | library/cpp/yson/CMakeLists.windows-x86_64.txt | 27 | ||||
-rw-r--r-- | library/cpp/yson/json/CMakeLists.txt | 2 | ||||
-rw-r--r-- | library/cpp/yson/json/CMakeLists.windows-x86_64.txt | 19 | ||||
-rw-r--r-- | library/cpp/yson/node/CMakeLists.txt | 2 | ||||
-rw-r--r-- | library/cpp/yson/node/CMakeLists.windows-x86_64.txt | 35 |
6 files changed, 87 insertions, 0 deletions
diff --git a/library/cpp/yson/CMakeLists.txt b/library/cpp/yson/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/yson/CMakeLists.txt +++ b/library/cpp/yson/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/yson/CMakeLists.windows-x86_64.txt b/library/cpp/yson/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..d5cda8e6c0 --- /dev/null +++ b/library/cpp/yson/CMakeLists.windows-x86_64.txt @@ -0,0 +1,27 @@ + +# 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(json) +add_subdirectory(node) + +add_library(library-cpp-yson) +target_link_libraries(library-cpp-yson PUBLIC + contrib-libs-cxxsupp + yutil + cpp-yt-misc + cpp-yt-yson +) +target_sources(library-cpp-yson PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yson/consumer.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yson/lexer.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yson/parser.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yson/token.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yson/tokenizer.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yson/varint.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yson/writer.cpp +) diff --git a/library/cpp/yson/json/CMakeLists.txt b/library/cpp/yson/json/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/yson/json/CMakeLists.txt +++ b/library/cpp/yson/json/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/yson/json/CMakeLists.windows-x86_64.txt b/library/cpp/yson/json/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..2b5efc5d4d --- /dev/null +++ b/library/cpp/yson/json/CMakeLists.windows-x86_64.txt @@ -0,0 +1,19 @@ + +# 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-yson-json) +target_link_libraries(cpp-yson-json PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-json +) +target_sources(cpp-yson-json PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yson/json/json_writer.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yson/json/yson2json_adapter.cpp +) diff --git a/library/cpp/yson/node/CMakeLists.txt b/library/cpp/yson/node/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/yson/node/CMakeLists.txt +++ b/library/cpp/yson/node/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/yson/node/CMakeLists.windows-x86_64.txt b/library/cpp/yson/node/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..e9334e323e --- /dev/null +++ b/library/cpp/yson/node/CMakeLists.windows-x86_64.txt @@ -0,0 +1,35 @@ + +# 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. + + +get_built_tool_path( + TOOL_enum_parser_bin + TOOL_enum_parser_dependency + tools/enum_parser/enum_parser + enum_parser +) + +add_library(cpp-yson-node) +target_link_libraries(cpp-yson-node PUBLIC + contrib-libs-cxxsupp + yutil + tools-enum_parser-enum_serialization_runtime + library-cpp-yson + cpp-yson-json +) +target_sources(cpp-yson-node PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yson/node/node.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yson/node/node_io.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yson/node/node_builder.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yson/node/node_visitor.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yson/node/serialize.cpp +) +generate_enum_serilization(cpp-yson-node + ${CMAKE_SOURCE_DIR}/library/cpp/yson/node/node.h + INCLUDE_HEADERS + library/cpp/yson/node/node.h +) |