A preprocessor for ninja build
Ninja is not designed to be "convenient to edit by hand", and the developers strongly suggest using some form of machine generation. Well, here it is. Mobius is a preprocessor for ninja.build
files, and should be suitable for most small, or even mid-sized projects. It takes about 1 millisecond to run on a 20000 line work project with a series of complex build rules that includes moc
, qrc
, boost-python
, and protoc
, with the option of using either clang
and gcc
, and five build modes. (debug
, release
, and three sanitizers: usan
, asan
, and tsan
.)
- Linux
- C++17
Should be simple to port to other platforms; there's only one source file.
Install clang-5.0, or gcc-7, or newer.
make
sudo make install
mobius -h
So far there's only one example: clang + modules-ts.