diff options
| author | max42 <[email protected]> | 2023-07-29 00:02:16 +0300 |
|---|---|---|
| committer | max42 <[email protected]> | 2023-07-29 00:02:16 +0300 |
| commit | 73b89de71748a21e102d27b9f3ed1bf658766cb5 (patch) | |
| tree | 188bbd2d622fa91cdcbb1b6d6d77fbc84a0646f5 /yt/cpp/mapreduce/library | |
| parent | 528e321bcc2a2b67b53aeba58c3bd88305a141ee (diff) | |
YT-19210: expose YQL shared library for YT.
After this, a new target libyqlplugin.so appears. in open-source cmake build.
Diff in open-source YDB repo looks like the following: https://paste.yandex-team.ru/f302bdb4-7ef2-4362-91c7-6ca45f329264
Diffstat (limited to 'yt/cpp/mapreduce/library')
9 files changed, 127 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/library/CMakeLists.txt b/yt/cpp/mapreduce/library/CMakeLists.txt new file mode 100644 index 00000000000..bc51bb2b478 --- /dev/null +++ b/yt/cpp/mapreduce/library/CMakeLists.txt @@ -0,0 +1,9 @@ + +# 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(table_schema) diff --git a/yt/cpp/mapreduce/library/table_schema/CMakeLists.darwin-x86_64.txt b/yt/cpp/mapreduce/library/table_schema/CMakeLists.darwin-x86_64.txt new file mode 100644 index 00000000000..92eec36f23b --- /dev/null +++ b/yt/cpp/mapreduce/library/table_schema/CMakeLists.darwin-x86_64.txt @@ -0,0 +1,21 @@ + +# 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(mapreduce-library-table_schema) +target_compile_options(mapreduce-library-table_schema PRIVATE + -Wdeprecated-this-capture +) +target_link_libraries(mapreduce-library-table_schema PUBLIC + contrib-libs-cxxsupp + yutil + cpp-mapreduce-interface +) +target_sources(mapreduce-library-table_schema PRIVATE + ${CMAKE_SOURCE_DIR}/yt/cpp/mapreduce/library/table_schema/protobuf.cpp +) diff --git a/yt/cpp/mapreduce/library/table_schema/CMakeLists.linux-aarch64.txt b/yt/cpp/mapreduce/library/table_schema/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..0bb5208c97b --- /dev/null +++ b/yt/cpp/mapreduce/library/table_schema/CMakeLists.linux-aarch64.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(mapreduce-library-table_schema) +target_compile_options(mapreduce-library-table_schema PRIVATE + -Wdeprecated-this-capture +) +target_link_libraries(mapreduce-library-table_schema PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-mapreduce-interface +) +target_sources(mapreduce-library-table_schema PRIVATE + ${CMAKE_SOURCE_DIR}/yt/cpp/mapreduce/library/table_schema/protobuf.cpp +) diff --git a/yt/cpp/mapreduce/library/table_schema/CMakeLists.linux-x86_64.txt b/yt/cpp/mapreduce/library/table_schema/CMakeLists.linux-x86_64.txt new file mode 100644 index 00000000000..0bb5208c97b --- /dev/null +++ b/yt/cpp/mapreduce/library/table_schema/CMakeLists.linux-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(mapreduce-library-table_schema) +target_compile_options(mapreduce-library-table_schema PRIVATE + -Wdeprecated-this-capture +) +target_link_libraries(mapreduce-library-table_schema PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-mapreduce-interface +) +target_sources(mapreduce-library-table_schema PRIVATE + ${CMAKE_SOURCE_DIR}/yt/cpp/mapreduce/library/table_schema/protobuf.cpp +) diff --git a/yt/cpp/mapreduce/library/table_schema/CMakeLists.txt b/yt/cpp/mapreduce/library/table_schema/CMakeLists.txt new file mode 100644 index 00000000000..f8b31df0c11 --- /dev/null +++ b/yt/cpp/mapreduce/library/table_schema/CMakeLists.txt @@ -0,0 +1,17 @@ + +# 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. + + +if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND NOT HAVE_CUDA) + include(CMakeLists.linux-aarch64.txt) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" 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_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA) + include(CMakeLists.linux-x86_64.txt) +endif() diff --git a/yt/cpp/mapreduce/library/table_schema/CMakeLists.windows-x86_64.txt b/yt/cpp/mapreduce/library/table_schema/CMakeLists.windows-x86_64.txt new file mode 100644 index 00000000000..f8288b61f4c --- /dev/null +++ b/yt/cpp/mapreduce/library/table_schema/CMakeLists.windows-x86_64.txt @@ -0,0 +1,18 @@ + +# 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(mapreduce-library-table_schema) +target_link_libraries(mapreduce-library-table_schema PUBLIC + contrib-libs-cxxsupp + yutil + cpp-mapreduce-interface +) +target_sources(mapreduce-library-table_schema PRIVATE + ${CMAKE_SOURCE_DIR}/yt/cpp/mapreduce/library/table_schema/protobuf.cpp +) diff --git a/yt/cpp/mapreduce/library/table_schema/protobuf.cpp b/yt/cpp/mapreduce/library/table_schema/protobuf.cpp new file mode 100644 index 00000000000..888da828e74 --- /dev/null +++ b/yt/cpp/mapreduce/library/table_schema/protobuf.cpp @@ -0,0 +1 @@ +#include "protobuf.h" diff --git a/yt/cpp/mapreduce/library/table_schema/protobuf.h b/yt/cpp/mapreduce/library/table_schema/protobuf.h new file mode 100644 index 00000000000..e29e0967457 --- /dev/null +++ b/yt/cpp/mapreduce/library/table_schema/protobuf.h @@ -0,0 +1,3 @@ +#pragma once + +#include <yt/cpp/mapreduce/interface/common.h> diff --git a/yt/cpp/mapreduce/library/table_schema/ya.make b/yt/cpp/mapreduce/library/table_schema/ya.make new file mode 100644 index 00000000000..4aebad72dda --- /dev/null +++ b/yt/cpp/mapreduce/library/table_schema/ya.make @@ -0,0 +1,14 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/yt/ya_cpp.make.inc) + +SRCS( + protobuf.h + protobuf.cpp +) + +PEERDIR( + yt/cpp/mapreduce/interface +) + +END() |
