-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'src/c-blosc2/' changes from f344bb7c3..f4d595baa
8fbdb4310 Getting ready for release 2.10.2 1c5441f46 Fix redefinition of PATH_MAX macro with mingw d1908567b Fix CMake Install: Find*.cmake Modules d0594f5ed CMake: Update FindZLIB_NG For Target 5a7adf4be CMake: Fix installing cmake files in mingw 42ec0a71e Be more explicit on errors when loading dynamic plugin symbols 2bd8eddd1 Post 2.10.1 release actions done 3b4827b85 Fix some compiler warnings 029b6404a Getting ready for release 2.10.1 d24f7e923 Fix new typos found by codespell d510951c4 Inline Comments & Cleaning 2eec1cdde CMake: Install Blosc2Config.cmake 002509336 Do not return error when file does not exist e11cb2d21 Post 2.10.0 release actions done 7c0b97dd2 Getting ready for release 2.10.0 90975f887 Merge branch 'froody-bytedelta' 4966a176a Fix test and buggy filter renamed to bytedelta_buggy e5ff89ecc Use another filter ID for fixed bytedelta f14aa157e Better check for zstd presence 1a26298a1 Use srand and rand for Win compat 88c46fd90 Fix some issues on win and scenarios where zstd is not there 49b5dbd94 Fix some warnings d62e35c2d Correctly cycle buffers 9dc3b01e4 Test for filters b34c1d276 Fix: CMake External Zlib 4b4097723 blosc2.h: Avoid C++20 Designated Init bcc861040 CMake: Quote $ENV{CMAKE_OSX_ARCHITECTURES} b62c8d09d Better check for zstd presence d4d99a261 Use srand and rand for Win compat da9d9de46 Fix some issues on win and scenarios where zstd is not there f3ad130ba Fix some warnings 9da341204 Correctly cycle buffers 0e3751790 Test for filters 7e59a4559 Fix: CMake External Zlib 26cd3cbdd blosc2.h: Avoid C++20 Designated Init 09a3bccbf CMake: Quote $ENV{CMAKE_OSX_ARCHITECTURES} 7614d284e Fix discrepancy between SIMD/Non-SIMD versions of bytedelta d1aa36719 Better test for bytedelta bcc3825d2 Rename Btune Balance to Tradeoff 0787e1b26 Assorted minor documentation fixes 37ea3288e Post 2.9.3 release actions done 48e7cdf4a Getting ready for release 2.9.3 d55bfcd68 Fix #522 425e8a9a5 Fix for #519 #520 #521 144ed29ae Move images c2d499595 Add new images for blosc2 pipeline 86fc0f66a Check chunksize <= MAX_BUFFERSIZE 5486f5ca4 Replace the superseded cmake option COMPILE_FLAGS with COMPILE_OPTIONS 08e4e1a4e Fix windows 092e30d33 move load_lib to blosc-private fd6f6ef76 Improvements on README for plugins 804640269 Add a section on citing Blosc work 2f52ee807 Fix. Malloc array with variable size fd6df7577 Declare strindes length acording to ndim 876316bcf Make test_frame_get_offsets not fail when different comp params are used 190292cbc Do not reduce maxout if intr_codec 2fffef723 Do not use dict when btune active 7ee73133a unnecessary whitespace before a quoted newline b2fe10bad Macros with multiple statements should be enclosed in a do - while loop 257cc203a Single statement macros should not use a do {} while (0) loop c12cd6ea1 `inline` keyword should sit between storage class and type 7b3da0373 `calloc` uses number as first arg, sizeof is generally wrong 2eab185da Revert previous changes to vendored code 1d4a50f6d Add CMAKE_DL_LIBS to CMakeLists.txt to make dlopen available on non-win platforms 57f7d6937 Complete tunes -> tuners transition 298e08589 Fix compiler warning 7e31de3e3 Clean up header file inclusion, sequel of c4f28da ae71d5e72 Do not use BLOSC_EXPORT in source files 22f69e16a Macros starting with if should be enclosed by a do - while loop to avoid possible if/else logic defects 02a39a60b Macros with multiple statements should be enclosed in a do - while loop c4c2d910e Macros should not use a trailing semicolon 3362954d9 `inline` keyword should sit between storage class and type c8ebc2472 Fix incorrect nested ifdef's from a3e56ee a3e56eeca Clean up existing header guards, add missing ones 4450f1549 Forgot to pclose() in all cases in ca60217 0420bd4f6 Clean up use of 'extern "C"' in header files 868b53ec5 Add a BLOSC_TRACE_INFO 53e83654a Post 2.9.2 release actions done git-subtree-dir: src/c-blosc2 git-subtree-split: f4d595baa9b573818412143862a67f8ecfdffe84
- Loading branch information
Showing
123 changed files
with
2,311 additions
and
1,041 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# only add PUBLIC dependencies as well | ||
# https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#creating-a-package-configuration-file | ||
include(CMakeFindDependencyMacro) | ||
|
||
# Search in <PackageName>_ROOT: | ||
# https://cmake.org/cmake/help/v3.12/policy/CMP0074.html | ||
if(POLICY CMP0074) | ||
cmake_policy(SET CMP0074 NEW) | ||
endif() | ||
|
||
# locate the installed FindABC.cmake modules | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/Modules") | ||
|
||
# this section stores which configuration options were set | ||
set(HAVE_THREADS @Threads_FOUND@) | ||
set(HAVE_IPP @HAVE_IPP@) | ||
set(HAVE_ZLIB_NG @HAVE_ZLIB_NG@) | ||
set(DEACTIVATE_IPP @DEACTIVATE_IPP@) | ||
set(DEACTIVATE_ZLIB @DEACTIVATE_ZLIB@) | ||
set(DEACTIVATE_ZSTD @DEACTIVATE_ZSTD@) | ||
set(PREFER_EXTERNAL_LZ4 @PREFER_EXTERNAL_LZ4@) | ||
set(PREFER_EXTERNAL_ZLIB @PREFER_EXTERNAL_ZLIB@) | ||
set(PREFER_EXTERNAL_ZSTD @PREFER_EXTERNAL_ZSTD@) | ||
|
||
# find dependencies and their targets, which are used in our Blosc2Targets.cmake | ||
# additionally, the Blosc2_..._FOUND variables are used to support | ||
# find_package(Blosc2 ... COMPONENTS ... ...) | ||
# this enables downstream projects to express the need for specific features. | ||
if(WIN32) | ||
if(HAVE_THREADS) | ||
find_dependency(Threads) | ||
set(Blosc2_THREADS_FOUND TRUE) | ||
else() | ||
set(Blosc2_THREADS_FOUND FALSE) | ||
endif() | ||
else() | ||
find_dependency(Threads) | ||
set(Blosc2_THREADS_FOUND TRUE) | ||
endif() | ||
|
||
if(NOT DEACTIVATE_IPP AND HAVE_IPP) | ||
find_dependency(IPP) | ||
set(Blosc2_IPP_FOUND FALSE) | ||
else() | ||
set(Blosc2_IPP_FOUND TRUE) | ||
endif() | ||
|
||
if(PREFER_EXTERNAL_LZ4) | ||
find_dependency(LZ4) | ||
endif() | ||
set(Blosc2_LZ4_FOUND TRUE) | ||
|
||
if(DEACTIVATE_ZLIB) | ||
set(Blosc2_ZLIB_FOUND FALSE) | ||
elseif(NOT DEACTIVATE_ZLIB AND PREFER_EXTERNAL_ZLIB) | ||
if(HAVE_ZLIB_NG) | ||
find_dependency(ZLIB_NG) | ||
else() | ||
find_dependency(ZLIB) | ||
endif() | ||
set(Blosc2_ZLIB_FOUND TRUE) | ||
endif() | ||
|
||
if(DEACTIVATE_ZSTD) | ||
set(Blosc2_ZSTD_FOUND FALSE) | ||
elseif(NOT PREFER_EXTERNAL_ZSTD AND PREFER_EXTERNAL_ZSTD) | ||
find_dependency(ZSTD) | ||
set(Blosc2_ZSTD_FOUND TRUE) | ||
endif() | ||
|
||
# define central Blosc2::blosc2_shared/static targets | ||
include("${CMAKE_CURRENT_LIST_DIR}/Blosc2Targets.cmake") | ||
|
||
# check if components are fulfilled and set Blosc2_<COMPONENT>_FOUND vars | ||
# Blosc2_FIND_COMPONENTS is a list set by find_package(... COMPONENTS ... ...) | ||
# likewise Blosc2_FIND_REQUIRED_... per component specified | ||
foreach(comp ${Blosc2_FIND_COMPONENTS}) | ||
if(NOT Blosc2_${comp}_FOUND) | ||
if(Blosc2_FIND_REQUIRED_${comp}) | ||
set(Blosc2_FOUND FALSE) | ||
endif() | ||
endif() | ||
endforeach() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.