Hello fellow C++ community. I decided to write my own build system for myself (and maybe for others who will find it usefull) which should be as simple to use and as powerful as possible. I want everything be defined in single build file and right now need to sum up other people opinion on this. Right now I came up to this:
(predefined statements)
compiler, standart, output_dir, obj_dir, src_dir, include_dir, lib_dirs
Example config using these:
compiler = "clang++" //if it is in the path, otherwire privide path to executable
standard = "c++20"
output_dir = "build/bin"
obj_dir = "build/obj"
src_dirs = { "../src" }
include_dirs = { }
lib_dirs = { "SDLmain.lib" "SDL.lib" }
(User defined variables)
Example:
path_to_sdl = "path/to/sdl"
include_dirs = { ${path_to_sdl}/include }
Right now I wrote file lexer and until it is not too late I want to know
What are your thoughts on this design? What is missing, what can be improved? I will glad to hear and implement you ideas and suggestions! Thanks!