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/monlib | |
parent | 039e25e1597bec288de44e5061c1b84e195add08 (diff) | |
download | ydb-6324d075a5e80b6943b5de6b465b775050fe83df.tar.gz |
Intermediate changes
Diffstat (limited to 'library/cpp/monlib')
32 files changed, 478 insertions, 0 deletions
diff --git a/library/cpp/monlib/deprecated/json/CMakeLists.txt b/library/cpp/monlib/deprecated/json/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/deprecated/json/CMakeLists.txt +++ b/library/cpp/monlib/deprecated/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/monlib/deprecated/json/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/deprecated/json/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..6bcb22f8cc --- /dev/null +++ b/library/cpp/monlib/deprecated/json/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(monlib-deprecated-json) +target_link_libraries(monlib-deprecated-json PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-json +) +target_sources(monlib-deprecated-json PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/deprecated/json/writer.cpp +) diff --git a/library/cpp/monlib/dynamic_counters/CMakeLists.txt b/library/cpp/monlib/dynamic_counters/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/dynamic_counters/CMakeLists.txt +++ b/library/cpp/monlib/dynamic_counters/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/monlib/dynamic_counters/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/dynamic_counters/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..35f39a552a --- /dev/null +++ b/library/cpp/monlib/dynamic_counters/CMakeLists.windows-x86_64.txt @@ -0,0 +1,28 @@ + +# 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(percentile) + +add_library(cpp-monlib-dynamic_counters) +target_link_libraries(cpp-monlib-dynamic_counters PUBLIC + contrib-libs-cxxsupp + yutil + cpp-containers-stack_vector + monlib-encode-json + monlib-encode-spack + monlib-encode-prometheus + monlib-service-pages + cpp-string_utils-quote + cpp-threading-light_rw_lock +) +target_sources(cpp-monlib-dynamic_counters PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/dynamic_counters/counters.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/dynamic_counters/encode.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/dynamic_counters/golovan_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/dynamic_counters/page.cpp +) diff --git a/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.txt b/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.txt +++ b/library/cpp/monlib/dynamic_counters/percentile/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/monlib/dynamic_counters/percentile/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..fa99d9dc2f --- /dev/null +++ b/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.windows-x86_64.txt @@ -0,0 +1,16 @@ + +# 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(monlib-dynamic_counters-percentile INTERFACE) +target_link_libraries(monlib-dynamic_counters-percentile INTERFACE + contrib-libs-cxxsupp + yutil + cpp-containers-stack_vector + cpp-monlib-dynamic_counters +) diff --git a/library/cpp/monlib/encode/CMakeLists.txt b/library/cpp/monlib/encode/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/encode/CMakeLists.txt +++ b/library/cpp/monlib/encode/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/monlib/encode/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/encode/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..a74b6d023d --- /dev/null +++ b/library/cpp/monlib/encode/CMakeLists.windows-x86_64.txt @@ -0,0 +1,40 @@ + +# 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(buffered) +add_subdirectory(json) +add_subdirectory(legacy_protobuf) +add_subdirectory(prometheus) +add_subdirectory(spack) +add_subdirectory(text) +get_built_tool_path( + TOOL_enum_parser_bin + TOOL_enum_parser_dependency + tools/enum_parser/enum_parser + enum_parser +) + +add_library(cpp-monlib-encode) +target_link_libraries(cpp-monlib-encode PUBLIC + contrib-libs-cxxsupp + yutil + cpp-monlib-metrics + tools-enum_parser-enum_serialization_runtime +) +target_sources(cpp-monlib-encode PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/encoder.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/encoder_state.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/format.cpp +) +generate_enum_serilization(cpp-monlib-encode + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/encoder_state_enum.h + GEN_HEADER + ${CMAKE_BINARY_DIR}/library/cpp/monlib/encode/encoder_state_enum.h_serialized.h + INCLUDE_HEADERS + library/cpp/monlib/encode/encoder_state_enum.h +) diff --git a/library/cpp/monlib/encode/buffered/CMakeLists.txt b/library/cpp/monlib/encode/buffered/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/encode/buffered/CMakeLists.txt +++ b/library/cpp/monlib/encode/buffered/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/monlib/encode/buffered/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/encode/buffered/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..e867afbb8c --- /dev/null +++ b/library/cpp/monlib/encode/buffered/CMakeLists.windows-x86_64.txt @@ -0,0 +1,20 @@ + +# 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(monlib-encode-buffered) +target_link_libraries(monlib-encode-buffered PUBLIC + contrib-libs-cxxsupp + yutil + cpp-monlib-encode + cpp-monlib-metrics +) +target_sources(monlib-encode-buffered PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/buffered/buffered_encoder_base.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/buffered/string_pool.cpp +) diff --git a/library/cpp/monlib/encode/json/CMakeLists.txt b/library/cpp/monlib/encode/json/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/encode/json/CMakeLists.txt +++ b/library/cpp/monlib/encode/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/monlib/encode/json/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/encode/json/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..55a0abe1c3 --- /dev/null +++ b/library/cpp/monlib/encode/json/CMakeLists.windows-x86_64.txt @@ -0,0 +1,23 @@ + +# 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(monlib-encode-json) +target_link_libraries(monlib-encode-json PUBLIC + contrib-libs-cxxsupp + yutil + cpp-monlib-encode + monlib-encode-buffered + cpp-monlib-exception + library-cpp-json + cpp-json-writer +) +target_sources(monlib-encode-json PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/json/json_decoder.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/json/json_encoder.cpp +) diff --git a/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt +++ b/library/cpp/monlib/encode/legacy_protobuf/protos/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/monlib/encode/legacy_protobuf/protos/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..bce491e67e --- /dev/null +++ b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.windows-x86_64.txt @@ -0,0 +1,43 @@ + +# 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_protoc_bin + TOOL_protoc_dependency + contrib/tools/protoc/bin + protoc +) +get_built_tool_path( + TOOL_cpp_styleguide_bin + TOOL_cpp_styleguide_dependency + contrib/tools/protoc/plugins/cpp_styleguide + cpp_styleguide +) + +add_library(encode-legacy_protobuf-protos) +target_link_libraries(encode-legacy_protobuf-protos PUBLIC + contrib-libs-cxxsupp + yutil + contrib-libs-protobuf +) +target_proto_messages(encode-legacy_protobuf-protos PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/legacy_protobuf/protos/metric_meta.proto +) +target_proto_addincls(encode-legacy_protobuf-protos + ./ + ${CMAKE_SOURCE_DIR}/ + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src +) +target_proto_outs(encode-legacy_protobuf-protos + --cpp_out=${CMAKE_BINARY_DIR}/ + --cpp_styleguide_out=${CMAKE_BINARY_DIR}/ +) diff --git a/library/cpp/monlib/encode/prometheus/CMakeLists.txt b/library/cpp/monlib/encode/prometheus/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/encode/prometheus/CMakeLists.txt +++ b/library/cpp/monlib/encode/prometheus/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/monlib/encode/prometheus/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/encode/prometheus/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..2db649e693 --- /dev/null +++ b/library/cpp/monlib/encode/prometheus/CMakeLists.windows-x86_64.txt @@ -0,0 +1,20 @@ + +# 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(monlib-encode-prometheus) +target_link_libraries(monlib-encode-prometheus PUBLIC + contrib-libs-cxxsupp + yutil + cpp-monlib-encode + monlib-encode-buffered +) +target_sources(monlib-encode-prometheus PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/prometheus/prometheus_encoder.cpp +) diff --git a/library/cpp/monlib/encode/spack/CMakeLists.txt b/library/cpp/monlib/encode/spack/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/encode/spack/CMakeLists.txt +++ b/library/cpp/monlib/encode/spack/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/monlib/encode/spack/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/encode/spack/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..9eccd0b629 --- /dev/null +++ b/library/cpp/monlib/encode/spack/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. + + +find_package(ZLIB REQUIRED) + +add_library(monlib-encode-spack) +target_link_libraries(monlib-encode-spack PUBLIC + contrib-libs-cxxsupp + yutil + monlib-encode-buffered + cpp-monlib-exception + contrib-libs-lz4 + contrib-libs-xxhash + ZLIB::ZLIB + contrib-libs-zstd +) +target_sources(monlib-encode-spack PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/spack/spack_v1_decoder.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/spack/spack_v1_encoder.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/spack/varint.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/spack/compression.cpp +) diff --git a/library/cpp/monlib/encode/text/CMakeLists.txt b/library/cpp/monlib/encode/text/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/encode/text/CMakeLists.txt +++ b/library/cpp/monlib/encode/text/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/monlib/encode/text/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/encode/text/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..58143a2371 --- /dev/null +++ b/library/cpp/monlib/encode/text/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(monlib-encode-text) +target_link_libraries(monlib-encode-text PUBLIC + contrib-libs-cxxsupp + yutil + cpp-monlib-encode +) +target_sources(monlib-encode-text PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/text/text_encoder.cpp +) diff --git a/library/cpp/monlib/exception/CMakeLists.txt b/library/cpp/monlib/exception/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/exception/CMakeLists.txt +++ b/library/cpp/monlib/exception/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/monlib/exception/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/exception/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..94cb28420f --- /dev/null +++ b/library/cpp/monlib/exception/CMakeLists.windows-x86_64.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. + + + +add_library(cpp-monlib-exception) +target_link_libraries(cpp-monlib-exception PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-monlib-exception PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/exception/exception.cpp +) diff --git a/library/cpp/monlib/messagebus/CMakeLists.txt b/library/cpp/monlib/messagebus/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/messagebus/CMakeLists.txt +++ b/library/cpp/monlib/messagebus/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/monlib/messagebus/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/messagebus/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..cae48e0a83 --- /dev/null +++ b/library/cpp/monlib/messagebus/CMakeLists.windows-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(cpp-monlib-messagebus) +target_link_libraries(cpp-monlib-messagebus PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-messagebus + cpp-messagebus-www + cpp-monlib-dynamic_counters +) +target_sources(cpp-monlib-messagebus PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/messagebus/mon_messagebus.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/messagebus/mon_service_messagebus.cpp +) diff --git a/library/cpp/monlib/metrics/CMakeLists.txt b/library/cpp/monlib/metrics/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/metrics/CMakeLists.txt +++ b/library/cpp/monlib/metrics/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/monlib/metrics/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/metrics/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..052ed067e1 --- /dev/null +++ b/library/cpp/monlib/metrics/CMakeLists.windows-x86_64.txt @@ -0,0 +1,44 @@ + +# 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-monlib-metrics) +target_link_libraries(cpp-monlib-metrics PUBLIC + contrib-libs-cxxsupp + yutil + tools-enum_parser-enum_serialization_runtime +) +target_sources(cpp-monlib-metrics PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/ewma.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/fake.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/histogram_collector_explicit.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/histogram_collector_exponential.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/histogram_collector_linear.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/histogram_snapshot.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/log_histogram_snapshot.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/labels.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_registry.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_consumer.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_type.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_value.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/summary_collector.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/summary_snapshot.cpp +) +generate_enum_serilization(cpp-monlib-metrics + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/metrics/metric_value_type.h + GEN_HEADER + ${CMAKE_BINARY_DIR}/library/cpp/monlib/metrics/metric_value_type.h_serialized.h + INCLUDE_HEADERS + library/cpp/monlib/metrics/metric_value_type.h +) diff --git a/library/cpp/monlib/service/CMakeLists.txt b/library/cpp/monlib/service/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/service/CMakeLists.txt +++ b/library/cpp/monlib/service/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/monlib/service/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/service/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..48ffa45b49 --- /dev/null +++ b/library/cpp/monlib/service/CMakeLists.windows-x86_64.txt @@ -0,0 +1,34 @@ + +# 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(pages) + +add_library(cpp-monlib-service) +target_link_libraries(cpp-monlib-service PUBLIC + contrib-libs-cxxsupp + yutil + cpp-string_utils-base64 + contrib-libs-protobuf + cpp-coroutine-engine + cpp-coroutine-listener + cpp-http-fetch + cpp-http-server + cpp-http-io + library-cpp-logger + cpp-malloc-api + library-cpp-svnversion + library-cpp-uri + library-cpp-cgiparam +) +target_sources(cpp-monlib-service PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/monservice.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/mon_service_http_request.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/service.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/format.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/auth.cpp +) diff --git a/library/cpp/monlib/service/pages/CMakeLists.txt b/library/cpp/monlib/service/pages/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/service/pages/CMakeLists.txt +++ b/library/cpp/monlib/service/pages/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/monlib/service/pages/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/service/pages/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..062d269d30 --- /dev/null +++ b/library/cpp/monlib/service/pages/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. + + +add_subdirectory(tablesorter) + +add_library(monlib-service-pages) +target_link_libraries(monlib-service-pages PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-build_info + cpp-malloc-api + library-cpp-svnversion + library-cpp-resource + cpp-monlib-service + monlib-encode-json + monlib-encode-text + monlib-encode-spack + monlib-encode-prometheus +) +target_sources(monlib-service-pages PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/diag_mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/html_mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/index_mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/pre_mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/resource_mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/templates.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/version_mon_page.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/registry_mon_page.cpp +) diff --git a/library/cpp/monlib/service/pages/tablesorter/CMakeLists.txt b/library/cpp/monlib/service/pages/tablesorter/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/monlib/service/pages/tablesorter/CMakeLists.txt +++ b/library/cpp/monlib/service/pages/tablesorter/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/monlib/service/pages/tablesorter/CMakeLists.windows-x86_64.txt b/library/cpp/monlib/service/pages/tablesorter/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..516c919f8a --- /dev/null +++ b/library/cpp/monlib/service/pages/tablesorter/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. + + +get_built_tool_path( + TOOL_rescompiler_bin + TOOL_rescompiler_dependency + tools/rescompiler/bin + rescompiler +) + +add_library(service-pages-tablesorter INTERFACE) +target_link_libraries(service-pages-tablesorter INTERFACE + contrib-libs-cxxsupp + yutil + library-cpp-resource + cpp-monlib-dynamic_counters +) + +add_global_library_for(service-pages-tablesorter.global service-pages-tablesorter) +target_link_libraries(service-pages-tablesorter.global PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-resource + cpp-monlib-dynamic_counters +) +target_sources(service-pages-tablesorter.global PRIVATE + ${CMAKE_BINARY_DIR}/library/cpp/monlib/service/pages/tablesorter/0c255888afcc3e2adc5fd360ee152bac.cpp +) +resources(service-pages-tablesorter.global + ${CMAKE_BINARY_DIR}/library/cpp/monlib/service/pages/tablesorter/0c255888afcc3e2adc5fd360ee152bac.cpp + INPUTS + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/tablesorter/resources/jquery.tablesorter.css + ${CMAKE_SOURCE_DIR}/library/cpp/monlib/service/pages/tablesorter/resources/jquery.tablesorter.js + KEYS + jquery.tablesorter.css + jquery.tablesorter.js +) |