PWMake -A C++ build system
Visit the code: github I hate CMake when I learned to write my first C++ program. I hate Visual Studio and Xcode too. So I decided to use clang and CMake to build my C++ program. Clang is a good compiler, but CMake is terrible. I found ninja when I searched new C++ build system. Ninja is a fast build system, but we should add every file by myself. So I decided to create a new language to…
The article discusses the creation of a new C++ build system called PWMake. The author expresses frustration with the CMake and Visual Studio/Xcode build systems, leading them to explore alternative options. After discovering Clang and ninja as a fast build system, the author decided to develop a new language to transform the ninja file.
The initial steps in creating PWMake involve defining groups, which function like structs and require functions to be added within them. The author initially focused on three main groups: Compiler Group, Files Group, and Project Group. The Compiler Group generates compiler information, while the Files Group searches for files within the program folder. The Project Group then combines the functions from the Files Group and any libraries needed.
When building the binary, PWMake supports creating executable files, static libraries, or shared libraries. The author notes that this is the first version of PWMake, which may have numerous bugs and missing features. They invite others to provide feedback, report bugs, or contribute by submitting pull requests on GitHub.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.