-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gyp / node-gyp / napi / node-addon-api #67
Comments
gyp一个 gyp 使用例子 https://github.com/coordcn/LuaIO |
node-gyp
|
静态库
|
napi版本 & 兼容性使用 #define NAPI_VERSION 3
#include <node_api.h> version matrix
版本4有版本3的全部功能, 并添加了一些功能. 这意味着使用 例子sharp写死的 NAPI_VERSION=3, 目前正常版本都可以使用 ffi-napihttps://github.com/node-ffi-napi/node-ffi-napi/blob/v3.0.1/src/ffi.cc#L1-L2 #define NAPI_VERSION 6
#define NAPI_EXPERIMENTAL /* Until Node.js v12.17.0 is released */ prebuildhttps://github.com/prebuild/prebuild 需要指定支持的 napi-version, 比如 sharp 写只支持 3, 无论当前 NAPI_VERSION 是多少, prebuild-install 都会去下载 napi-3 的版本. |
node-addon-api |
gyp & node-gyp
The text was updated successfully, but these errors were encountered: