Author Topic: Possible to define Tools in the project file?  (Read 4168 times)

Offline mattn2

  • Multiple posting newcomer
  • *
  • Posts: 18
Possible to define Tools in the project file?
« on: November 15, 2008, 01:42:45 pm »
Hi,

i want to be able to deliver some default make file targets and some other tools via the menu for our developers. we have some targets to trigger external stuff that is needed in our build chain. It would be sweet to add those via the project file - so we can configure them systemwide, and every developer gets them automatically.

of course everyone can configure the tools on his own - but a) it's error prone and b) it might be outdated from time to time or not even complete

is there a way to achieve this?

greetings
martin

Offline mattn2

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Possible to define Tools in the project file?
« Reply #1 on: May 17, 2009, 09:59:41 am »
no one? i'm still interested in a solution for this ;)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Possible to define Tools in the project file?
« Reply #2 on: May 17, 2009, 10:31:15 am »
no one? i'm still interested in a solution for this ;)
I don't really get the first part: "deliver some default makefile targets".
I guess what you should do in this case is to write a wizard that sets up a project as desired for you.
For the second part:
The tools menu is a per-user item. Although you can use e.g. cb_share_config to exchange tool settings between installations that's probably no good and error prone, too (imagine you might overwrite tools a dev has created himselves...). Merging on XML file level (the settings file "default.conf" is a XML file) is another idea but also no good (IMHO).
My strong suggestion is (if you you just want to add some tools): write a tiny plugin that creates an extra menu and triggers actions accordingly. This should be very easy to implement (we have a type "tools plugin" for such purposes). This way you would only need to distribute the plugin to your devs and the setup is equal to everyone.
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