Can you create your own build system for C/C++ with same abilities as Ninja? What do you…
- User
Can you create your own build system for C/C++ with same abilities as Ninja? What do you need for that?
- Assistant
Can you create your own build system for C/C++ with same abilities as Ninja? What do you need for that?
Creating your own build system for C/C++ with abilities similar to Ninja would be a non-trivial project requiring a good understanding of various concepts related to software builds, dependencies, and toolchain components. Here’s a simplified outline of what you would need to consider and implement:
Understanding of Build Processes:
Dependency Graph:
Parallelism:
Incremental Builds:
Configuration System:
Toolchain Abstraction:
Cross-Platform Support:
Scripting or Programming Language:
User Interface and Diagnostics:
Tools and Libraries:
Developing such a system from scratch is a large task, and achieving the maturity and performance of existing build systems like Ninja or Make would require significant time and effort. It's often more efficient to contribute to or extend existing build systems unless you have a specific need that can't be met by them. Keep in mind that the scope and features of your custom build system could be narrowed down or expanded based on your specific needs and resources available.
Not yet included in a published release.