|
|
5 years ago | |
|---|---|---|
| .github | 5 years ago | |
| examples | 5 years ago | |
| tools | 5 years ago | |
| .gitignore | 5 years ago | |
| ChangeLog.md | 5 years ago | |
| LICENSE | 5 years ago | |
| README.md | 5 years ago | |
| nobuild.c | 5 years ago | |
| nobuild.h | 5 years ago | |
| nobuild2.c | 5 years ago | |
| nobuild2.h | 5 years ago |
Header only library for writing build recipes in C.
The idea is that you should not need anything but a C compiler to build a C project. No make, no cmake, no shell, no cmd, no PowerShell etc. Only C compiler. So with the C compiler you bootstrap your build system and then you use the build system to build everything else.
Try it out right here:
$ cc ./nobuild.c -o nobuild
$ ./nobuild
Explore nobuild.c file and the examples folder to learn more.
Keep in mind that nobuild.h is an stb-style header-only library. That means that just including it does not include the implementations of the functions. You have to define NOBUILD_IMPLEMENTATION macro before the include. See our nobuild.c for an example.
nobuild.c in your project with the build recipe. See our nobuild.c for an example.nobuild executable:
$ cc nobuild.c -o nobuild on POSIX systems$ cl.exe nobuild.c on Windows with MSVC$ ./nobuildnobuild__ (double underscore) are private to the library and should not be relied upon. They can be changed in any release without a warning.