build: add ninja build tool and make it available for cmake
authorFelix Fietkau <nbd@nbd.name>
Sun, 6 Jun 2021 12:31:01 +0000 (14:31 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 12 Jun 2021 08:46:39 +0000 (10:46 +0200)
commit97258f53634d7237a2962aec3387f011047ce83b
tree24966f800bdf95b4f3ef3126772f5017c78c0c2e
parenta85aaa1bc299301ad741b6ef94d7580c9095f1be
build: add ninja build tool and make it available for cmake

ninja is faster at building cmake packages than make, and according to reports
also more reliable at handling parallel builds
This commit includes a patch that adds GNU make jobserver support, in order to
allow more precise control over the number of parallel tasks

Enable parallel build by default for packages using ninja

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
include/cmake.mk
rules.mk
tools/Makefile
tools/ninja/Makefile [new file with mode: 0644]
tools/ninja/patches/100-make_jobserver_support.patch [new file with mode: 0644]