Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Quiest on May 29, 2008, 01:01:26 pm

Title: Running a tool configured in "Tools" after building
Post by: Quiest on May 29, 2008, 01:01:26 pm
Hi!

I just wanted to know if its possible to automatically run a tool
after a succesful build?
Is there a compiler setting or something for that?
Its pretty tiresome to have to run them by hand after building...

Thanks in advance!
Title: Re: Running a tool configured in "Tools" after building
Post by: Jenna on May 29, 2008, 01:21:33 pm
You can define pre and post build steps in the projects build options.
Title: Re: Running a tool configured in "Tools" after building
Post by: Quiest on May 29, 2008, 06:02:19 pm
Thanks,
I have seen that, but i dont know how to use it,
and havent found any info about it.

Can you point me on something that explains it?
Title: Re: Running a tool configured in "Tools" after building
Post by: Jenna on May 29, 2008, 06:21:22 pm
http://wiki.codeblocks.org/index.php?title=The_build_process_of_Code::Blocks#Pre-build_and_post-build_steps (http://wiki.codeblocks.org/index.php?title=The_build_process_of_Code::Blocks#Pre-build_and_post-build_steps)
Title: Re: Running a tool configured in "Tools" after building
Post by: Quiest on May 29, 2008, 08:33:28 pm
Thanks alot, again!

edit:
Okay, so, the link does not say anything about this,
can I use the same makros I can use int the user-defined tools?
i.e. ${TARGET_OUTPUT_BASENAME} or ${TARGET_OUTPUT_DIR}
Title: Re: Running a tool configured in "Tools" after building
Post by: Jenna on May 29, 2008, 08:57:42 pm
Yes, and you can also use your global vars.