Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: jeffp on October 26, 2006, 10:43:32 pm

Title: Run externally as part of automated build.
Post by: 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
Title: Re: Run externally as part of automated build.
Post by: stahta01 on October 26, 2006, 10:54:43 pm
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.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


Title: Re: Run externally as part of automated build.
Post by: Pecan on October 26, 2006, 10:59:15 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.
Title: Re: Run externally as part of automated build.
Post by: jeffp on October 27, 2006, 09:05:52 am
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.



Title: Re: Run externally as part of automated build.
Post by: mandrav on October 27, 2006, 09:14:13 am
Quote
By 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.