emsdk-env 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-BAcPqsVO.js +1379 -0
- package/dist/build-BAcPqsVO.js.map +1 -0
- package/dist/build-TpHGBYTu.cjs +1388 -0
- package/dist/build-TpHGBYTu.cjs.map +1 -0
- package/dist/build.d.ts +22 -0
- package/dist/build.d.ts.map +1 -0
- package/dist/commands.d.ts +14 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/emsdk.d.ts +22 -0
- package/dist/emsdk.d.ts.map +1 -0
- package/dist/env.d.ts +16 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/fs-utils.d.ts +13 -0
- package/dist/fs-utils.d.ts.map +1 -0
- package/dist/generated/packageMetadata.d.ts +18 -0
- package/dist/generated/packageMetadata.d.ts.map +1 -0
- package/dist/index.cjs +11 -14
- package/dist/index.d.ts +17 -338
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +10 -15
- package/dist/logger.d.ts +13 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/{vite.d.ts → types.d.ts} +299 -268
- package/dist/types.d.ts.map +1 -0
- package/dist/vite/index.d.ts +24 -0
- package/dist/vite/index.d.ts.map +1 -0
- package/dist/vite/logger.d.ts +14 -0
- package/dist/vite/logger.d.ts.map +1 -0
- package/dist/vite/types.d.ts +17 -0
- package/dist/vite/types.d.ts.map +1 -0
- package/dist/vite.cjs +735 -712
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.mjs +729 -712
- package/dist/vite.mjs.map +1 -1
- package/package.json +22 -21
- package/dist/build-BE9Z95iJ.js +0 -1668
- package/dist/build-BE9Z95iJ.js.map +0 -1
- package/dist/build-BGtsNe6D.cjs +0 -1689
- package/dist/build-BGtsNe6D.cjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
|
@@ -1,276 +1,307 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: emsdk-env
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.12.0
|
|
4
4
|
* description: Emscripten environment builder
|
|
5
5
|
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
6
|
* license: MIT
|
|
7
7
|
* repository.url: https://github.com/kekyo/emsdk-env
|
|
8
|
-
* git.commit.hash:
|
|
8
|
+
* git.commit.hash: 13e3966455dae312e6e85f6470003bf7619ec02d
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
readonly
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
*
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
*
|
|
151
|
-
*/
|
|
152
|
-
readonly
|
|
153
|
-
/**
|
|
154
|
-
*
|
|
155
|
-
*/
|
|
156
|
-
readonly
|
|
157
|
-
/**
|
|
158
|
-
*
|
|
159
|
-
*/
|
|
160
|
-
readonly
|
|
161
|
-
/**
|
|
162
|
-
*
|
|
163
|
-
*/
|
|
164
|
-
readonly
|
|
165
|
-
/**
|
|
166
|
-
*
|
|
167
|
-
*/
|
|
168
|
-
readonly
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
*/
|
|
192
|
-
readonly
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
*
|
|
221
|
-
*/
|
|
222
|
-
readonly
|
|
223
|
-
/**
|
|
224
|
-
*
|
|
225
|
-
*/
|
|
226
|
-
readonly
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
export {
|
|
11
|
+
/**
|
|
12
|
+
* Logger interface
|
|
13
|
+
*/
|
|
14
|
+
export interface Logger {
|
|
15
|
+
/**
|
|
16
|
+
* Log an debug message
|
|
17
|
+
* @param msg - The message to log
|
|
18
|
+
*/
|
|
19
|
+
readonly debug: (msg: string) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Log an info message
|
|
22
|
+
* @param msg - The message to log
|
|
23
|
+
*/
|
|
24
|
+
readonly info: (msg: string) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Log a warning message
|
|
27
|
+
* @param msg - The message to log
|
|
28
|
+
*/
|
|
29
|
+
readonly warn: (msg: string) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Log an error message
|
|
32
|
+
* @param msg - The message to log
|
|
33
|
+
*/
|
|
34
|
+
readonly error: (msg: string) => void;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Options for the emsdk-env preparer.
|
|
38
|
+
*/
|
|
39
|
+
export interface PrepareEmsdkOptions {
|
|
40
|
+
/**
|
|
41
|
+
* Emscripten SDK version to install (e.g. "latest" or a specific tag. defaults to 'latest').
|
|
42
|
+
*/
|
|
43
|
+
readonly targetVersion?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Cache directory for the Emscripten SDK (defaults to `~/.cache/emsdk-env`).
|
|
46
|
+
*/
|
|
47
|
+
readonly cacheDir?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Custom Emscripten SDK repository URL (defaults to the official Emscripten SDK GitHub repository).
|
|
50
|
+
*/
|
|
51
|
+
readonly repoUrl?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Git executable path (defaults to `git`).
|
|
54
|
+
*/
|
|
55
|
+
readonly gitPath?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Abort signal for cancelling the operation.
|
|
58
|
+
*/
|
|
59
|
+
readonly signal?: AbortSignal;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Value type for preprocessor defines.
|
|
63
|
+
*/
|
|
64
|
+
export type DefineValue = string | number | boolean | null | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Input type for preprocessor defines.
|
|
67
|
+
*/
|
|
68
|
+
export type DefineInput = Record<string, DefineValue> | Readonly<Map<string, DefineValue>> | readonly string[];
|
|
69
|
+
/**
|
|
70
|
+
* Value type for linker directives.
|
|
71
|
+
*/
|
|
72
|
+
export type LinkDirectiveValue = DefineValue | readonly string[];
|
|
73
|
+
/**
|
|
74
|
+
* Input type for linker directives.
|
|
75
|
+
*/
|
|
76
|
+
export type LinkDirectiveInput = Record<string, LinkDirectiveValue> | Readonly<Map<string, LinkDirectiveValue>> | readonly string[];
|
|
77
|
+
/**
|
|
78
|
+
* Options for running wasm-opt on the linked output.
|
|
79
|
+
*/
|
|
80
|
+
export interface WasmOptOptions {
|
|
81
|
+
/**
|
|
82
|
+
* Enable wasm-opt for this target (defaults to false).
|
|
83
|
+
*/
|
|
84
|
+
readonly enable?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Additional wasm-opt options.
|
|
87
|
+
*/
|
|
88
|
+
readonly options?: readonly string[];
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Options for generating a zero-dependency TypeScript WASM loader file.
|
|
92
|
+
*/
|
|
93
|
+
export interface GeneratedLoaderOptions {
|
|
94
|
+
/**
|
|
95
|
+
* Enable generated loader output (defaults to false).
|
|
96
|
+
*/
|
|
97
|
+
readonly enable?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Output file path for the generated loader source (project-root relative by default).
|
|
100
|
+
*/
|
|
101
|
+
readonly outFile?: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Build target type for WASM or archive outputs.
|
|
105
|
+
*/
|
|
106
|
+
export type WasmBuildTargetType = 'wasm' | 'archive';
|
|
107
|
+
/**
|
|
108
|
+
* Key-value declaration type.
|
|
109
|
+
* @deprecated Use `DefineInput` or `LinkDirectiveInput`.
|
|
110
|
+
*/
|
|
111
|
+
export type KeyValueInput = DefineInput;
|
|
112
|
+
/**
|
|
113
|
+
* Common build options shared across targets.
|
|
114
|
+
*/
|
|
115
|
+
export interface WasmBuildCommonOptions {
|
|
116
|
+
/**
|
|
117
|
+
* Common compile options applied to this target.
|
|
118
|
+
*/
|
|
119
|
+
readonly options?: readonly string[];
|
|
120
|
+
/**
|
|
121
|
+
* Additional common link options passed to `emcc` during the final link step.
|
|
122
|
+
*/
|
|
123
|
+
readonly linkOptions?: readonly string[];
|
|
124
|
+
/**
|
|
125
|
+
* Common linker directives mapped to `-s KEY=VALUE`.
|
|
126
|
+
*/
|
|
127
|
+
readonly linkDirectives?: LinkDirectiveInput;
|
|
128
|
+
/**
|
|
129
|
+
* Common symbols to export (mapped to `-s EXPORTED_FUNCTIONS=...`).
|
|
130
|
+
*/
|
|
131
|
+
readonly exports?: readonly string[];
|
|
132
|
+
/**
|
|
133
|
+
* Common wasm-opt options applied after linking.
|
|
134
|
+
*/
|
|
135
|
+
readonly wasmOpt?: WasmOptOptions;
|
|
136
|
+
/**
|
|
137
|
+
* Common include directories added as `-I` flags (defaults to `$includeDir`).
|
|
138
|
+
*/
|
|
139
|
+
readonly includeDirs?: readonly string[];
|
|
140
|
+
/**
|
|
141
|
+
* Common preprocessor defines applied as `-D` flags.
|
|
142
|
+
*/
|
|
143
|
+
readonly defines?: DefineInput;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Per-target build configuration.
|
|
147
|
+
*/
|
|
148
|
+
export interface WasmBuildTarget {
|
|
149
|
+
/**
|
|
150
|
+
* Target output type (defaults to 'wasm').
|
|
151
|
+
*/
|
|
152
|
+
readonly type?: WasmBuildTargetType;
|
|
153
|
+
/**
|
|
154
|
+
* Output file path (relative to `outDir` or `libDir` unless absolute).
|
|
155
|
+
*/
|
|
156
|
+
readonly outFile?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Source file globs (relative to `srcDir` unless absolute).
|
|
159
|
+
*/
|
|
160
|
+
readonly sources?: readonly string[];
|
|
161
|
+
/**
|
|
162
|
+
* Source groups compiled with additional options.
|
|
163
|
+
*/
|
|
164
|
+
readonly sourceGroups?: readonly WasmBuildSourceGroup[];
|
|
165
|
+
/**
|
|
166
|
+
* Compile options applied to this target.
|
|
167
|
+
*/
|
|
168
|
+
readonly options?: readonly string[];
|
|
169
|
+
/**
|
|
170
|
+
* Additional link options passed to `emcc` during the final link step.
|
|
171
|
+
*/
|
|
172
|
+
readonly linkOptions?: readonly string[];
|
|
173
|
+
/**
|
|
174
|
+
* Linker directives mapped to `-s KEY=VALUE`.
|
|
175
|
+
*/
|
|
176
|
+
readonly linkDirectives?: LinkDirectiveInput;
|
|
177
|
+
/**
|
|
178
|
+
* Common symbols to export (mapped to `-s EXPORTED_FUNCTIONS=...`).
|
|
179
|
+
*/
|
|
180
|
+
readonly exports?: readonly string[];
|
|
181
|
+
/**
|
|
182
|
+
* wasm-opt options applied after linking this target.
|
|
183
|
+
*/
|
|
184
|
+
readonly wasmOpt?: WasmOptOptions;
|
|
185
|
+
/**
|
|
186
|
+
* Include directories added as `-I` flags.
|
|
187
|
+
*/
|
|
188
|
+
readonly includeDirs?: readonly string[];
|
|
189
|
+
/**
|
|
190
|
+
* Preprocessor defines applied as `-D` flags.
|
|
191
|
+
*/
|
|
192
|
+
readonly defines?: DefineInput;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Group of sources compiled with additional options.
|
|
196
|
+
*/
|
|
197
|
+
export interface WasmBuildSourceGroup {
|
|
198
|
+
/**
|
|
199
|
+
* Source file globs for this group (relative to `srcDir` unless absolute).
|
|
200
|
+
*/
|
|
201
|
+
readonly sources: readonly string[];
|
|
202
|
+
/**
|
|
203
|
+
* Compile options applied to this target for this group.
|
|
204
|
+
*/
|
|
205
|
+
readonly options?: readonly string[];
|
|
206
|
+
/**
|
|
207
|
+
* Include directories added as `-I` flags for this group.
|
|
208
|
+
*/
|
|
209
|
+
readonly includeDirs?: readonly string[];
|
|
210
|
+
/**
|
|
211
|
+
* Preprocessor defines applied as `-D` flags for this group.
|
|
212
|
+
*/
|
|
213
|
+
readonly defines?: DefineInput;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Build rule describing targets and shared options.
|
|
217
|
+
*/
|
|
218
|
+
export interface WasmBuildRule {
|
|
219
|
+
/**
|
|
220
|
+
* Shared build options applied to all targets.
|
|
221
|
+
*/
|
|
222
|
+
readonly common?: WasmBuildCommonOptions;
|
|
223
|
+
/**
|
|
224
|
+
* Target build configurations keyed by target name.
|
|
225
|
+
*/
|
|
226
|
+
readonly targets: Record<string, WasmBuildTarget>;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Common options for building WASM binaries.
|
|
230
|
+
*/
|
|
231
|
+
export interface BuildWasmCommonOptions {
|
|
232
|
+
/**
|
|
233
|
+
* Emscripten SDK setup options (defaults to `targetVersion: 'latest'`).
|
|
234
|
+
*/
|
|
235
|
+
readonly emsdk?: PrepareEmsdkOptions;
|
|
236
|
+
/**
|
|
237
|
+
* Package imports that provide include/lib directories.
|
|
238
|
+
*/
|
|
239
|
+
readonly imports?: readonly string[];
|
|
240
|
+
/**
|
|
241
|
+
* Source root directory (defaults to `wasm`).
|
|
242
|
+
*/
|
|
243
|
+
readonly srcDir?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Default include directory (defaults to `include`).
|
|
246
|
+
*/
|
|
247
|
+
readonly includeDir?: string;
|
|
248
|
+
/**
|
|
249
|
+
* Output directory for generated WASM files (defaults to `src/wasm`).
|
|
250
|
+
*/
|
|
251
|
+
readonly outDir?: string;
|
|
252
|
+
/**
|
|
253
|
+
* Output directory for generated archives (defaults to `lib`).
|
|
254
|
+
*/
|
|
255
|
+
readonly libDir?: string;
|
|
256
|
+
/**
|
|
257
|
+
* Generate a zero-dependency TypeScript loader into the target project.
|
|
258
|
+
*/
|
|
259
|
+
readonly generatedLoader?: GeneratedLoaderOptions;
|
|
260
|
+
/**
|
|
261
|
+
* Temporary build directory (defaults to OS temp dir).
|
|
262
|
+
*/
|
|
263
|
+
readonly buildDir?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Remove the build directory after completion. (defaults to true).
|
|
266
|
+
*/
|
|
267
|
+
readonly cleanupBuildDir?: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* Compile sources in parallel (defaults to true).
|
|
270
|
+
*/
|
|
271
|
+
readonly parallel?: boolean;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Options for building WASM binaries.
|
|
275
|
+
*/
|
|
276
|
+
export interface BuildWasmOptions extends BuildWasmCommonOptions {
|
|
277
|
+
/**
|
|
278
|
+
* Build rules describing targets and shared options.
|
|
279
|
+
*/
|
|
280
|
+
readonly rule: WasmBuildRule;
|
|
281
|
+
/**
|
|
282
|
+
* Project root directory (defaults to `process.cwd()`).
|
|
283
|
+
*/
|
|
284
|
+
readonly root?: string;
|
|
285
|
+
/**
|
|
286
|
+
* Custom logger implementation.
|
|
287
|
+
*/
|
|
288
|
+
readonly logger?: Logger;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Result of a buildWasm invocation.
|
|
292
|
+
*/
|
|
293
|
+
export interface BuildWasmResult {
|
|
294
|
+
/**
|
|
295
|
+
* Resolved Emscripten SDK root path.
|
|
296
|
+
*/
|
|
297
|
+
readonly emsdkRoot: string;
|
|
298
|
+
/**
|
|
299
|
+
* Output paths keyed by target name.
|
|
300
|
+
*/
|
|
301
|
+
readonly outFiles: Record<string, string>;
|
|
302
|
+
/**
|
|
303
|
+
* Generated loader source path, when enabled.
|
|
304
|
+
*/
|
|
305
|
+
readonly generatedLoaderFile?: string;
|
|
306
|
+
}
|
|
307
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;;;;;;;AAOA;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,C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,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,sBAAsB,CAAC;IAClD;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,sBAAsB;IAC9D;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CACvC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* name: emsdk-env
|
|
3
|
+
* version: 0.12.0
|
|
4
|
+
* description: Emscripten environment builder
|
|
5
|
+
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
|
+
* license: MIT
|
|
7
|
+
* repository.url: https://github.com/kekyo/emsdk-env
|
|
8
|
+
* git.commit.hash: 13e3966455dae312e6e85f6470003bf7619ec02d
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { Plugin } from 'vite';
|
|
12
|
+
import { EmsdkVitePluginOptions } from './types.js';
|
|
13
|
+
/**
|
|
14
|
+
* Vite plugin that builds C/C++ sources into WASM using the Emscripten SDK.
|
|
15
|
+
*
|
|
16
|
+
* In dev (`vite serve`), it watches source/include directories and rebuilds on
|
|
17
|
+
* changes. In build (`vite build`), it performs a one-shot build before bundling.
|
|
18
|
+
*
|
|
19
|
+
* @param options - Plugin options including build rules.
|
|
20
|
+
* @returns Vite plugin instance.
|
|
21
|
+
*/
|
|
22
|
+
declare const emsdkEnv: (options: EmsdkVitePluginOptions) => Plugin;
|
|
23
|
+
export default emsdkEnv;
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vite/index.ts"],"names":[],"mappings":";;;;;;;;;AAMA,OAAO,KAAK,EAAE,MAAM,EAAiC,MAAM,MAAM,CAAC;AAIlE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAuNtD;;;;;;;;GAQG;AACH,QAAA,MAAM,QAAQ,GAAI,SAAS,sBAAsB,KAAG,MAiDnD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* name: emsdk-env
|
|
3
|
+
* version: 0.12.0
|
|
4
|
+
* description: Emscripten environment builder
|
|
5
|
+
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
|
+
* license: MIT
|
|
7
|
+
* repository.url: https://github.com/kekyo/emsdk-env
|
|
8
|
+
* git.commit.hash: 13e3966455dae312e6e85f6470003bf7619ec02d
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { LogLevel, Logger as ViteLogger } from 'vite';
|
|
12
|
+
import { Logger } from '../types.js';
|
|
13
|
+
export declare const createViteLoggerAdapter: (viteLogger: ViteLogger, logLevel: LogLevel, prefix: string) => Logger;
|
|
14
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/vite/logger.ts"],"names":[],"mappings":";;;;;;;;;AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AAG3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKlC,eAAO,MAAM,0BAAuB,GAClC,YAAY,UAAU,EACtB,UAAU,QAAQ,EAClB,QAAQ,MAAM,KACb,MAsBF,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* name: emsdk-env
|
|
3
|
+
* version: 0.12.0
|
|
4
|
+
* description: Emscripten environment builder
|
|
5
|
+
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
|
+
* license: MIT
|
|
7
|
+
* repository.url: https://github.com/kekyo/emsdk-env
|
|
8
|
+
* git.commit.hash: 13e3966455dae312e6e85f6470003bf7619ec02d
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { BuildWasmCommonOptions, WasmBuildRule } from '../types.js';
|
|
12
|
+
/**
|
|
13
|
+
* Options for the emsdk-env Vite plugin.
|
|
14
|
+
*/
|
|
15
|
+
export interface EmsdkVitePluginOptions extends BuildWasmCommonOptions, WasmBuildRule {
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=types.d.ts.map
|