nodejs / nodejs/node-gyp

Customize default generator

Open
#3,019 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10.7k
Forks
1.9k
Avg merge
1d 4h
Merged PRs (30d)
5

Description

Currently, default generator is make, that is node-gyp configure will generate Makefile for users.

I know some build system allow user to customize the default generator. For example:

export CMAKE_GENERATOR=Ninja
cmake -Bbuild

will generate build.ninja not Makefile.

Can node-gyp provide similar functions?

TIA!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the node-gyp configure entry point and review how its default Makefile generator is selected. Compare the requested behavior with the CMAKE_GENERATOR example; done means users have an agreed mechanism to choose a non-Make generator such as Ninja.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, python
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.