diff options
| author | thegeorg <[email protected]> | 2022-12-15 19:25:15 +0300 | 
|---|---|---|
| committer | thegeorg <[email protected]> | 2022-12-15 19:25:15 +0300 | 
| commit | 0c31d97afd7858af5f8f858c8addf91655ca9ccc (patch) | |
| tree | 4d8a246db168f7beaafcd06d486c034115c2123d /library/cpp/monlib/encode | |
| parent | d1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff) | |
Sync linux-headers instead of using system ones
Diffstat (limited to 'library/cpp/monlib/encode')
28 files changed, 582 insertions, 117 deletions
| diff --git a/library/cpp/monlib/encode/CMakeLists.darwin.txt b/library/cpp/monlib/encode/CMakeLists.darwin.txt new file mode 100644 index 00000000000..539c9b07f32 --- /dev/null +++ b/library/cpp/monlib/encode/CMakeLists.darwin.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_subdirectory(buffered) +add_subdirectory(json) +add_subdirectory(legacy_protobuf) +add_subdirectory(prometheus) +add_subdirectory(spack) +add_subdirectory(text) + +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/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/encode/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..d43206009fd --- /dev/null +++ b/library/cpp/monlib/encode/CMakeLists.linux-aarch64.txt @@ -0,0 +1,35 @@ + +# 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_subdirectory(buffered) +add_subdirectory(json) +add_subdirectory(legacy_protobuf) +add_subdirectory(prometheus) +add_subdirectory(spack) +add_subdirectory(text) + +add_library(cpp-monlib-encode) +target_link_libraries(cpp-monlib-encode PUBLIC +  contrib-libs-linux-headers +  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/CMakeLists.linux.txt b/library/cpp/monlib/encode/CMakeLists.linux.txt new file mode 100644 index 00000000000..d43206009fd --- /dev/null +++ b/library/cpp/monlib/encode/CMakeLists.linux.txt @@ -0,0 +1,35 @@ + +# 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_subdirectory(buffered) +add_subdirectory(json) +add_subdirectory(legacy_protobuf) +add_subdirectory(prometheus) +add_subdirectory(spack) +add_subdirectory(text) + +add_library(cpp-monlib-encode) +target_link_libraries(cpp-monlib-encode PUBLIC +  contrib-libs-linux-headers +  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/CMakeLists.txt b/library/cpp/monlib/encode/CMakeLists.txt index 539c9b07f32..3e0811fb22e 100644 --- a/library/cpp/monlib/encode/CMakeLists.txt +++ b/library/cpp/monlib/encode/CMakeLists.txt @@ -6,29 +6,10 @@  # 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) - -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 -) +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/monlib/encode/buffered/CMakeLists.darwin.txt b/library/cpp/monlib/encode/buffered/CMakeLists.darwin.txt new file mode 100644 index 00000000000..978bbad573d --- /dev/null +++ b/library/cpp/monlib/encode/buffered/CMakeLists.darwin.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. + + + +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/buffered/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/encode/buffered/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..a3d3f40e98a --- /dev/null +++ b/library/cpp/monlib/encode/buffered/CMakeLists.linux-aarch64.txt @@ -0,0 +1,21 @@ + +# 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(monlib-encode-buffered) +target_link_libraries(monlib-encode-buffered PUBLIC +  contrib-libs-linux-headers +  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/buffered/CMakeLists.linux.txt b/library/cpp/monlib/encode/buffered/CMakeLists.linux.txt new file mode 100644 index 00000000000..a3d3f40e98a --- /dev/null +++ b/library/cpp/monlib/encode/buffered/CMakeLists.linux.txt @@ -0,0 +1,21 @@ + +# 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(monlib-encode-buffered) +target_link_libraries(monlib-encode-buffered PUBLIC +  contrib-libs-linux-headers +  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/buffered/CMakeLists.txt b/library/cpp/monlib/encode/buffered/CMakeLists.txt index 978bbad573d..3e0811fb22e 100644 --- a/library/cpp/monlib/encode/buffered/CMakeLists.txt +++ b/library/cpp/monlib/encode/buffered/CMakeLists.txt @@ -6,15 +6,10 @@  # 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 -) +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/monlib/encode/json/CMakeLists.darwin.txt b/library/cpp/monlib/encode/json/CMakeLists.darwin.txt new file mode 100644 index 00000000000..bcdb013523a --- /dev/null +++ b/library/cpp/monlib/encode/json/CMakeLists.darwin.txt @@ -0,0 +1,23 @@ + +# 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(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/json/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/encode/json/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..7c8f4c7d62e --- /dev/null +++ b/library/cpp/monlib/encode/json/CMakeLists.linux-aarch64.txt @@ -0,0 +1,24 @@ + +# 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(monlib-encode-json) +target_link_libraries(monlib-encode-json PUBLIC +  contrib-libs-linux-headers +  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/json/CMakeLists.linux.txt b/library/cpp/monlib/encode/json/CMakeLists.linux.txt new file mode 100644 index 00000000000..7c8f4c7d62e --- /dev/null +++ b/library/cpp/monlib/encode/json/CMakeLists.linux.txt @@ -0,0 +1,24 @@ + +# 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(monlib-encode-json) +target_link_libraries(monlib-encode-json PUBLIC +  contrib-libs-linux-headers +  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/json/CMakeLists.txt b/library/cpp/monlib/encode/json/CMakeLists.txt index bcdb013523a..3e0811fb22e 100644 --- a/library/cpp/monlib/encode/json/CMakeLists.txt +++ b/library/cpp/monlib/encode/json/CMakeLists.txt @@ -6,18 +6,10 @@  # 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 -) +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/monlib/encode/legacy_protobuf/protos/CMakeLists.darwin.txt b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.darwin.txt new file mode 100644 index 00000000000..3c051b63a3e --- /dev/null +++ b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.darwin.txt @@ -0,0 +1,31 @@ + +# 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(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/legacy_protobuf/protos/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..20ea45cd67a --- /dev/null +++ b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.linux-aarch64.txt @@ -0,0 +1,32 @@ + +# 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(encode-legacy_protobuf-protos) +target_link_libraries(encode-legacy_protobuf-protos PUBLIC +  contrib-libs-linux-headers +  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/legacy_protobuf/protos/CMakeLists.linux.txt b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.linux.txt new file mode 100644 index 00000000000..20ea45cd67a --- /dev/null +++ b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.linux.txt @@ -0,0 +1,32 @@ + +# 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(encode-legacy_protobuf-protos) +target_link_libraries(encode-legacy_protobuf-protos PUBLIC +  contrib-libs-linux-headers +  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/legacy_protobuf/protos/CMakeLists.txt b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt index 3c051b63a3e..3e0811fb22e 100644 --- a/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt +++ b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt @@ -6,26 +6,10 @@  # original buildsystem will not be accepted. - -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}/ -) +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/monlib/encode/prometheus/CMakeLists.darwin.txt b/library/cpp/monlib/encode/prometheus/CMakeLists.darwin.txt new file mode 100644 index 00000000000..662ee84590b --- /dev/null +++ b/library/cpp/monlib/encode/prometheus/CMakeLists.darwin.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. + + + +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/prometheus/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/encode/prometheus/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..501ea0f6e22 --- /dev/null +++ b/library/cpp/monlib/encode/prometheus/CMakeLists.linux-aarch64.txt @@ -0,0 +1,21 @@ + +# 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(monlib-encode-prometheus) +target_link_libraries(monlib-encode-prometheus PUBLIC +  contrib-libs-linux-headers +  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/prometheus/CMakeLists.linux.txt b/library/cpp/monlib/encode/prometheus/CMakeLists.linux.txt new file mode 100644 index 00000000000..501ea0f6e22 --- /dev/null +++ b/library/cpp/monlib/encode/prometheus/CMakeLists.linux.txt @@ -0,0 +1,21 @@ + +# 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(monlib-encode-prometheus) +target_link_libraries(monlib-encode-prometheus PUBLIC +  contrib-libs-linux-headers +  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/prometheus/CMakeLists.txt b/library/cpp/monlib/encode/prometheus/CMakeLists.txt index 662ee84590b..3e0811fb22e 100644 --- a/library/cpp/monlib/encode/prometheus/CMakeLists.txt +++ b/library/cpp/monlib/encode/prometheus/CMakeLists.txt @@ -6,15 +6,10 @@  # 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 -) +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/monlib/encode/spack/CMakeLists.darwin.txt b/library/cpp/monlib/encode/spack/CMakeLists.darwin.txt new file mode 100644 index 00000000000..1be9c247147 --- /dev/null +++ b/library/cpp/monlib/encode/spack/CMakeLists.darwin.txt @@ -0,0 +1,27 @@ + +# 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(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/spack/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/encode/spack/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..81590acc5d8 --- /dev/null +++ b/library/cpp/monlib/encode/spack/CMakeLists.linux-aarch64.txt @@ -0,0 +1,28 @@ + +# 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(ZLIB REQUIRED) + +add_library(monlib-encode-spack) +target_link_libraries(monlib-encode-spack PUBLIC +  contrib-libs-linux-headers +  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/spack/CMakeLists.linux.txt b/library/cpp/monlib/encode/spack/CMakeLists.linux.txt new file mode 100644 index 00000000000..81590acc5d8 --- /dev/null +++ b/library/cpp/monlib/encode/spack/CMakeLists.linux.txt @@ -0,0 +1,28 @@ + +# 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(ZLIB REQUIRED) + +add_library(monlib-encode-spack) +target_link_libraries(monlib-encode-spack PUBLIC +  contrib-libs-linux-headers +  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/spack/CMakeLists.txt b/library/cpp/monlib/encode/spack/CMakeLists.txt index 1be9c247147..3e0811fb22e 100644 --- a/library/cpp/monlib/encode/spack/CMakeLists.txt +++ b/library/cpp/monlib/encode/spack/CMakeLists.txt @@ -6,22 +6,10 @@  # 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 -) +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/monlib/encode/text/CMakeLists.darwin.txt b/library/cpp/monlib/encode/text/CMakeLists.darwin.txt new file mode 100644 index 00000000000..5f8faa78977 --- /dev/null +++ b/library/cpp/monlib/encode/text/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(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/encode/text/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/encode/text/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..1791a12df9c --- /dev/null +++ b/library/cpp/monlib/encode/text/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(monlib-encode-text) +target_link_libraries(monlib-encode-text PUBLIC +  contrib-libs-linux-headers +  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/encode/text/CMakeLists.linux.txt b/library/cpp/monlib/encode/text/CMakeLists.linux.txt new file mode 100644 index 00000000000..1791a12df9c --- /dev/null +++ b/library/cpp/monlib/encode/text/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(monlib-encode-text) +target_link_libraries(monlib-encode-text PUBLIC +  contrib-libs-linux-headers +  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/encode/text/CMakeLists.txt b/library/cpp/monlib/encode/text/CMakeLists.txt index 5f8faa78977..3e0811fb22e 100644 --- a/library/cpp/monlib/encode/text/CMakeLists.txt +++ b/library/cpp/monlib/encode/text/CMakeLists.txt @@ -6,13 +6,10 @@  # 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 -) +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() | 
