FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add emnapi support and configuration for WebAssembly and WASI targets by yumin-chen · Pull Request #21 · Chen-Software/nodegit · GitHub

Repository navigation

Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .gyp  (1) .json  (2) No extension  (3) dotfile  (1) All 4 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
9 changes: 9 additions & 0 deletions .gitmodules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@
[submodule "vendor/http_parser"]
path = vendor/http_parser
url = https://github.com/nodejs/http-parser
[submodule "packages/emnapi"]
path = packages/emnapi
url = https://github.com/toyobayashi/emnapi.git
[submodule "packages/napi-rs-ts"]
path = packages/napi-rs-ts
url = https://github.com/napi-rs/package-template.git
[submodule "packages/node-addon-examples"]
path = packages/node-addon-examples
url = https://github.com/toyobayashi/node-addon-examples
16 changes: 16 additions & 0 deletions generate/templates/templates/binding.gyp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,22 @@
],

"conditions": [
[
"OS=='emscripten'", {
"product_extension": "js",
"include_dirs": [
"<!(node -p \"require('emnapi').include_dir || ''\")"
]
}
],
[
"OS=='wasi'", {
"product_extension": "wasm",
"include_dirs": [
"<!(node -p \"require('emnapi').include_dir || ''\")"
]
}
],
[
"coverage==1", {
"cflags": [
Expand Down
91 changes: 90 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
"node": ">= 22"
},
"dependencies": {
"@emnapi/core": "file:packages/emnapi/packages/core",
"@emnapi/runtime": "file:packages/emnapi/packages/runtime",
"@mapbox/node-pre-gyp": "^2.0.0",
"emnapi": "file:packages/emnapi/packages/emnapi",
"fs-extra": "^7.0.0",
"got": "^14.4.7",
"json5": "^2.1.0",
Expand Down
1 change: 1 addition & 0 deletions packages/emnapi
Show comments Open in desktop
Submodule emnapi added at d818ff
1 change: 1 addition & 0 deletions packages/napi-rs-ts
Show comments Open in desktop
Submodule napi-rs-ts added at beedf9
1 change: 1 addition & 0 deletions packages/node-addon-examples
Show comments Open in desktop
Submodule node-addon-examples added at 866c60

Back | FazBrowse Home | New Git URL