aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2022-12-15 19:25:15 +0300
committerthegeorg <thegeorg@yandex-team.com>2022-12-15 19:25:15 +0300
commit0c31d97afd7858af5f8f858c8addf91655ca9ccc (patch)
tree4d8a246db168f7beaafcd06d486c034115c2123d /library/cpp/monlib
parentd1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff)
downloadydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz
Sync linux-headers instead of using system ones
Diffstat (limited to 'library/cpp/monlib')
-rw-r--r--library/cpp/monlib/deprecated/json/CMakeLists.darwin.txt18
-rw-r--r--library/cpp/monlib/deprecated/json/CMakeLists.linux-aarch64.txt19
-rw-r--r--library/cpp/monlib/deprecated/json/CMakeLists.linux.txt19
-rw-r--r--library/cpp/monlib/deprecated/json/CMakeLists.txt17
-rw-r--r--library/cpp/monlib/dynamic_counters/CMakeLists.darwin.txt28
-rw-r--r--library/cpp/monlib/dynamic_counters/CMakeLists.linux-aarch64.txt29
-rw-r--r--library/cpp/monlib/dynamic_counters/CMakeLists.linux.txt29
-rw-r--r--library/cpp/monlib/dynamic_counters/CMakeLists.txt27
-rw-r--r--library/cpp/monlib/dynamic_counters/percentile/CMakeLists.darwin.txt16
-rw-r--r--library/cpp/monlib/dynamic_counters/percentile/CMakeLists.linux-aarch64.txt17
-rw-r--r--library/cpp/monlib/dynamic_counters/percentile/CMakeLists.linux.txt17
-rw-r--r--library/cpp/monlib/dynamic_counters/percentile/CMakeLists.txt15
-rw-r--r--library/cpp/monlib/encode/CMakeLists.darwin.txt34
-rw-r--r--library/cpp/monlib/encode/CMakeLists.linux-aarch64.txt35
-rw-r--r--library/cpp/monlib/encode/CMakeLists.linux.txt35
-rw-r--r--library/cpp/monlib/encode/CMakeLists.txt33
-rw-r--r--library/cpp/monlib/encode/buffered/CMakeLists.darwin.txt20
-rw-r--r--library/cpp/monlib/encode/buffered/CMakeLists.linux-aarch64.txt21
-rw-r--r--library/cpp/monlib/encode/buffered/CMakeLists.linux.txt21
-rw-r--r--library/cpp/monlib/encode/buffered/CMakeLists.txt19
-rw-r--r--library/cpp/monlib/encode/json/CMakeLists.darwin.txt23
-rw-r--r--library/cpp/monlib/encode/json/CMakeLists.linux-aarch64.txt24
-rw-r--r--library/cpp/monlib/encode/json/CMakeLists.linux.txt24
-rw-r--r--library/cpp/monlib/encode/json/CMakeLists.txt22
-rw-r--r--library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.darwin.txt31
-rw-r--r--library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.linux-aarch64.txt32
-rw-r--r--library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.linux.txt32
-rw-r--r--library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt30
-rw-r--r--library/cpp/monlib/encode/prometheus/CMakeLists.darwin.txt20
-rw-r--r--library/cpp/monlib/encode/prometheus/CMakeLists.linux-aarch64.txt21
-rw-r--r--library/cpp/monlib/encode/prometheus/CMakeLists.linux.txt21
-rw-r--r--library/cpp/monlib/encode/prometheus/CMakeLists.txt19
-rw-r--r--library/cpp/monlib/encode/spack/CMakeLists.darwin.txt27
-rw-r--r--library/cpp/monlib/encode/spack/CMakeLists.linux-aarch64.txt28
-rw-r--r--library/cpp/monlib/encode/spack/CMakeLists.linux.txt28
-rw-r--r--library/cpp/monlib/encode/spack/CMakeLists.txt26
-rw-r--r--library/cpp/monlib/encode/text/CMakeLists.darwin.txt18
-rw-r--r--library/cpp/monlib/encode/text/CMakeLists.linux-aarch64.txt19
-rw-r--r--library/cpp/monlib/encode/text/CMakeLists.linux.txt19
-rw-r--r--library/cpp/monlib/encode/text/CMakeLists.txt17
-rw-r--r--library/cpp/monlib/exception/CMakeLists.darwin.txt17
-rw-r--r--library/cpp/monlib/exception/CMakeLists.linux-aarch64.txt18
-rw-r--r--library/cpp/monlib/exception/CMakeLists.linux.txt18
-rw-r--r--library/cpp/monlib/exception/CMakeLists.txt16
-rw-r--r--library/cpp/monlib/messagebus/CMakeLists.darwin.txt21
-rw-r--r--library/cpp/monlib/messagebus/CMakeLists.linux-aarch64.txt22
-rw-r--r--library/cpp/monlib/messagebus/CMakeLists.linux.txt22
-rw-r--r--library/cpp/monlib/messagebus/CMakeLists.txt20
-rw-r--r--library/cpp/monlib/metrics/CMakeLists.darwin.txt38
-rw-r--r--library/cpp/monlib/metrics/CMakeLists.linux-aarch64.txt39
-rw-r--r--library/cpp/monlib/metrics/CMakeLists.linux.txt39
-rw-r--r--library/cpp/monlib/metrics/CMakeLists.txt37
-rw-r--r--library/cpp/monlib/service/CMakeLists.darwin.txt34
-rw-r--r--library/cpp/monlib/service/CMakeLists.linux-aarch64.txt35
-rw-r--r--library/cpp/monlib/service/CMakeLists.linux.txt35
-rw-r--r--library/cpp/monlib/service/CMakeLists.txt33
-rw-r--r--library/cpp/monlib/service/pages/CMakeLists.darwin.txt35
-rw-r--r--library/cpp/monlib/service/pages/CMakeLists.linux-aarch64.txt36
-rw-r--r--library/cpp/monlib/service/pages/CMakeLists.linux.txt36
-rw-r--r--library/cpp/monlib/service/pages/CMakeLists.txt34
-rw-r--r--library/cpp/monlib/service/pages/tablesorter/CMakeLists.darwin.txt36
-rw-r--r--library/cpp/monlib/service/pages/tablesorter/CMakeLists.linux-aarch64.txt38
-rw-r--r--library/cpp/monlib/service/pages/tablesorter/CMakeLists.linux.txt38
-rw-r--r--library/cpp/monlib/service/pages/tablesorter/CMakeLists.txt35
64 files changed, 1394 insertions, 288 deletions
diff --git a/library/cpp/monlib/deprecated/json/CMakeLists.darwin.txt b/library/cpp/monlib/deprecated/json/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..22f7d6227c
--- /dev/null
+++ b/library/cpp/monlib/deprecated/json/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-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/deprecated/json/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/deprecated/json/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..3c526573cb
--- /dev/null
+++ b/library/cpp/monlib/deprecated/json/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-deprecated-json)
+target_link_libraries(monlib-deprecated-json PUBLIC
+ contrib-libs-linux-headers
+ 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/deprecated/json/CMakeLists.linux.txt b/library/cpp/monlib/deprecated/json/CMakeLists.linux.txt
new file mode 100644
index 0000000000..3c526573cb
--- /dev/null
+++ b/library/cpp/monlib/deprecated/json/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-deprecated-json)
+target_link_libraries(monlib-deprecated-json PUBLIC
+ contrib-libs-linux-headers
+ 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/deprecated/json/CMakeLists.txt b/library/cpp/monlib/deprecated/json/CMakeLists.txt
index 22f7d6227c..3e0811fb22 100644
--- a/library/cpp/monlib/deprecated/json/CMakeLists.txt
+++ b/library/cpp/monlib/deprecated/json/CMakeLists.txt
@@ -6,13 +6,10 @@
# 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
-)
+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/dynamic_counters/CMakeLists.darwin.txt b/library/cpp/monlib/dynamic_counters/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..e8dacd3a61
--- /dev/null
+++ b/library/cpp/monlib/dynamic_counters/CMakeLists.darwin.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.
+
+
+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/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/dynamic_counters/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..87a5fa69ea
--- /dev/null
+++ b/library/cpp/monlib/dynamic_counters/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,29 @@
+
+# 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(percentile)
+
+add_library(cpp-monlib-dynamic_counters)
+target_link_libraries(cpp-monlib-dynamic_counters PUBLIC
+ contrib-libs-linux-headers
+ 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/CMakeLists.linux.txt b/library/cpp/monlib/dynamic_counters/CMakeLists.linux.txt
new file mode 100644
index 0000000000..87a5fa69ea
--- /dev/null
+++ b/library/cpp/monlib/dynamic_counters/CMakeLists.linux.txt
@@ -0,0 +1,29 @@
+
+# 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(percentile)
+
+add_library(cpp-monlib-dynamic_counters)
+target_link_libraries(cpp-monlib-dynamic_counters PUBLIC
+ contrib-libs-linux-headers
+ 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/CMakeLists.txt b/library/cpp/monlib/dynamic_counters/CMakeLists.txt
index e8dacd3a61..3e0811fb22 100644
--- a/library/cpp/monlib/dynamic_counters/CMakeLists.txt
+++ b/library/cpp/monlib/dynamic_counters/CMakeLists.txt
@@ -6,23 +6,10 @@
# 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
-)
+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/dynamic_counters/percentile/CMakeLists.darwin.txt b/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..6d9aa304fc
--- /dev/null
+++ b/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.darwin.txt
@@ -0,0 +1,16 @@
+
+# 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-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/dynamic_counters/percentile/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..7047272351
--- /dev/null
+++ b/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,17 @@
+
+# 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-dynamic_counters-percentile INTERFACE)
+target_link_libraries(monlib-dynamic_counters-percentile INTERFACE
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ yutil
+ cpp-containers-stack_vector
+ cpp-monlib-dynamic_counters
+)
diff --git a/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.linux.txt b/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.linux.txt
new file mode 100644
index 0000000000..7047272351
--- /dev/null
+++ b/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.linux.txt
@@ -0,0 +1,17 @@
+
+# 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-dynamic_counters-percentile INTERFACE)
+target_link_libraries(monlib-dynamic_counters-percentile INTERFACE
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ yutil
+ cpp-containers-stack_vector
+ cpp-monlib-dynamic_counters
+)
diff --git a/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.txt b/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.txt
index 6d9aa304fc..3e0811fb22 100644
--- a/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.txt
+++ b/library/cpp/monlib/dynamic_counters/percentile/CMakeLists.txt
@@ -6,11 +6,10 @@
# 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
-)
+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/CMakeLists.darwin.txt b/library/cpp/monlib/encode/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..539c9b07f3
--- /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 0000000000..d43206009f
--- /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 0000000000..d43206009f
--- /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 539c9b07f3..3e0811fb22 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 0000000000..978bbad573
--- /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 0000000000..a3d3f40e98
--- /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 0000000000..a3d3f40e98
--- /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 978bbad573..3e0811fb22 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 0000000000..bcdb013523
--- /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 0000000000..7c8f4c7d62
--- /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 0000000000..7c8f4c7d62
--- /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 bcdb013523..3e0811fb22 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 0000000000..3c051b63a3
--- /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 0000000000..20ea45cd67
--- /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 0000000000..20ea45cd67
--- /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 3c051b63a3..3e0811fb22 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 0000000000..662ee84590
--- /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 0000000000..501ea0f6e2
--- /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 0000000000..501ea0f6e2
--- /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 662ee84590..3e0811fb22 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 0000000000..1be9c24714
--- /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 0000000000..81590acc5d
--- /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 0000000000..81590acc5d
--- /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 1be9c24714..3e0811fb22 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 0000000000..5f8faa7897
--- /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 0000000000..1791a12df9
--- /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 0000000000..1791a12df9
--- /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 5f8faa7897..3e0811fb22 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()
diff --git a/library/cpp/monlib/exception/CMakeLists.darwin.txt b/library/cpp/monlib/exception/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..43b9efb77f
--- /dev/null
+++ b/library/cpp/monlib/exception/CMakeLists.darwin.txt
@@ -0,0 +1,17 @@
+
+# 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-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/exception/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/exception/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..24d2a8b619
--- /dev/null
+++ b/library/cpp/monlib/exception/CMakeLists.linux-aarch64.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-monlib-exception)
+target_link_libraries(cpp-monlib-exception PUBLIC
+ contrib-libs-linux-headers
+ 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/exception/CMakeLists.linux.txt b/library/cpp/monlib/exception/CMakeLists.linux.txt
new file mode 100644
index 0000000000..24d2a8b619
--- /dev/null
+++ b/library/cpp/monlib/exception/CMakeLists.linux.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-monlib-exception)
+target_link_libraries(cpp-monlib-exception PUBLIC
+ contrib-libs-linux-headers
+ 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/exception/CMakeLists.txt b/library/cpp/monlib/exception/CMakeLists.txt
index 43b9efb77f..3e0811fb22 100644
--- a/library/cpp/monlib/exception/CMakeLists.txt
+++ b/library/cpp/monlib/exception/CMakeLists.txt
@@ -6,12 +6,10 @@
# 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
-)
+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/messagebus/CMakeLists.darwin.txt b/library/cpp/monlib/messagebus/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..82610ee23f
--- /dev/null
+++ b/library/cpp/monlib/messagebus/CMakeLists.darwin.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(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/messagebus/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/messagebus/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..cfe2f66af4
--- /dev/null
+++ b/library/cpp/monlib/messagebus/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,22 @@
+
+# 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-monlib-messagebus)
+target_link_libraries(cpp-monlib-messagebus PUBLIC
+ contrib-libs-linux-headers
+ 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/messagebus/CMakeLists.linux.txt b/library/cpp/monlib/messagebus/CMakeLists.linux.txt
new file mode 100644
index 0000000000..cfe2f66af4
--- /dev/null
+++ b/library/cpp/monlib/messagebus/CMakeLists.linux.txt
@@ -0,0 +1,22 @@
+
+# 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-monlib-messagebus)
+target_link_libraries(cpp-monlib-messagebus PUBLIC
+ contrib-libs-linux-headers
+ 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/messagebus/CMakeLists.txt b/library/cpp/monlib/messagebus/CMakeLists.txt
index 82610ee23f..3e0811fb22 100644
--- a/library/cpp/monlib/messagebus/CMakeLists.txt
+++ b/library/cpp/monlib/messagebus/CMakeLists.txt
@@ -6,16 +6,10 @@
# 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
-)
+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/metrics/CMakeLists.darwin.txt b/library/cpp/monlib/metrics/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..d3002d3ad2
--- /dev/null
+++ b/library/cpp/monlib/metrics/CMakeLists.darwin.txt
@@ -0,0 +1,38 @@
+
+# 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-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/metrics/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/metrics/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..2695c03931
--- /dev/null
+++ b/library/cpp/monlib/metrics/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,39 @@
+
+# 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-monlib-metrics)
+target_link_libraries(cpp-monlib-metrics PUBLIC
+ contrib-libs-linux-headers
+ 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/metrics/CMakeLists.linux.txt b/library/cpp/monlib/metrics/CMakeLists.linux.txt
new file mode 100644
index 0000000000..2695c03931
--- /dev/null
+++ b/library/cpp/monlib/metrics/CMakeLists.linux.txt
@@ -0,0 +1,39 @@
+
+# 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-monlib-metrics)
+target_link_libraries(cpp-monlib-metrics PUBLIC
+ contrib-libs-linux-headers
+ 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/metrics/CMakeLists.txt b/library/cpp/monlib/metrics/CMakeLists.txt
index d3002d3ad2..3e0811fb22 100644
--- a/library/cpp/monlib/metrics/CMakeLists.txt
+++ b/library/cpp/monlib/metrics/CMakeLists.txt
@@ -6,33 +6,10 @@
# original buildsystem will not be accepted.
-
-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
-)
+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/service/CMakeLists.darwin.txt b/library/cpp/monlib/service/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..24bc76ad29
--- /dev/null
+++ b/library/cpp/monlib/service/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(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/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/service/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..b5a0725893
--- /dev/null
+++ b/library/cpp/monlib/service/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(pages)
+
+add_library(cpp-monlib-service)
+target_link_libraries(cpp-monlib-service PUBLIC
+ contrib-libs-linux-headers
+ 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/CMakeLists.linux.txt b/library/cpp/monlib/service/CMakeLists.linux.txt
new file mode 100644
index 0000000000..b5a0725893
--- /dev/null
+++ b/library/cpp/monlib/service/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(pages)
+
+add_library(cpp-monlib-service)
+target_link_libraries(cpp-monlib-service PUBLIC
+ contrib-libs-linux-headers
+ 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/CMakeLists.txt b/library/cpp/monlib/service/CMakeLists.txt
index 24bc76ad29..3e0811fb22 100644
--- a/library/cpp/monlib/service/CMakeLists.txt
+++ b/library/cpp/monlib/service/CMakeLists.txt
@@ -6,29 +6,10 @@
# 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
-)
+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/service/pages/CMakeLists.darwin.txt b/library/cpp/monlib/service/pages/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..cc2387ede1
--- /dev/null
+++ b/library/cpp/monlib/service/pages/CMakeLists.darwin.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(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/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/service/pages/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..55463581b7
--- /dev/null
+++ b/library/cpp/monlib/service/pages/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,36 @@
+
+# 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(tablesorter)
+
+add_library(monlib-service-pages)
+target_link_libraries(monlib-service-pages PUBLIC
+ contrib-libs-linux-headers
+ 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/CMakeLists.linux.txt b/library/cpp/monlib/service/pages/CMakeLists.linux.txt
new file mode 100644
index 0000000000..55463581b7
--- /dev/null
+++ b/library/cpp/monlib/service/pages/CMakeLists.linux.txt
@@ -0,0 +1,36 @@
+
+# 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(tablesorter)
+
+add_library(monlib-service-pages)
+target_link_libraries(monlib-service-pages PUBLIC
+ contrib-libs-linux-headers
+ 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/CMakeLists.txt b/library/cpp/monlib/service/pages/CMakeLists.txt
index cc2387ede1..3e0811fb22 100644
--- a/library/cpp/monlib/service/pages/CMakeLists.txt
+++ b/library/cpp/monlib/service/pages/CMakeLists.txt
@@ -6,30 +6,10 @@
# 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
-)
+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/service/pages/tablesorter/CMakeLists.darwin.txt b/library/cpp/monlib/service/pages/tablesorter/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..8a5b46eba9
--- /dev/null
+++ b/library/cpp/monlib/service/pages/tablesorter/CMakeLists.darwin.txt
@@ -0,0 +1,36 @@
+
+# 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(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
+)
diff --git a/library/cpp/monlib/service/pages/tablesorter/CMakeLists.linux-aarch64.txt b/library/cpp/monlib/service/pages/tablesorter/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..b3e2ffe5a1
--- /dev/null
+++ b/library/cpp/monlib/service/pages/tablesorter/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,38 @@
+
+# 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(service-pages-tablesorter INTERFACE)
+target_link_libraries(service-pages-tablesorter INTERFACE
+ contrib-libs-linux-headers
+ 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-linux-headers
+ 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
+)
diff --git a/library/cpp/monlib/service/pages/tablesorter/CMakeLists.linux.txt b/library/cpp/monlib/service/pages/tablesorter/CMakeLists.linux.txt
new file mode 100644
index 0000000000..b3e2ffe5a1
--- /dev/null
+++ b/library/cpp/monlib/service/pages/tablesorter/CMakeLists.linux.txt
@@ -0,0 +1,38 @@
+
+# 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(service-pages-tablesorter INTERFACE)
+target_link_libraries(service-pages-tablesorter INTERFACE
+ contrib-libs-linux-headers
+ 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-linux-headers
+ 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
+)
diff --git a/library/cpp/monlib/service/pages/tablesorter/CMakeLists.txt b/library/cpp/monlib/service/pages/tablesorter/CMakeLists.txt
index 8a5b46eba9..3e0811fb22 100644
--- a/library/cpp/monlib/service/pages/tablesorter/CMakeLists.txt
+++ b/library/cpp/monlib/service/pages/tablesorter/CMakeLists.txt
@@ -6,31 +6,10 @@
# original buildsystem will not be accepted.
-
-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
-)
+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()