从源代码构建电子时如何为本机 c++ 插件生成 node.lib(就像 node-gyp 中使用的库一样)

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

我已经从源代码构建了 electron 4.1.4,但我不知道如何为原生 c++ 插件生成 node.lib。我用 https://atom.io/download/electron 中的 node.lib 构建我的 c++ 插件,但是我从源代码构建的电子无法加载它。

我已经从源代码构建了 electron 4.1.4

没有代码

生成node.lib的步骤(就像从https://atom.io/download/electron下载一样)

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

只是electron.lib重命名为node.lib