aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvvvv <vvvv@ydb.tech>2022-08-16 15:22:49 +0300
committervvvv <vvvv@ydb.tech>2022-08-16 15:22:49 +0300
commit06b975b3c419a04e6fc58fedcb226fa080071c73 (patch)
treebd92c0735848589edb23cbb77113593c5d4010b0
parent771ceeb916b191f7a7f9ba77c9179ce3c2300ef1 (diff)
downloadydb-06b975b3c419a04e6fc58fedcb226fa080071c73.tar.gz
fix darwin build
-rw-r--r--CMakeLists.darwin.txt1
-rw-r--r--contrib/libs/lzma/CMakeLists.linux.txt107
-rw-r--r--contrib/libs/lzma/CMakeLists.txt102
-rw-r--r--ydb/library/yql/providers/s3/compressors/CMakeLists.darwin.txt14
-rw-r--r--ydb/library/yql/providers/s3/compressors/CMakeLists.linux.txt38
-rw-r--r--ydb/library/yql/providers/s3/compressors/CMakeLists.txt35
6 files changed, 130 insertions, 167 deletions
diff --git a/CMakeLists.darwin.txt b/CMakeLists.darwin.txt
index 32c3bbbb54..db4b1ca4b0 100644
--- a/CMakeLists.darwin.txt
+++ b/CMakeLists.darwin.txt
@@ -905,6 +905,7 @@ add_subdirectory(contrib/libs/poco/Foundation)
add_subdirectory(contrib/libs/poco/JSON)
add_subdirectory(contrib/libs/poco/XML)
add_subdirectory(ydb/library/yql/providers/s3/compressors)
+add_subdirectory(contrib/libs/lzma)
add_subdirectory(ydb/library/yql/providers/s3/serializations)
add_subdirectory(ydb/library/yql/udfs/common/clickhouse/client)
add_subdirectory(ydb/library/yql/public/udf/support)
diff --git a/contrib/libs/lzma/CMakeLists.linux.txt b/contrib/libs/lzma/CMakeLists.linux.txt
deleted file mode 100644
index 156016b68a..0000000000
--- a/contrib/libs/lzma/CMakeLists.linux.txt
+++ /dev/null
@@ -1,107 +0,0 @@
-
-# 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(contrib-libs-lzma)
-target_compile_options(contrib-libs-lzma PUBLIC
- -DLZMA_API_STATIC
-)
-target_compile_options(contrib-libs-lzma PRIVATE
- -DHAVE_CONFIG_H
- -DTUKLIB_SYMBOL_PREFIX=lzma_
- -Wno-everything
-)
-target_include_directories(contrib-libs-lzma PUBLIC
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/api
-)
-target_include_directories(contrib-libs-lzma PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/common
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/delta
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lz
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/rangecoder
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple
-)
-target_sources(contrib-libs-lzma PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/common/tuklib_cpucores.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/common/tuklib_physmem.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check/check.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check/crc32_fast.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check/crc32_table.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check/crc64_fast.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check/crc64_table.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check/sha256.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/alone_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/alone_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/auto_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_buffer_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_buffer_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_header_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_header_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_util.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/common.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/easy_buffer_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/easy_decoder_memusage.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/easy_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/easy_encoder_memusage.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/easy_preset.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_buffer_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_buffer_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_common.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_flags_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_flags_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/hardware_cputhreads.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/hardware_physmem.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/index.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/index_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/index_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/index_hash.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/outqueue.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_buffer_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_buffer_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_encoder_mt.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_flags_common.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_flags_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_flags_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/vli_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/vli_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/vli_size.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/delta/delta_common.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/delta/delta_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/delta/delta_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lz/lz_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lz/lz_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lz/lz_encoder_mf.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/fastpos_table.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma2_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma2_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma_encoder_optimum_fast.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma_encoder_optimum_normal.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma_encoder_presets.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/rangecoder/price_table.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/arm.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/armthumb.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/ia64.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/powerpc.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/simple_coder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/simple_decoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/simple_encoder.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/sparc.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/x86.c
-)
diff --git a/contrib/libs/lzma/CMakeLists.txt b/contrib/libs/lzma/CMakeLists.txt
index e8c98bfd99..156016b68a 100644
--- a/contrib/libs/lzma/CMakeLists.txt
+++ b/contrib/libs/lzma/CMakeLists.txt
@@ -6,6 +6,102 @@
# original buildsystem will not be accepted.
-if (UNIX AND NOT APPLE)
- include(CMakeLists.linux.txt)
-endif()
+
+add_library(contrib-libs-lzma)
+target_compile_options(contrib-libs-lzma PUBLIC
+ -DLZMA_API_STATIC
+)
+target_compile_options(contrib-libs-lzma PRIVATE
+ -DHAVE_CONFIG_H
+ -DTUKLIB_SYMBOL_PREFIX=lzma_
+ -Wno-everything
+)
+target_include_directories(contrib-libs-lzma PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/api
+)
+target_include_directories(contrib-libs-lzma PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/common
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/delta
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lz
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/rangecoder
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple
+)
+target_sources(contrib-libs-lzma PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/common/tuklib_cpucores.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/common/tuklib_physmem.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check/check.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check/crc32_fast.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check/crc32_table.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check/crc64_fast.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check/crc64_table.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/check/sha256.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/alone_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/alone_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/auto_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_buffer_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_buffer_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_header_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_header_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/block_util.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/common.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/easy_buffer_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/easy_decoder_memusage.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/easy_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/easy_encoder_memusage.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/easy_preset.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_buffer_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_buffer_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_common.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_flags_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/filter_flags_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/hardware_cputhreads.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/hardware_physmem.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/index.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/index_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/index_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/index_hash.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/outqueue.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_buffer_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_buffer_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_encoder_mt.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_flags_common.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_flags_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/stream_flags_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/vli_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/vli_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/common/vli_size.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/delta/delta_common.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/delta/delta_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/delta/delta_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lz/lz_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lz/lz_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lz/lz_encoder_mf.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/fastpos_table.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma2_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma2_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma_encoder_optimum_fast.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma_encoder_optimum_normal.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/lzma/lzma_encoder_presets.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/rangecoder/price_table.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/arm.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/armthumb.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/ia64.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/powerpc.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/simple_coder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/simple_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/simple_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/sparc.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/lzma/liblzma/simple/x86.c
+)
diff --git a/ydb/library/yql/providers/s3/compressors/CMakeLists.darwin.txt b/ydb/library/yql/providers/s3/compressors/CMakeLists.darwin.txt
deleted file mode 100644
index c319079809..0000000000
--- a/ydb/library/yql/providers/s3/compressors/CMakeLists.darwin.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-
-# 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(providers-s3-compressors INTERFACE)
-target_link_libraries(providers-s3-compressors INTERFACE
- contrib-libs-cxxsupp
- yutil
-)
diff --git a/ydb/library/yql/providers/s3/compressors/CMakeLists.linux.txt b/ydb/library/yql/providers/s3/compressors/CMakeLists.linux.txt
deleted file mode 100644
index 2f174749ae..0000000000
--- a/ydb/library/yql/providers/s3/compressors/CMakeLists.linux.txt
+++ /dev/null
@@ -1,38 +0,0 @@
-
-# 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(providers-s3-compressors)
-target_compile_options(providers-s3-compressors PRIVATE
- -DUSE_CURRENT_UDF_ABI_VERSION
-)
-target_include_directories(providers-s3-compressors PRIVATE
- ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/clickhouse/client/base
- ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/clickhouse/client/base/pcg-random
- ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/clickhouse/client/src
-)
-target_link_libraries(providers-s3-compressors PUBLIC
- contrib-libs-cxxsupp
- yutil
- contrib-libs-fmt
- libs-poco-Util
- libs-brotli-dec
- contrib-libs-libbz2
- contrib-libs-lz4
- contrib-libs-lzma
- contrib-libs-zstd
-)
-target_sources(providers-s3-compressors PRIVATE
- ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/brotli.cpp
- ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/bzip2.cpp
- ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/gz.cpp
- ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/factory.cpp
- ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/lz4io.cpp
- ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/zstd.cpp
- ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/xz.cpp
-)
diff --git a/ydb/library/yql/providers/s3/compressors/CMakeLists.txt b/ydb/library/yql/providers/s3/compressors/CMakeLists.txt
index fc7b1ee73c..2f174749ae 100644
--- a/ydb/library/yql/providers/s3/compressors/CMakeLists.txt
+++ b/ydb/library/yql/providers/s3/compressors/CMakeLists.txt
@@ -6,8 +6,33 @@
# original buildsystem will not be accepted.
-if (APPLE)
- include(CMakeLists.darwin.txt)
-elseif (UNIX AND NOT APPLE)
- include(CMakeLists.linux.txt)
-endif()
+
+add_library(providers-s3-compressors)
+target_compile_options(providers-s3-compressors PRIVATE
+ -DUSE_CURRENT_UDF_ABI_VERSION
+)
+target_include_directories(providers-s3-compressors PRIVATE
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/clickhouse/client/base
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/clickhouse/client/base/pcg-random
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/clickhouse/client/src
+)
+target_link_libraries(providers-s3-compressors PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ contrib-libs-fmt
+ libs-poco-Util
+ libs-brotli-dec
+ contrib-libs-libbz2
+ contrib-libs-lz4
+ contrib-libs-lzma
+ contrib-libs-zstd
+)
+target_sources(providers-s3-compressors PRIVATE
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/brotli.cpp
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/bzip2.cpp
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/gz.cpp
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/factory.cpp
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/lz4io.cpp
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/zstd.cpp
+ ${CMAKE_SOURCE_DIR}/ydb/library/yql/providers/s3/compressors/xz.cpp
+)