Skip to content

Commit

Permalink
added napi version to binding.gyp, include sensor sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterverweirder committed Jul 14, 2021
1 parent ba38551 commit c972547
Show file tree
Hide file tree
Showing 13 changed files with 7,577 additions and 4 deletions.
5 changes: 4 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
]
}
],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
'defines': [
'NAPI_DISABLE_CPP_EXCEPTIONS',
'NAPI_VERSION=<(napi_build_version)'
]
},
{
"target_name": "action_after_build",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"node": ">= 10.16.0"
},
"scripts": {
"install": "prebuild-install || prebuild -t 4 -r napi || node-gyp rebuild",
"prebuild": "prebuild -t 4 -r napi",
"package": "prebuild -t 4 -r napi -u",
"install": "prebuild-install || prebuild -t 4 --runtime napi || node-gyp rebuild",
"prebuild": "prebuild -t 4 --runtime napi",
"package": "prebuild -t 4 --runtime napi -u",
"start": "cd ./examples/electron && npm start",
"prepublishOnly": "rimraf ./examples/**/node_modules",
"copy-dlls": "xcopy \"C:\\Program Files\\Azure Kinect Body Tracking SDK\\tools\\\" . /H /C /Y"
Expand Down
Loading

0 comments on commit c972547

Please sign in to comment.