Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Xùdōng Yáng <wyverald@gmail.com>
- Loading branch information
1 parent
ddefd31
commit 3358385
Showing
6 changed files
with
179 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module( | ||
name = "c-blosc2", | ||
version = "2.12.0", | ||
compatibility_level = 1, | ||
) | ||
|
||
bazel_dep(name = "lz4", version = "1.9.4") | ||
bazel_dep(name = "platforms", version = "0.0.8") | ||
bazel_dep(name = "zlib-ng", version = "2.0.7") | ||
bazel_dep(name = "zstd", version = "1.5.5") |
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,118 @@ | ||
--- /dev/null | ||
+++ BUILD.bazel | ||
@@ -0,0 +1,115 @@ | ||
+cc_library( | ||
+ name = "c-blosc2", | ||
+ srcs = [ | ||
+ "blosc/b2nd_utils.c", | ||
+ "blosc/b2nd-private.h", | ||
+ "blosc/b2nd.c", | ||
+ "blosc/bitshuffle-avx2.c", | ||
+ "blosc/bitshuffle-avx2.h", | ||
+ "blosc/bitshuffle-generic.c", | ||
+ "blosc/bitshuffle-generic.h", | ||
+ "blosc/bitshuffle-sse2.c", | ||
+ "blosc/bitshuffle-sse2.h", | ||
+ "blosc/blosc-private.h", | ||
+ "blosc/blosc2-stdio.c", | ||
+ "blosc/blosc2.c", | ||
+ "blosc/blosclz.c", | ||
+ "blosc/blosclz.h", | ||
+ "blosc/delta.c", | ||
+ "blosc/directories.c", | ||
+ "blosc/fastcopy.c", | ||
+ "blosc/frame.c", | ||
+ "blosc/frame.h", | ||
+ "blosc/schunk-private.h", | ||
+ "blosc/schunk.c", | ||
+ "blosc/sframe.c", | ||
+ "blosc/sframe.h", | ||
+ "blosc/shuffle-avx2.c", | ||
+ "blosc/shuffle-avx2.h", | ||
+ "blosc/shuffle-generic.c", | ||
+ "blosc/shuffle-generic.h", | ||
+ "blosc/shuffle-sse2.c", | ||
+ "blosc/shuffle-sse2.h", | ||
+ "blosc/shuffle.c", | ||
+ "blosc/shuffle.h", | ||
+ "blosc/stune.c", | ||
+ "blosc/timestamp.c", | ||
+ "blosc/trunc-prec.c", | ||
+ "plugins/codecs/codecs-registry.c", | ||
+ "plugins/codecs/ndlz/ndlz-private.h", | ||
+ "plugins/codecs/ndlz/ndlz.c", | ||
+ "plugins/codecs/ndlz/ndlz.h", | ||
+ "plugins/codecs/ndlz/ndlz4x4.c", | ||
+ "plugins/codecs/ndlz/ndlz4x4.h", | ||
+ "plugins/codecs/ndlz/ndlz8x8.c", | ||
+ "plugins/codecs/ndlz/ndlz8x8.h", | ||
+ "plugins/codecs/ndlz/xxhash.c", | ||
+ "plugins/codecs/ndlz/xxhash.h", | ||
+ "plugins/codecs/zfp/blosc2-zfp.c", | ||
+ "plugins/codecs/zfp/src/bitstream.c", | ||
+ "plugins/codecs/zfp/src/zfp.c", | ||
+ "plugins/codecs/zfp/zfp-private.h", | ||
+ "plugins/filters/bytedelta/bytedelta.c", | ||
+ "plugins/filters/filters-registry.c", | ||
+ "plugins/filters/ndcell/ndcell.c", | ||
+ "plugins/filters/ndcell/ndcell.h", | ||
+ "plugins/filters/ndmean/ndmean.c", | ||
+ "plugins/filters/ndmean/ndmean.h", | ||
+ "plugins/plugin_utils.c", | ||
+ "plugins/plugin_utils.h", | ||
+ "plugins/tuners/tuners-registry.c", | ||
+ "plugins/codecs/zfp/src/template/template.h", | ||
+ "plugins/filters/bytedelta/bytedelta.h", | ||
+ ], | ||
+ hdrs = [ | ||
+ "blosc/context.h", | ||
+ "blosc/delta.h", | ||
+ "blosc/fastcopy.h", | ||
+ "blosc/stune.h", | ||
+ "blosc/trunc-prec.h", | ||
+ "internal-complibs/lz4-1.9.4/lz4.c", | ||
+ "plugins/codecs/zfp/blosc2-zfp.h", | ||
+ "plugins/codecs/zfp/include", | ||
+ ] + glob([ | ||
+ "include/**/*.h", | ||
+ ]), | ||
+ copts = select({ | ||
+ "@platforms//os:linux": [ | ||
+ "-msse4.1", | ||
+ ], | ||
+ "//conditions:default": [ | ||
+ ], | ||
+ }), | ||
+ includes = [ | ||
+ "blosc", | ||
+ "include", | ||
+ "internal-complibs/lz4-1.9.4", | ||
+ "internal-complibs/zlib-ng-2.0.7", | ||
+ "plugins/codecs", | ||
+ "plugins/codecs/ndlz", | ||
+ "plugins/codecs/zfp/include", | ||
+ "plugins/codecs/zfp/src", | ||
+ ], | ||
+ textual_hdrs = [ | ||
+ "plugins/codecs/zfp/src/decode3l.c", | ||
+ "plugins/codecs/zfp/src/encode1f.c", | ||
+ "plugins/codecs/zfp/src/encode1d.c", | ||
+ "plugins/codecs/zfp/src/decode4f.c", | ||
+ "plugins/codecs/zfp/src/decode4l.c", | ||
+ "plugins/codecs/zfp/src/encode1i.c", | ||
+ "plugins/codecs/zfp/src/decode4d.c", | ||
+ "plugins/codecs/zfp/src/decode3f.c", | ||
+ "plugins/codecs/zfp/src/decode4i.c", | ||
+ "plugins/codecs/zfp/src/inline/bitstream.c", | ||
+ "plugins/codecs/zfp/src/share/parallel.c", | ||
+ "plugins/codecs/zfp/src/share/omp.c", | ||
+ "plugins/codecs/zfp/src/template/compress.c", | ||
+ "plugins/codecs/zfp/src/template/decompress.c", | ||
+ "plugins/codecs/zfp/src/template/ompcompress.c", | ||
+ ], | ||
+ deps = [ | ||
+ "@lz4//:lz4_hc", | ||
+ "@zlib-ng//:zlib-ng", | ||
+ "@zstd", | ||
+ ], | ||
+) |
13 changes: 13 additions & 0 deletions
13
modules/c-blosc2/2.12.0/patches/add_module_dot_bazel.patch
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,13 @@ | ||
--- MODULE.bazel | ||
+++ MODULE.bazel | ||
@@ -0,0 +1,10 @@ | ||
+module( | ||
+ name = "c-blosc2", | ||
+ version = "2.12.0", | ||
+ compatibility_level = 1, | ||
+) | ||
+ | ||
+bazel_dep(name = "lz4", version = "1.9.4") | ||
+bazel_dep(name = "platforms", version = "0.0.8") | ||
+bazel_dep(name = "zlib-ng", version = "2.0.7") | ||
+bazel_dep(name = "zstd", version = "1.5.5") |
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,11 @@ | ||
matrix: | ||
platform: | ||
- ubuntu2004 | ||
- macos | ||
- windows | ||
tasks: | ||
verify_targets: | ||
name: Verify build targets | ||
platform: ${{ platform }} | ||
build_targets: | ||
- '@c-blosc2//:c-blosc2' |
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,10 @@ | ||
{ | ||
"integrity": "sha256-uPoHqwYnwZ+2UuCKWtoZfrCTm3Xpfi+3a77hRertxuk=", | ||
"patch_strip": 0, | ||
"patches": { | ||
"add_build_file.patch": "sha256-COSRo+uzsmnpMJbF3COgi5lb7LY1FPJfTlphDslnseU=", | ||
"add_module_dot_bazel.patch": "sha256-6Ry7hP69K6AIsTWscVwzj0iRLQQ8cR2g4mnFbkKGf2Y=" | ||
}, | ||
"strip_prefix": "c-blosc2-2.12.0", | ||
"url": "https://github.com/Blosc/c-blosc2/archive/refs/tags/v2.12.0.tar.gz" | ||
} |
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,17 @@ | ||
{ | ||
"homepage": "https://www.blosc.org/", | ||
"maintainers": [ | ||
{ | ||
"email": "julian.amann@tum.de", | ||
"github": "Vertexwahn", | ||
"name": "Julian Amann" | ||
} | ||
], | ||
"repository": [ | ||
"github:Blosc/c-blosc2" | ||
], | ||
"versions": [ | ||
"2.12.0" | ||
], | ||
"yanked_versions": {} | ||
} |