QuiverProjectCreator icon indicating copy to clipboard operation
QuiverProjectCreator copied to clipboard

Release/Debug folders should be cleaned when fully re-generating projects

Open Spirrwell opened this issue 4 years ago • 2 comments

Binaries, object files, libraries, and whatnot should be cleaned from release/debug folders when regenerating projects as they can interfere with builds.

MSBuild in particular complains about files from "another" project when a project is regenerated.

Spirrwell avatar Mar 02 '20 06:03 Spirrwell

sometimes you might not want it to clean, so I might add an option for it, like

--clean [libs/build dir/binaries/generator files/hashes]

would also parse the projects with clean just to get stuff need to clean, though it wouldn't call the generators if it didn't need a rebuild

Demez avatar Mar 02 '20 06:03 Demez

I'm not sure if this should be added. It seems very easy to me for someone to screw up their outdirs, and then call clean and have their entire project folder wiped. I think it's a better solution to automate it by writing your own batch or shell script.

MSBuild in particular complains about files from "another" project when a project is regenerated.

One way to avoid this is by making each project have a unique intdir, like so:

macro OUT_BASE_DIR 	"$ROOT_DIR/build_$CONFIG/$PLATFORM_DIR"
macro OUT_BIN_DIR	"$OUT_BASE_DIR/bin"
macro OUT_LIB_DIR	"$OUT_BASE_DIR/lib"
macro OUT_INT_DIR	"$OUT_BASE_DIR/int/$OUT_FILE_NAME"

CoderSear avatar Jun 11 '20 18:06 CoderSear