News:

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

Main Menu

CBBuild: Automated Code::Blocks build - Now at v1.1!

Started by TDragon, February 03, 2006, 10:39:08 PM

Previous topic - Next topic

TDragon

New CBBuild v1.1 released; see below!

Straight from the studios of Twilight Dragon Media...
An idea so revolutionary, it will change the way you think about Code::Blocks (i.e. the world)
A design executed with you, the end user, in mind
A product that is powerful, customizable, and ultimately usable

CBBuild

  • Can't wait to get your hands on the newest bleeding edge versions of Code::Blocks?
  • Tired of wading through dialogs and command prompts to download and build it all?
  • Wishing it were as easy for you as it is for Linux users?

Your sleepless nights spent waiting to see if the build is successful can be gone in no time, with this all-new, ultra-configurable, extra-spiffy automation script. Simply give a few directory and filename options in the easily readable and fully commented configuration file, and CBBuild will be ready to run! Built on the powerful AutoIt3 automation tool, CBBuild uses Code::Blocks' own batch build functionality to compile the new version. CBBuild handles commands and messageboxes as though you were there at the computer, and frees up your valuable time for the things you wish you could do, like sleeping, eating, and breathing.

CBBuild can download updated Code::Blocks sources, build the main project file, build the contrib plugins workspace, run update.bat, zip up the output, and analyze the SVN commit log for the recent changes -- and you won't need to type a key or click a button.

Updated version 1.1
CBBuild version 1.1, updated to work with the latest editions of Code::Blocks, is available at your local Twilight Dragon Media, or right now at www.tdragon.net/files/CBBuild-1.1.zip (131 KB)

Batteries not included. Not available in the states of Intoxication, Nausea, and some parts of Turmoil. Observable side-effects may include extensive elation, increased free time, and in some cases chronic productivity. Not recommended for infants, women above the age of 105, or anyone not able to build Code::Blocks manually. See store for details. Any or all of the above may or may not be complete and utter bullshit.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

killerbot


Game_Ender

What is the AutoIt3 functionallity used for, do you use any of the GUI manipulation functions?  It seems like all the tools you use are command line.  I was just wondering, because I were on something similar, but more advanced in its svn functionality with python.

TDragon

killerbot: Thanks. I wanted to be able to have a nightly ANSI build, and then once I finished that part I just decided to start throwing on features and see if anyone else found it helpful.

Game_Ender: Yes, I chose AutoIt3 for the Windows GUI manipulation. Currently all it's actually needed for is to detect and dismiss the batch build notification messagebox when the batch build is finished (and then the Application Error messagebox that generally happens after :P). I also make use of it to examine the text in the notification messagebox to make sure it contains "Process exited with status code 0", which indicates a successful build.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

thomas

Quote from: TDragon on February 04, 2006, 06:24:18 PMCurrently all it's actually needed for is to detect and dismiss the batch build notification messagebox ...
What about not using --batch-build-notify instead?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

TDragon

Okay, maybe what I said above was a small misstatement. Unless there's some other way of knowing when the batch build process is complete, I have to use --batch-build-notify and detect the messagebox to know when to move on to the next stage in CBBuild (usually running update.bat). And of course there is still that Application Error that needs to be tracked down.

It would be nice to have Code::Blocks' batch build process work as a typical command-line tool, writing to stdout/stderr and returning 0 once it's finished. Then I could drop AutoIt3 and just use a .bat file. But looking at the code, that'd take quite a bit of refactoring. Maybe my next project. :D
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

jmccay

Cool!  :D  You just informed me of a tool I have been trying to find for years.  You see, years ago (around 10) Norton had a similar scripting tool, and I missed it.  It can be handy for automating the exporting of graphics and stuff.  New toy to play with when I get the time!

jmccay
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

TDragon

Updated version 1.1
CBBuild version 1.1, updated to work with the latest editions of Code::Blocks, is available at your local Twilight Dragon Media, or right now at www.tdragon.net/files/CBBuild-1.1.zip (131 KB)

P.S. - Glad to have helped ya, jmccay.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)