forked from nwjs/nw.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Build native modules with nw gyp
rogerwang edited this page Feb 3, 2013
·
6 revisions
nw-gyp is supported from version 0.3.2
nw-gyp is a hack on node-gyp to support node-webkit specific headers and libraries.
The usage is the same with node-gyp, except that you need to specify the version of node-webkit manually.
$ npm install nw-gyp
$ nw-gyp configure --target=0.3.3
$ nw-gyp buildPlease see https://github.com/rogerwang/nw-gyp for more details.
NOTE: native module is supposed to be rebuilt with newer version of node-webkit, because V8 doesn't have any stable ABI.
On Windows, the executable file nw.exe cannot be renamed, or the native module cannot be loaded since it will try to find nw.exe. See https://github.com/rogerwang/node-webkit/issues/199