Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 976 Bytes

File metadata and controls

34 lines (23 loc) · 976 Bytes

Native (ioai_hdf5)

ioai_h5 is a small static library exposing a C ABI consumed from TypeScript via Emscripten ccall / cwrap (see src/runtime/emscriptenBridge.ts).

Build modes

Stub (no HDF5)

mkdir -p build && cd build
cmake .. -DIOAI_HDF5_HAVE_LIB=OFF
cmake --build .

With system HDF5 (desktop smoke tests)

mkdir -p build && cd build
cmake .. -DIOAI_HDF5_HAVE_LIB=ON
cmake --build .

Emscripten (WASM)

CI / npm default: from the package root run npm run build:wasm:full:docker (Docker + HDFGroup HDF5 + madler/zlib official sources — see ../scripts/README-build.md).

For a custom toolchain, use Emscripten’s CMake wrapper and point HDF5_DIR at your HDF5-for-WebAssembly install:

emcmake cmake .. -DIOAI_HDF5_HAVE_LIB=ON -DHDF5_DIR=/path/to/HDF5/cmake
emmake cmake --build .

Exported symbols must be preserved at link time (-sEXPORTED_FUNCTIONS, -sEXPORTED_RUNTIME_METHODS).