aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
commitb4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch)
tree6a64ab25a145265287789bceed3f59e953561206 /library/cpp/monlib/encode
parent5e837a820d5be0671fa4096a1cc1e378453e5132 (diff)
downloadydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'library/cpp/monlib/encode')
-rw-r--r--library/cpp/monlib/encode/CMakeLists.txt19
-rw-r--r--library/cpp/monlib/encode/buffered/CMakeLists.txt11
-rw-r--r--library/cpp/monlib/encode/json/CMakeLists.txt14
-rw-r--r--library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt13
-rw-r--r--library/cpp/monlib/encode/prometheus/CMakeLists.txt10
-rw-r--r--library/cpp/monlib/encode/spack/CMakeLists.txt19
-rw-r--r--library/cpp/monlib/encode/text/CMakeLists.txt9
7 files changed, 95 insertions, 0 deletions
diff --git a/library/cpp/monlib/encode/CMakeLists.txt b/library/cpp/monlib/encode/CMakeLists.txt
new file mode 100644
index 0000000000..884750fd75
--- /dev/null
+++ b/library/cpp/monlib/encode/CMakeLists.txt
@@ -0,0 +1,19 @@
+add_library(cpp-monlib-encode)
+target_link_libraries(cpp-monlib-encode PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ cpp-monlib-metrics
+ tools-enum_parser-enum_serialization_runtime
+)
+target_sources(cpp-monlib-encode PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/encoder.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/encoder_state.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/format.cpp
+)
+generate_enum_serilization(cpp-monlib-encode
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/encoder_state_enum.h
+ GEN_HEADER
+ ${CMAKE_BINARY_DIR}/library/cpp/monlib/encode/encoder_state_enum.h_serialized.h
+ INCLUDE_HEADERS
+ library/cpp/monlib/encode/encoder_state_enum.h
+)
diff --git a/library/cpp/monlib/encode/buffered/CMakeLists.txt b/library/cpp/monlib/encode/buffered/CMakeLists.txt
new file mode 100644
index 0000000000..3cf47f8183
--- /dev/null
+++ b/library/cpp/monlib/encode/buffered/CMakeLists.txt
@@ -0,0 +1,11 @@
+add_library(monlib-encode-buffered)
+target_link_libraries(monlib-encode-buffered PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ cpp-monlib-encode
+ cpp-monlib-metrics
+)
+target_sources(monlib-encode-buffered PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/buffered/buffered_encoder_base.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/buffered/string_pool.cpp
+)
diff --git a/library/cpp/monlib/encode/json/CMakeLists.txt b/library/cpp/monlib/encode/json/CMakeLists.txt
new file mode 100644
index 0000000000..697e424fdd
--- /dev/null
+++ b/library/cpp/monlib/encode/json/CMakeLists.txt
@@ -0,0 +1,14 @@
+add_library(monlib-encode-json)
+target_link_libraries(monlib-encode-json PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ cpp-monlib-encode
+ monlib-encode-buffered
+ cpp-monlib-exception
+ library-cpp-json
+ cpp-json-writer
+)
+target_sources(monlib-encode-json PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/json/json_decoder.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/json/json_encoder.cpp
+)
diff --git a/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt
new file mode 100644
index 0000000000..ea9bd6c6d9
--- /dev/null
+++ b/library/cpp/monlib/encode/legacy_protobuf/protos/CMakeLists.txt
@@ -0,0 +1,13 @@
+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_plugin(encode-legacy_protobuf-protos
+ cpp_styleguide
+ cpp_styleguide
+)
diff --git a/library/cpp/monlib/encode/prometheus/CMakeLists.txt b/library/cpp/monlib/encode/prometheus/CMakeLists.txt
new file mode 100644
index 0000000000..49b3891bf5
--- /dev/null
+++ b/library/cpp/monlib/encode/prometheus/CMakeLists.txt
@@ -0,0 +1,10 @@
+add_library(monlib-encode-prometheus)
+target_link_libraries(monlib-encode-prometheus PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ cpp-monlib-encode
+)
+target_sources(monlib-encode-prometheus PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/prometheus/prometheus_encoder.cpp
+)
diff --git a/library/cpp/monlib/encode/spack/CMakeLists.txt b/library/cpp/monlib/encode/spack/CMakeLists.txt
new file mode 100644
index 0000000000..e6372ee651
--- /dev/null
+++ b/library/cpp/monlib/encode/spack/CMakeLists.txt
@@ -0,0 +1,19 @@
+find_package(ZLIB)
+
+add_library(monlib-encode-spack)
+target_link_libraries(monlib-encode-spack PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ monlib-encode-buffered
+ cpp-monlib-exception
+ contrib-libs-lz4
+ contrib-libs-xxhash
+ ZLIB::ZLIB
+ contrib-libs-zstd
+)
+target_sources(monlib-encode-spack PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/spack/spack_v1_decoder.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/spack/spack_v1_encoder.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/spack/varint.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/monlib/encode/spack/compression.cpp
+)
diff --git a/library/cpp/monlib/encode/text/CMakeLists.txt b/library/cpp/monlib/encode/text/CMakeLists.txt
new file mode 100644
index 0000000000..f398d37526
--- /dev/null
+++ b/library/cpp/monlib/encode/text/CMakeLists.txt
@@ -0,0 +1,9 @@
+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
+)