Author Topic: Run externally as part of automated build.  (Read 3730 times)

jeffp

  • Guest
Run externally as part of automated build.
« 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Run externally as part of automated build.
« Reply #1 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


« Last Edit: October 26, 2006, 11:02:08 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2775
Re: Run externally as part of automated build.
« Reply #2 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.

jeffp

  • Guest
Re: Run externally as part of automated build.
« Reply #3 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.




Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Run externally as part of automated build.
« Reply #4 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.
Be patient!
This bug will be fixed soon...