Search code examples
electronnative

how to generate node.lib for native c++ addon (just like the library used in node-gyp) when build electron from source code


I have built electron 4.1.4 from source code, but I don't know how to generate node.lib for native c++ addon. I build my c++ addon with the node.lib from https://atom.io/download/electron, but the electron which is built by me from source code can not load it.

I have build electron 4.1.4 from source code

there is no code

the step to generate node.lib (just like the download from https://atom.io/download/electron)


Solution

  • https://github.com/electron/electron/issues/18278

    It is just electron.lib renamed to node.lib