LogoPear Docs
ReferencesBareModules

bare-make

Reference for bare-make: an opinionated CMake-based build-system generator for Bare native addons, with a JS API and a CLI.

stable

bare-make is an opinionated build-system generator for Bare native addons. It drives CMake with Ninja and Clang for a consistent toolchain across platforms, while staying plain CMake underneath so you can eject. It ships both a JavaScript API and a CLI.

npm i -g bare-make

Usage

Builds happen in three steps—generate, build, install:

const make = require('bare-make')

await make.generate()
await make.build()
await make.install()

Or from the command line:

bare-make generate
bare-make build
bare-make install

API

await generate([options])

Generate the build system (the configure step).

await build([options])

Compile the generated build system.

await install([options])

Install the built artefacts.

await test([options])

Run tests for projects using CMake's enable_testing() / add_test(). Also available as bare-make test.

Builds on bare-env, bare-fs, bare-os, bare-path, and bare-process.

See also

On this page