Author Topic: Disable/unload project in workspace  (Read 6381 times)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Disable/unload project in workspace
« 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?
(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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Disable/unload project in workspace
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Disable/unload project in workspace
« Reply #2 on: May 27, 2011, 01:18:05 am »
I was expecting this answer :(
(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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Disable/unload project in workspace
« Reply #3 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...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Disable/unload project in workspace
« Reply #4 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.
(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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Disable/unload project in workspace
« Reply #5 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ