Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: oBFusCATed on May 26, 2011, 10:58:45 am

Title: Disable/unload project in workspace
Post by: oBFusCATed on May 26, 2011, 10:58:45 am
Is there a feature, which is similar to the unload project in Visual studio.
I want to skip some projects, when building the whole workspace, but I don't want to remove them from the workspace.
Is this possible or easily implementable?
Title: Re: Disable/unload project in workspace
Post by: MortenMacFly on May 26, 2011, 06:55:12 pm
Is this possible or easily implementable?
Sure, just setup (a) virtual target(s) that includes only the targets / projects you need. That's what virtual targets are for. VT's work across projects in a WS, obviously.
Title: Re: Disable/unload project in workspace
Post by: oBFusCATed on May 27, 2011, 01:18:05 am
I was expecting this answer :(
Title: Re: Disable/unload project in workspace
Post by: MortenMacFly on May 27, 2011, 09:27:43 am
I was expecting this answer :(
But what's wrong with it? :shock:
You can even use scripting to setup the virtual targets for you, e.g. if the targets you want to group have same namings...
Title: Re: Disable/unload project in workspace
Post by: oBFusCATed on May 27, 2011, 09:57:36 am
Because it is not the same functionality, but something that emulates it.

Also I should have many more targets than needed.
Title: Re: Disable/unload project in workspace
Post by: MortenMacFly on May 27, 2011, 05:41:07 pm
Because it is not the same functionality, but something that emulates it.
Well - but I would not "unload" it. Rather just introduce a flag "project disabled" and you are done.
I am not exactly sure what you do, but maybe also the platform flag is what you are looking for. Projects/targets in a WS not flagged for the current platform are being skipped.