Skip to content

change node-addon-api build to cmake #422

@DaAitch

Description

@DaAitch

This is not a request to change everything in one day, but a possible improvement/POC of the build.
What are your feelings about a cmake setup?

improvements:

  • get rid of node-gyp one day (like me, what I've read community is not very happy with it)
  • no config-only rigid builds
  • cmake features
    • build is code
    • cross-os compilation
    • actively maintained
    • standard build tool for C/C++ (support ninja/Makefile)

disadvantages:

  • maybe cannot drop node-gyp support for the first time

Other improvements are:

  • I could simplify how tests are compiled/executed: *.test.cc files are compiled, *.test.js files are executed, so simply add files
  • logging/documentation: I love to read code as documentation, so that I can understand how sth. works. With node-gyp it's like "understand node-gyp configuration or die", and with cmake it's easy to understand what happens, maybe not for a beginner to write, but to also to read and understand

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions