Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
post build step : launch plugin
killerbot:
Dear All,
What do you think about the following idea :
--- Quote ---Would it be nice to be able to launch a plug-in as a post build step (or maybe pre build step) of a build of target/project.
--- End quote ---
A simple example. Suppose you want to have Cppcheck run on your project as a post build step.
Why : you want to ensure that stuff builds, and that CppCheck doesn't find any issues.
Another example :
When you have a unit test project, it might be very interesting to have it run at the end of it's build ($exe_output), but it might be evenly interesting to have it run by Valgrind.
How far away are we from achieving such behavior ?
Any further ideas ?
MortenMacFly:
--- Quote from: killerbot on January 28, 2010, 08:24:38 pm ---
--- Quote ---Would it be nice to be able to launch a plug-in as a post build step (or maybe pre build step) of a build of target/project.
--- End quote ---
How far away are we from achieving such behavior ?
--- End quote ---
IMHO it's already (at least partially) possible and in fact I am doing this.
What's needed is a batch file (in my case) which you provide with the information required via macros.
This way you can run an external (stand-alone) application with all the information needed. this worked fine for me for things like documentation update (doxygen), reporting and logging.
For the plugins we probably would need to declare events like:
- build succeeded for target/project/workspace
- pre-pre-processor, post-pre-processor for targets
- pre-post-processor, post-post-processor for targets
I'm open for it if a plugin makes more sense because it needs to access a lot of information (e.g. from other targets, compiler options and so on...).
mandrav:
Correct me if I 'm wrong, but isn't it already possible to run script commands in pre/post build steps?
AFAIR, scripting exposes ToolPlugins' "Execute()" function already.
MortenMacFly:
--- Quote from: mandrav on January 29, 2010, 03:53:09 pm ---isn't it already possible to run script commands in pre/post build steps?
--- End quote ---
You tell - you did it. But yes: Scripting is surely possible. So that's another possibility. :-)
killerbot:
Hey Yiannis, good you give an example ?
Navigation
[0] Message Index
[#] Next page
Go to full version