aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/blockcodecs
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/blockcodecs
parent5e837a820d5be0671fa4096a1cc1e378453e5132 (diff)
downloadydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'library/cpp/blockcodecs')
-rw-r--r--library/cpp/blockcodecs/CMakeLists.txt19
-rw-r--r--library/cpp/blockcodecs/codecs/brotli/CMakeLists.txt13
-rw-r--r--library/cpp/blockcodecs/codecs/bzip/CMakeLists.txt12
-rw-r--r--library/cpp/blockcodecs/codecs/fastlz/CMakeLists.txt12
-rw-r--r--library/cpp/blockcodecs/codecs/legacy_zstd06/CMakeLists.txt12
-rw-r--r--library/cpp/blockcodecs/codecs/lz4/CMakeLists.txt13
-rw-r--r--library/cpp/blockcodecs/codecs/lzma/CMakeLists.txt12
-rw-r--r--library/cpp/blockcodecs/codecs/snappy/CMakeLists.txt12
-rw-r--r--library/cpp/blockcodecs/codecs/zlib/CMakeLists.txt14
-rw-r--r--library/cpp/blockcodecs/codecs/zstd/CMakeLists.txt12
-rw-r--r--library/cpp/blockcodecs/core/CMakeLists.txt9
11 files changed, 140 insertions, 0 deletions
diff --git a/library/cpp/blockcodecs/CMakeLists.txt b/library/cpp/blockcodecs/CMakeLists.txt
new file mode 100644
index 0000000000..f1bf306e55
--- /dev/null
+++ b/library/cpp/blockcodecs/CMakeLists.txt
@@ -0,0 +1,19 @@
+add_library(library-cpp-blockcodecs)
+target_link_libraries(library-cpp-blockcodecs PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ cpp-blockcodecs-core
+ blockcodecs-codecs-brotli
+ blockcodecs-codecs-bzip
+ blockcodecs-codecs-fastlz
+ blockcodecs-codecs-legacy_zstd06
+ blockcodecs-codecs-lz4
+ blockcodecs-codecs-lzma
+ blockcodecs-codecs-snappy
+ blockcodecs-codecs-zlib
+ blockcodecs-codecs-zstd
+)
+target_sources(library-cpp-blockcodecs PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/blockcodecs/codecs.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/blockcodecs/stream.cpp
+)
diff --git a/library/cpp/blockcodecs/codecs/brotli/CMakeLists.txt b/library/cpp/blockcodecs/codecs/brotli/CMakeLists.txt
new file mode 100644
index 0000000000..c804bdf9af
--- /dev/null
+++ b/library/cpp/blockcodecs/codecs/brotli/CMakeLists.txt
@@ -0,0 +1,13 @@
+add_library(blockcodecs-codecs-brotli INTERFACE)
+target_link_libraries(blockcodecs-codecs-brotli INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+ libs-brotli-enc
+ libs-brotli-dec
+ cpp-blockcodecs-core
+)
+
+add_global_library_for(blockcodecs-codecs-brotli.global blockcodecs-codecs-brotli)
+target_sources(blockcodecs-codecs-brotli.global PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/blockcodecs/codecs/brotli/brotli.cpp
+)
diff --git a/library/cpp/blockcodecs/codecs/bzip/CMakeLists.txt b/library/cpp/blockcodecs/codecs/bzip/CMakeLists.txt
new file mode 100644
index 0000000000..77b71a9b74
--- /dev/null
+++ b/library/cpp/blockcodecs/codecs/bzip/CMakeLists.txt
@@ -0,0 +1,12 @@
+add_library(blockcodecs-codecs-bzip INTERFACE)
+target_link_libraries(blockcodecs-codecs-bzip INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+ contrib-libs-libbz2
+ cpp-blockcodecs-core
+)
+
+add_global_library_for(blockcodecs-codecs-bzip.global blockcodecs-codecs-bzip)
+target_sources(blockcodecs-codecs-bzip.global PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/blockcodecs/codecs/bzip/bzip.cpp
+)
diff --git a/library/cpp/blockcodecs/codecs/fastlz/CMakeLists.txt b/library/cpp/blockcodecs/codecs/fastlz/CMakeLists.txt
new file mode 100644
index 0000000000..d79e69e778
--- /dev/null
+++ b/library/cpp/blockcodecs/codecs/fastlz/CMakeLists.txt
@@ -0,0 +1,12 @@
+add_library(blockcodecs-codecs-fastlz INTERFACE)
+target_link_libraries(blockcodecs-codecs-fastlz INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+ contrib-libs-fastlz
+ cpp-blockcodecs-core
+)
+
+add_global_library_for(blockcodecs-codecs-fastlz.global blockcodecs-codecs-fastlz)
+target_sources(blockcodecs-codecs-fastlz.global PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/blockcodecs/codecs/fastlz/fastlz.cpp
+)
diff --git a/library/cpp/blockcodecs/codecs/legacy_zstd06/CMakeLists.txt b/library/cpp/blockcodecs/codecs/legacy_zstd06/CMakeLists.txt
new file mode 100644
index 0000000000..92e3fd87b8
--- /dev/null
+++ b/library/cpp/blockcodecs/codecs/legacy_zstd06/CMakeLists.txt
@@ -0,0 +1,12 @@
+add_library(blockcodecs-codecs-legacy_zstd06 INTERFACE)
+target_link_libraries(blockcodecs-codecs-legacy_zstd06 INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+ contrib-libs-zstd06
+ cpp-blockcodecs-core
+)
+
+add_global_library_for(blockcodecs-codecs-legacy_zstd06.global blockcodecs-codecs-legacy_zstd06)
+target_sources(blockcodecs-codecs-legacy_zstd06.global PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/blockcodecs/codecs/legacy_zstd06/legacy_zstd06.cpp
+)
diff --git a/library/cpp/blockcodecs/codecs/lz4/CMakeLists.txt b/library/cpp/blockcodecs/codecs/lz4/CMakeLists.txt
new file mode 100644
index 0000000000..a86be8cb36
--- /dev/null
+++ b/library/cpp/blockcodecs/codecs/lz4/CMakeLists.txt
@@ -0,0 +1,13 @@
+add_library(blockcodecs-codecs-lz4 INTERFACE)
+target_link_libraries(blockcodecs-codecs-lz4 INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+ contrib-libs-lz4
+ libs-lz4-generated
+ cpp-blockcodecs-core
+)
+
+add_global_library_for(blockcodecs-codecs-lz4.global blockcodecs-codecs-lz4)
+target_sources(blockcodecs-codecs-lz4.global PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/blockcodecs/codecs/lz4/lz4.cpp
+)
diff --git a/library/cpp/blockcodecs/codecs/lzma/CMakeLists.txt b/library/cpp/blockcodecs/codecs/lzma/CMakeLists.txt
new file mode 100644
index 0000000000..2a9a843736
--- /dev/null
+++ b/library/cpp/blockcodecs/codecs/lzma/CMakeLists.txt
@@ -0,0 +1,12 @@
+add_library(blockcodecs-codecs-lzma INTERFACE)
+target_link_libraries(blockcodecs-codecs-lzma INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+ contrib-libs-lzmasdk
+ cpp-blockcodecs-core
+)
+
+add_global_library_for(blockcodecs-codecs-lzma.global blockcodecs-codecs-lzma)
+target_sources(blockcodecs-codecs-lzma.global PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/blockcodecs/codecs/lzma/lzma.cpp
+)
diff --git a/library/cpp/blockcodecs/codecs/snappy/CMakeLists.txt b/library/cpp/blockcodecs/codecs/snappy/CMakeLists.txt
new file mode 100644
index 0000000000..ebb973f446
--- /dev/null
+++ b/library/cpp/blockcodecs/codecs/snappy/CMakeLists.txt
@@ -0,0 +1,12 @@
+add_library(blockcodecs-codecs-snappy INTERFACE)
+target_link_libraries(blockcodecs-codecs-snappy INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+ contrib-libs-snappy
+ cpp-blockcodecs-core
+)
+
+add_global_library_for(blockcodecs-codecs-snappy.global blockcodecs-codecs-snappy)
+target_sources(blockcodecs-codecs-snappy.global PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/blockcodecs/codecs/snappy/snappy.cpp
+)
diff --git a/library/cpp/blockcodecs/codecs/zlib/CMakeLists.txt b/library/cpp/blockcodecs/codecs/zlib/CMakeLists.txt
new file mode 100644
index 0000000000..339dab43cb
--- /dev/null
+++ b/library/cpp/blockcodecs/codecs/zlib/CMakeLists.txt
@@ -0,0 +1,14 @@
+find_package(ZLIB)
+
+add_library(blockcodecs-codecs-zlib INTERFACE)
+target_link_libraries(blockcodecs-codecs-zlib INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+ ZLIB::ZLIB
+ cpp-blockcodecs-core
+)
+
+add_global_library_for(blockcodecs-codecs-zlib.global blockcodecs-codecs-zlib)
+target_sources(blockcodecs-codecs-zlib.global PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/blockcodecs/codecs/zlib/zlib.cpp
+)
diff --git a/library/cpp/blockcodecs/codecs/zstd/CMakeLists.txt b/library/cpp/blockcodecs/codecs/zstd/CMakeLists.txt
new file mode 100644
index 0000000000..b276eee972
--- /dev/null
+++ b/library/cpp/blockcodecs/codecs/zstd/CMakeLists.txt
@@ -0,0 +1,12 @@
+add_library(blockcodecs-codecs-zstd INTERFACE)
+target_link_libraries(blockcodecs-codecs-zstd INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+ contrib-libs-zstd
+ cpp-blockcodecs-core
+)
+
+add_global_library_for(blockcodecs-codecs-zstd.global blockcodecs-codecs-zstd)
+target_sources(blockcodecs-codecs-zstd.global PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/blockcodecs/codecs/zstd/zstd.cpp
+)
diff --git a/library/cpp/blockcodecs/core/CMakeLists.txt b/library/cpp/blockcodecs/core/CMakeLists.txt
new file mode 100644
index 0000000000..ead54b5bd7
--- /dev/null
+++ b/library/cpp/blockcodecs/core/CMakeLists.txt
@@ -0,0 +1,9 @@
+add_library(cpp-blockcodecs-core)
+target_link_libraries(cpp-blockcodecs-core PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+)
+target_sources(cpp-blockcodecs-core PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/blockcodecs/core/codecs.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/blockcodecs/core/stream.cpp
+)