Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wasm #81

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

Wasm #81

Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.pixi/
emscripten-build/
native/
node_modules/
python/
wasi-build/
pyodide/
test/data.tar.gz
test/data/
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ cmake_minimum_required(VERSION 3.16.3)
project(Cuberille)

if(NOT ITK_SOURCE_DIR)
find_package(ITK 4.10 REQUIRED)
find_package(ITK 5.2 REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
include(ITKModuleExternal)
option(BUILD_ITK_WASM_PIPELINES "Build for WebAssembly pipelines" OFF)
if(WASI OR EMSCRIPTEN OR BUILD_ITK_WASM_PIPELINES)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
add_subdirectory(wasm)
endif()
else()
itk_module_impl()
endif()
42 changes: 42 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "itkwasm-cuberille-build",
"version": "0.1.0",
"private": true,
"description": "Scripts to generate itkwasm-cuberille ITK-Wasm artifacts.",
"type": "module",
"itk-wasm": {
"test-data-hash": "bafkreidnoz54py66bn56uq6itwkfgngflaqilflfvwkxlps4ycmygstzja",
"test-data-urls": [
"https://github.com/InsightSoftwareConsortium/ITK-Wasm/releases/download/itk-wasm-v1.0.0-b.179/sample-data.tar.gz",
"https://bafybeidxatrsrrphfmntdyze6ec3jbiak527wj3kalwjptv4bimpcnzxdq.ipfs.w3s.link/ipfs/bafybeidxatrsrrphfmntdyze6ec3jbiak527wj3kalwjptv4bimpcnzxdq/sample-data.tar.gz"
],
"package-description": "Cuberille implicit surface polygonization to generate meshes from images.",
"typescript-package-name": "@itk-wasm/cuberille",
"python-package-name": "itkwasm-cuberille",
"repository": "https://github.com/InsightSoftwareConsortium/ITKCuberille"
},
"license": "Apache-2.0",
"scripts": {
"build": "pnpm build:gen:typescript && pnpm build:gen:python",
"build:emscripten": "itk-wasm pnpm-script build:emscripten",
"build:emscripten:debug": "itk-wasm pnpm-script build:emscripten:debug",
"build:wasi": "itk-wasm pnpm-script build:wasi",
"build:wasi:debug": "itk-wasm pnpm-script build:wasi:debug",
"build:python:wasi": "echo 'No build:python:wasi script required with pixi'",
"bindgen:typescript": "itk-wasm pnpm-script bindgen:typescript",
"bindgen:python": "itk-wasm pnpm-script bindgen:python",
"build:gen:typescript": "itk-wasm pnpm-script build:gen:typescript",
"build:gen:python": "itk-wasm pnpm-script build:gen:python",
"test": "pixi run download-test-data && pnpm build:gen:python",
"test:wasi": "itk-wasm pnpm-script test:wasi"
},
"devDependencies": {
"@itk-wasm/dam": "^1.1.1",
"itk-wasm": "1.0.0-b.184"
},
"author": "Matt McCormick <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/InsightSoftwareConsortium/ITKCuberille"
}
}
5,136 changes: 5,136 additions & 0 deletions pixi.lock

Large diffs are not rendered by default.

Loading
Loading