@@ -22,12 +22,29 @@ description = "Install Node.js dependencies"
22
22
[tasks .build ]
23
23
cmd = " pnpm run build"
24
24
description = " Build ITK-Wasm"
25
- depends-on = [" pnpm-install" , " build-itk-wasm" , " build-native-compare-images" , " build-native-compare-meshes" , " build-native-compress-stringify" , " build-native-dicom" , " build-native-downsample" , " build-native-mesh-io" , " build-native-transform-io" ]
25
+ depends-on = [" pnpm-install" ,
26
+ " build-itk-wasm" ,
27
+ " build-native-compare-images" ,
28
+ " build-native-compare-meshes" ,
29
+ " build-native-compress-stringify" ,
30
+ " build-native-dicom" ,
31
+ " build-native-downsample" ,
32
+ " build-native-image-io" ,
33
+ " build-native-mesh-io" ,
34
+ " build-native-transform-io" ]
26
35
27
36
[tasks .test ]
28
37
cmd = " pnpm run test --filter !create-itk-wasm"
29
38
description = " Test ITK-Wasm"
30
- depends-on = [" test-itk-wasm" , " test-native-compare-images" , " test-native-compare-meshes" , " test-native-compress-stringify" , " test-native-dicom" , " test-native-downsample" , " test-native-mesh-io" , " test-native-transform-io" ]
39
+ depends-on = [" test-itk-wasm" ,
40
+ " test-native-compare-images" ,
41
+ " test-native-compare-meshes" ,
42
+ " test-native-compress-stringify" ,
43
+ " test-native-dicom" ,
44
+ " test-native-downsample" ,
45
+ " test-native-image-io" ,
46
+ " test-native-mesh-io" ,
47
+ " test-native-transform-io" ]
31
48
32
49
[tasks .compare-images-test-data-download ]
33
50
cmd = " npx dam download test/data test/data.tar.gz $ITK_WASM_COMPARE_IMAGES_TEST_DATA_HASH $ITK_WASM_COMPARE_IMAGES_TEST_DATA_URLS"
@@ -64,6 +81,13 @@ depends-on = ["pnpm-install"]
64
81
outputs = [" packages/downsample/test/data.tar.gz" ]
65
82
description = " Download downsample test data"
66
83
84
+ [tasks .image-io-test-data-download ]
85
+ cmd = " npx dam download test/data test/data.tar.gz $ITK_WASM_IMAGE_IO_TEST_DATA_HASH $ITK_WASM_IMAGE_IO_TEST_DATA_URLS"
86
+ cwd = " packages/image-io"
87
+ depends-on = [" pnpm-install" ]
88
+ outputs = [" packages/image-io/test/data.tar.gz" ]
89
+ description = " Download image-io test data"
90
+
67
91
[tasks .mesh-io-test-data-download ]
68
92
cmd = " npx dam download test/data test/data.tar.gz $ITK_WASM_MESH_IO_TEST_DATA_HASH $ITK_WASM_MESH_IO_TEST_DATA_URLS"
69
93
cwd = " packages/mesh-io"
@@ -297,6 +321,26 @@ cmd = "ctest --test-dir $ITK_WASM_NATIVE_WORKSPACE/downsample-build"
297
321
depends-on = [" build-native-downsample" ]
298
322
description = " Test downsample native binaries"
299
323
324
+ [feature .native .tasks .configure-native-image-io ]
325
+ cmd = ''' cmake -B$ITK_WASM_NATIVE_WORKSPACE/image-io-build -Spackages/image-io -GNinja
326
+ -DITK_DIR:PATH=$ITK_WASM_ITK_BUILD_DIR
327
+ -DBUILD_TESTING:BOOL=ON
328
+ -DCMAKE_CXX_STANDARD:STRING=20
329
+ -DCMAKE_BUILD_TYPE:STRING=Debug'''
330
+ depends-on = [" build-itk-wasm" , " image-io-test-data-download" ]
331
+ outputs = [" native/image-io-build/CMakeFiles/" ]
332
+ description = " Configure image-io native binaries"
333
+
334
+ [feature .native .tasks .build-native-image-io ]
335
+ cmd = " cmake --build $ITK_WASM_NATIVE_WORKSPACE/image-io-build"
336
+ depends-on = [" configure-native-image-io" ]
337
+ description = " Build image-io native binaries"
338
+
339
+ [feature .native .tasks .test-native-image-io ]
340
+ cmd = " ctest --test-dir $ITK_WASM_NATIVE_WORKSPACE/image-io-build"
341
+ depends-on = [" build-native-image-io" ]
342
+ description = " Test image-io native binaries"
343
+
300
344
[feature .native .tasks .configure-native-mesh-io ]
301
345
cmd = ''' cmake -B$ITK_WASM_NATIVE_WORKSPACE/mesh-io-build -Spackages/mesh-io -GNinja
302
346
-DITK_DIR:PATH=$ITK_WASM_ITK_BUILD_DIR
0 commit comments