zerodaycode / Zork

Project manager and builder automation tool for modern C++ projects
MIT License
146 stars 10 forks source link

Specific internal input/output file properties #135

Open TheRustifyer opened 3 weeks ago

TheRustifyer commented 3 weeks ago

Refactor

We have on SourceCommandLine the byproduct property, which is incorrectly named and also, it stores the path to the generated output file in the build process.

Then ,we store the same data on the args property of the same type, effectively duplicating such data.

Is mandatory then, to use only one of them. And I would like to use a prop named output_file (instead of byproduct) to store such output file path, and then we can have a input file which holds the data of the user declared file.

Such separation will allows us to have better and readable code when building the command line args, a better structured cache and may serve to other internal purposes where the files are easily accessed via a named property.

Also, it will allow us to directly remove data from the cache and object/precompiled module interfaces from the build directory effortlessly when they are changed/moved from their fs location.