User forums > General (but related to Code::Blocks)
Run externally as part of automated build.
(1/1)
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:
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
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
--- End quote ---
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:
--- Quote ---By the way I am running codeblocks 1.0 rc2 on windows xp.
--- End quote ---
That's the info you should begin your question.
This version doesn't support command-line builds, sorry. Try the latest nightly build.
Navigation
[0] Message Index
Go to full version