forked from vegarringdal/emscripten_test1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
24 lines (23 loc) · 1.05 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"name": "emscripten_test1",
"version": "1.0.0",
"description": "just for fun, need use some c++ libs in wasm on project at work",
"main": "index.js",
"scripts": {
"start": "node main",
"init": "cd ../emsdk/ && emsdk activate latest",
"emc": "emcc -O3 main.cpp -o main.js -s EXPORTED_FUNCTIONS=[_read,_fill,_getTriangeSize,_getVertexSize,_simplify_lossless,_malloc,_simplify_mesh,_free] -s ALLOW_MEMORY_GROWTH -s MAXIMUM_MEMORY=4GB -s EXPORTED_RUNTIME_METHODS=ccall,cwrap",
"emc-m": "emcc -O3 main.cpp -o main.mjs -s EXPORTED_FUNCTIONS=[_read,_fill,_getTriangeSize,_getVertexSize,_simplify_lossless,_malloc,_simplify_mesh,_free] -s ALLOW_MEMORY_GROWTH -s MAXIMUM_MEMORY=4GB -s EXPORTED_RUNTIME_METHODS=ccall,cwrap"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vegarringdal/emscripten_test1.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/vegarringdal/emscripten_test1/issues"
},
"homepage": "https://github.com/vegarringdal/emscripten_test1#readme"
}