nw-gyp updated to 3.4.0

39 views
Skip to first unread message

cong...@gmail.com

unread,
Jul 12, 2016, 10:36:22 PM7/12/16
to nw.js
Hi Community,

We are announcing that nw-gyp is updated with upstream node-gyp to 3.4.0 to support building native modules for NW.js. For NW.js LTS (0.14.x), you can reuse native modules built by NPM (see Build Native Modules with NPM below). For non-LTS versions, you have to rebuild all native modules with nw-gyp.

Build Native Modules with NPM

NW.js LTS (0.14.x) supports native modules built by NPM.
Build Native Modules with nw-gyp

Non-LTS versions of NW.js should rebuild native modules with nw-gyp due to the differences of V8 ABI between NW.js and Node.js. NPM build will NOT work until Node.js can upgrade V8 to a newer version.

The usage of nw-gyp is the same with node-gyp, except that you need to specify the version and arch (x64 or ia32) of NW.js manually.

$ npm install -g nw-gyp
$ cd myaddon
$ nw-gyp rebuild --target=0.15.0 --arch=x64

Bugs and Documents


Best Regards,
Cong
Reply all
Reply to author
Forward
0 new messages