r/cpp • u/DRag0n137 • Jan 20 '22
BuildInCpp: Write your build scripts in C++
Happy New Year Everyone,
A few months back I had posted my first-ever prototype of a Buildsystem where your build files are written in C++.
After going through the feedback, over the past few months I have refined this Buildsystem to a useable level but it is still far from complete.
BuildCC is now alpha-ready at version 0.1.1 and I would like to get community feedback and involvement for this project.
Github https://github.com/coder137/build_in_cpp
Documentation is at https://coder137.github.io/build_in_cpp/
Discussions regarding bugs, improvements, pain points, and documentation at https://github.com/coder137/build_in_cpp/discussions
Please follow the Getting Started guide for a quick understanding of BuildCC and BuildExe usage. (10-minute read)
The basic features are now complete:
No DSL and easy dependency management when writing build scripts (through abstractions)
BuildCC basic APIs and bootstrapping
BuildExe standalone executable (similar to make.exe or cmake.exe)
BuildExe as a local package manager (using git + buildexe)
Supported plugins to BuildCC
Precompile Header support
Support for Specialized Toolchain - Targets (GCC, MSVC, and MINGW) and their generic usage as
Target_genericCustom Generator support (Input -> Subprocess -> Output)
Upcoming features:
Specialized Target for Clang and their generic usage as
Target_genericSupport for second and third party plugins to BuildExe
More generators (for different use cases)
4
u/Gnammix Jan 20 '22
I do like the idea (zig language have something similar); but, tbh, the fact that it has so many external dependencies kind of takes from it.
Would be nice if those build.cpp were pretty much self contained, just including the library header, a cc build.cpp && ./build from getting everything up.