News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Disable/unload project in workspace

Started by oBFusCATed, May 26, 2011, 10:58:45 AM

Previous topic - Next topic

oBFusCATed

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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: oBFusCATed on May 26, 2011, 10:58:45 AM
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: oBFusCATed on May 27, 2011, 01:18:05 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...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Because it is not the same functionality, but something that emulates it.

Also I should have many more targets than needed.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: oBFusCATed on May 27, 2011, 09:57:36 AM
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]