Node-gyp: how to use cmake as build tool

Created on 1 Nov 2018  路  3Comments  路  Source: nodejs/node-gyp

It seems cmake is experimental feature: https://github.com/nodejs/node-gyp/blob/63e6bc7d5ca7d1a89d52f3033de7b4bb26c75957/gyp/pylib/gyp/generator/cmake.py#L7

do you have plan when release this feature?

Most helpful comment

Hello @kimown,

The cmake generator is a feature of GYP. node-gyp is a wrapper that facilitates building Node.js native addons based on files in gyp syntax as scaffolding.

For a while now there hasn't been active development of GYP by Google. The Node.js org might fork it and continue maintaining it, since we rely on it for our core build scaffolding, and for building 3rd party addons. You can follow that conversation on https://github.com/nodejs/admin/issues/247 and https://github.com/refack/GYP.

I'm not sure how useful you will find it since cmake itself is more suited for writing generic build scaffolding then to actually run the builds, so YMMV...
At this time there are no active plans to support for node-gyp to support cmake files as addon build scaffolding, but any PRs if submitted, would be considered on their merits.

All 3 comments

Hello @kimown,

The cmake generator is a feature of GYP. node-gyp is a wrapper that facilitates building Node.js native addons based on files in gyp syntax as scaffolding.

For a while now there hasn't been active development of GYP by Google. The Node.js org might fork it and continue maintaining it, since we rely on it for our core build scaffolding, and for building 3rd party addons. You can follow that conversation on https://github.com/nodejs/admin/issues/247 and https://github.com/refack/GYP.

I'm not sure how useful you will find it since cmake itself is more suited for writing generic build scaffolding then to actually run the builds, so YMMV...
At this time there are no active plans to support for node-gyp to support cmake files as addon build scaffolding, but any PRs if submitted, would be considered on their merits.

@refack
I see, thank you for the response.

Was this page helpful?
0 / 5 - 0 ratings