diff options
author | thegeorg <thegeorg@yandex-team.com> | 2022-12-15 19:25:15 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2022-12-15 19:25:15 +0300 |
commit | 0c31d97afd7858af5f8f858c8addf91655ca9ccc (patch) | |
tree | 4d8a246db168f7beaafcd06d486c034115c2123d /contrib/libs/lzma/CMakeLists.txt | |
parent | d1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff) | |
download | ydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz |
Sync linux-headers instead of using system ones
Diffstat (limited to 'contrib/libs/lzma/CMakeLists.txt')
-rw-r--r-- | contrib/libs/lzma/CMakeLists.txt | 106 |
1 files changed, 7 insertions, 99 deletions
diff --git a/contrib/libs/lzma/CMakeLists.txt b/contrib/libs/lzma/CMakeLists.txt index 156016b68a..3e0811fb22 100644 --- a/contrib/libs/lzma/CMakeLists.txt +++ b/contrib/libs/lzma/CMakeLists.txt @@ -6,102 +6,10 @@ # 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 -) +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() |