News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Run externally as part of automated build.

Started by jeffp, October 26, 2006, 10:43:32 PM

Previous topic - Next topic

jeffp

I need an automated build of our code blocks project.  I want to avoid maintaining two separate build files.  Is there a way to run a project built by codeblocks in either a command line, or some other manner that would be automated build friendly?  If not then where would I start in the codeblocks code to add this feature.

Thanks

stahta01

#1
Yes, I have not used it.

Run codeblocks.exe --help to get list of options
see --build --rebuild --target as ones that suggest it does what you want.

See this thread for examples http://forums.next.codeblocks.org/index.php?topic=1457.0
That was the best one I could find. searching on "--rebuild" the quotes where used in the search otherwise it did not like the --.


Tim S


C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Pecan

Quote from: jeffp on October 26, 2006, 10:43:32 PM
I need an automated build of our code blocks project.  I want to avoid maintaining two separate build files.  Is there a way to run a project built by codeblocks in either a command line, or some other manner that would be automated build friendly?  If not then where would I start in the codeblocks code to add this feature.

Thanks

Command line build can be done with "batchbuild"
Do a search on "batchbuild" from the base forum index.

jeffp

stahta01 and Pecan,

Thank you for the responses.  I still am unable to run an automated build.  When I try
to add the --build option to the codeblocks.exe a screen is presented with the different
options available for the codeblocks command line.  However at the bottom it says
"Unkown long option 'build'".  I spent a couple of hours searching both the forums and
google and still don't have a good understanding of what "batchbuild" is and how
to use it.  Thank you for helping this newbie out.  :D

By the way I am running codeblocks 1.0 rc2 on windows xp.  Thanks again.




mandrav

QuoteBy the way I am running codeblocks 1.0 rc2 on windows xp.

That's the info you should begin your question.
This version doesn't support command-line builds, sorry. Try the latest nightly build.
Be patient!
This bug will be fixed soon...