h5wasm-plugins
Advanced tools
Comparing version
# Changelog | ||
## v0.0.3 2023-11-09 | ||
### Added | ||
- now building and including `blosc2` filter | ||
## v0.0.2 2023-11-07 | ||
@@ -3,0 +6,0 @@ ### Fixed |
@@ -0,3 +1,6 @@ | ||
cmake_policy(SET CMP0079 NEW) | ||
cmake_minimum_required(VERSION 3.24) | ||
project (H5WASM_PLUGINS C) | ||
include(FetchContent) | ||
@@ -51,2 +54,3 @@ | ||
find_package(HDF5 REQUIRED CONFIG) | ||
@@ -120,1 +124,30 @@ find_package(ZLIB REQUIRED MODULE) | ||
build_shared_plugin(blosc "libh5blosc.a;libblosc.a" "h5blosc;blosc_static" "") | ||
FetchContent_Declare( | ||
blosc2 | ||
GIT_REPOSITORY https://github.com/Blosc/c-blosc2 | ||
GIT_TAG v2.11.2 | ||
) | ||
option(DDEACTIVATE_AVX512 "" ON) | ||
option(DDEACTIVATE_AVX2 "" ON) | ||
set(ARCH "Emscripten") | ||
option(PREFER_EXTERNAL_ZLIB "" ON) | ||
option(PREFER_EXTERNAL_ZSTD "" ON) | ||
option(PREFER_EXTERNAL_LZ4 "" ON) | ||
FetchContent_MakeAvailable(blosc2) | ||
FetchContent_Declare ( | ||
blosc2-filter | ||
GIT_REPOSITORY https://github.com/PyTables/PyTables | ||
GIT_TAG v3.9.1 | ||
) | ||
FetchContent_Populate(blosc2-filter) | ||
add_library(h5blosc2 STATIC | ||
"${blosc2-filter_SOURCE_DIR}/hdf5-blosc2/src/blosc2_plugin.c" | ||
"${blosc2-filter_SOURCE_DIR}/hdf5-blosc2/src/blosc2_filter.c" | ||
) | ||
target_link_libraries(h5blosc2 PRIVATE blosc2_static) | ||
target_include_directories(h5blosc2 PRIVATE "${libhdf5-wasm_SOURCE_DIR}/include" "${blosc2_SOURCE_DIR}/include") | ||
build_shared_plugin(blosc2 "libh5blosc2.a;libblosc2.a" "h5blosc2;blosc2_static" "") |
{ | ||
"name": "h5wasm-plugins", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "compression plugins for h5wasm", | ||
@@ -27,4 +27,4 @@ "main": "index.mjs", | ||
"dependencies": { | ||
"h5wasm": "^0.6.7" | ||
"h5wasm": "^0.6.10" | ||
} | ||
} |
@@ -5,2 +5,5 @@ # h5wasm-plugins | ||
The plugins are built using sources fetched at build-time from https://github.com/HDFGroup/hdf5_plugins | ||
(if new plugins are desired, it is recommended to get them upstreamed to that repository so they can be built here) | ||
_(h5wasm is a javascript/webassembly library for reading and writing HDF5 files from the browser or node.js or deno or...)_ | ||
@@ -15,2 +18,3 @@ | ||
- blosc | ||
- bshuf | ||
- bz2 | ||
@@ -85,1 +89,9 @@ - lz4 | ||
``` | ||
## Building from source | ||
Dependencies: | ||
1. cmake >= 3.24 | ||
2. make | ||
3. emscripten, preferably version 3.1.43 | ||
run `make` to build the plugins to the `plugins` folder locally. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
4867764
27.74%195
4.28%95
14.46%3
50%10
11.11%Updated