Skip to content

Commit 644c390

Browse files
committed
build: add WebAssembly configuration and fix indentation
1 parent 42a31dd commit 644c390

File tree

1 file changed

+90
-70
lines changed

1 file changed

+90
-70
lines changed
Lines changed: 90 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,95 @@
11
{
2-
"options": {
3-
"task": "build"
4-
},
5-
"fields": [
6-
{
7-
"field": "src",
8-
"resolve": true,
9-
"relative": true
10-
},
11-
{
12-
"field": "include",
13-
"resolve": true,
14-
"relative": true
15-
},
16-
{
17-
"field": "libraries",
18-
"resolve": false,
19-
"relative": false
20-
},
21-
{
22-
"field": "libpath",
23-
"resolve": true,
24-
"relative": false
25-
}
26-
],
27-
"confs": [
28-
{
29-
"task": "build",
30-
"src": [
31-
"./src/main.c"
32-
],
33-
"include": [
34-
"./include"
35-
],
36-
"libraries": [],
37-
"libpath": [],
38-
"dependencies": [
39-
"@stdlib/math/base/napi/unary",
40-
"@stdlib/constants/float64/high-word-abs-mask",
2+
"options": {
3+
"task": "build",
4+
"wasm": false
5+
},
6+
"fields": [
7+
{
8+
"field": "src",
9+
"resolve": true,
10+
"relative": true
11+
},
12+
{
13+
"field": "include",
14+
"resolve": true,
15+
"relative": true
16+
},
17+
{
18+
"field": "libraries",
19+
"resolve": false,
20+
"relative": false
21+
},
22+
{
23+
"field": "libpath",
24+
"resolve": true,
25+
"relative": false
26+
}
27+
],
28+
"confs": [
29+
{
30+
"task": "build",
31+
"wasm": false,
32+
"src": [
33+
"./src/main.c"
34+
],
35+
"include": [
36+
"./include"
37+
],
38+
"libraries": [],
39+
"libpath": [],
40+
"dependencies": [
41+
"@stdlib/math/base/napi/unary",
42+
"@stdlib/constants/float64/high-word-abs-mask",
4143
"@stdlib/number/float64/base/to-words"
42-
]
43-
},
44-
{
45-
"task": "benchmark",
46-
"src": [
47-
"./src/main.c"
48-
],
49-
"include": [
50-
"./include"
51-
],
52-
"libraries": [],
53-
"libpath": [],
54-
"dependencies": [
55-
"@stdlib/constants/float64/high-word-abs-mask",
44+
]
45+
},
46+
{
47+
"task": "benchmark",
48+
"wasm": false,
49+
"src": [
50+
"./src/main.c"
51+
],
52+
"include": [
53+
"./include"
54+
],
55+
"libraries": [],
56+
"libpath": [],
57+
"dependencies": [
58+
"@stdlib/constants/float64/high-word-abs-mask",
5659
"@stdlib/number/float64/base/to-words"
57-
]
58-
},
59-
{
60-
"task": "examples",
61-
"src": [
62-
"./src/main.c"
63-
],
64-
"include": [
65-
"./include"
66-
],
67-
"libraries": [],
68-
"libpath": [],
69-
"dependencies": [
70-
"@stdlib/constants/float64/high-word-abs-mask",
60+
]
61+
},
62+
{
63+
"task": "examples",
64+
"wasm": false,
65+
"src": [
66+
"./src/main.c"
67+
],
68+
"include": [
69+
"./include"
70+
],
71+
"libraries": [],
72+
"libpath": [],
73+
"dependencies": [
74+
"@stdlib/constants/float64/high-word-abs-mask",
7175
"@stdlib/number/float64/base/to-words"
72-
]
73-
}
74-
]
76+
]
77+
},
78+
{
79+
"task": "build",
80+
"wasm": true,
81+
"src": [
82+
"./src/main.c"
83+
],
84+
"include": [
85+
"./include"
86+
],
87+
"libraries": [],
88+
"libpath": [],
89+
"dependencies": [
90+
"@stdlib/constants/float64/high-word-abs-mask",
91+
"@stdlib/number/float64/base/to-words"
92+
]
93+
}
94+
]
7595
}

0 commit comments

Comments
 (0)