@@ -57,6 +57,13 @@ depends-on = ["pnpm-install"]
57
57
outputs = [" packages/mesh-io/test/data.tar.gz" ]
58
58
description = " Download mesh-io test data"
59
59
60
+ [tasks .image-io-test-data-download ]
61
+ cmd = " npx dam download test/data test/data.tar.gz $ITK_WASM_IMAGE_IO_TEST_DATA_HASH $ITK_WASM_IMAGE_IO_TEST_DATA_URLS"
62
+ cwd = " packages/image-io"
63
+ depends-on = [" pnpm-install" ]
64
+ outputs = [" packages/image-io/test/data.tar.gz" ]
65
+ description = " Download image-io test data"
66
+
60
67
[tasks .export-itk-wasm-env-vars ]
61
68
cmd = " bash -c ./itk_wasm_env.bash && env | grep ITK_WASM | grep -v TEST > ./src/docker/itk-wasm-base/itk_wasm_env_vars.sh"
62
69
outputs = [" src/docker/itk-wasm-base/itk_wasm_env_vars.*" ]
@@ -289,6 +296,26 @@ cmd = "ctest --test-dir $ITK_WASM_NATIVE_WORKSPACE/mesh-io-build"
289
296
depends-on = [" build-native-mesh-io" ]
290
297
description = " Test mesh-io native binaries"
291
298
299
+ [feature .native .tasks .configure-native-image-io ]
300
+ cmd = ''' cmake -B$ITK_WASM_NATIVE_WORKSPACE/image-io-build -Spackages/image-io -GNinja
301
+ -DITK_DIR:PATH=$ITK_WASM_ITK_BUILD_DIR
302
+ -DBUILD_TESTING:BOOL=ON
303
+ -DCMAKE_CXX_STANDARD:STRING=20
304
+ -DCMAKE_BUILD_TYPE:STRING=Debug'''
305
+ depends-on = [" build-itk-wasm" , " image-io-test-data-download" ]
306
+ outputs = [" native/image-io-build/CMakeFiles/" ]
307
+ description = " Configure image-io native binaries"
308
+
309
+ [feature .native .tasks .build-native-image-io ]
310
+ cmd = " cmake --build $ITK_WASM_NATIVE_WORKSPACE/image-io-build"
311
+ depends-on = [" configure-native-image-io" ]
312
+ description = " Build image-io native binaries"
313
+
314
+ [feature .native .tasks .test-native-image-io ]
315
+ cmd = " ctest --test-dir $ITK_WASM_NATIVE_WORKSPACE/image-io-build"
316
+ depends-on = [" build-native-image-io" ]
317
+ description = " Test image-io native binaries"
318
+
292
319
[feature .native .dependencies ]
293
320
cmake = " >=3.30.2,<4"
294
321
cxx-compiler = " >=1.7.0,<2"
0 commit comments