Use Native Node Modules nw.js扩展编译命令nw-gyp

本文介绍了如何使用nw-gyp命令来为nw.js(原名node-webkit)编译原生Node模块。通过示例展示了针对不同版本nw.js的重建过程,包括设置目标版本、架构以及依赖库的详细信息。
摘要由CSDN通过智能技术生成

http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/

 

nw-gyp rebuild --target=0.31.1 --arch=x64

nw-gyp rebuild --target=0.29.4 --arch=x64

nw-gyp rebuild --target=0.31.5 --arch=x64

npm install -g nw@0.31.5-sdk

nw-gyp rebuild --target=v8.11.3 --arch=x64

nw-gyp rebuild --target=v0.32.4 --arch=x64

 

export npm_config_target=0.32.4 export npm_config_arch=x64 export npm_config_target_arch=x64 export npm_config_runtime=node-webkit export npm_config_build_from_source=true

npm install -g node-pre-gyp

node-pre-gyp build --runtime=node-webkit --target=0.32.4 --target_arch=x64

 

alexZhang:Release Alex$ otool -L screenshot.node

screenshot.node:

lib/QtCore.framework

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值