Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: TDragon on February 03, 2006, 10:39:08 pm

Title: CBBuild: Automated Code::Blocks build - Now at v1.1!
Post by: TDragon on February 03, 2006, 10:39:08 pm
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

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 (http://www.tdragon.net/), or right now at www.tdragon.net/files/CBBuild-1.1.zip (http://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.
Title: Re: CBBuild: Automated Code::Blocks build for Windows users
Post by: killerbot on February 03, 2006, 11:14:04 pm
well done !!
Title: Re: CBBuild: Automated Code::Blocks build for Windows users
Post by: Game_Ender on February 04, 2006, 04:49:04 pm
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.
Title: Re: CBBuild: Automated Code::Blocks build for Windows users
Post by: TDragon on February 04, 2006, 06:24:18 pm
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.
Title: Re: CBBuild: Automated Code::Blocks build for Windows users
Post by: thomas on February 04, 2006, 06:33:04 pm
Currently all it's actually needed for is to detect and dismiss the batch build notification messagebox ...
What about not using --batch-build-notify instead?
Title: Re: CBBuild: Automated Code::Blocks build for Windows users
Post by: TDragon on February 04, 2006, 07:03:51 pm
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
Title: Re: CBBuild: Automated Code::Blocks build for Windows users
Post by: jmccay on February 09, 2006, 02:51:28 am
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
Title: Re: CBBuild: Automated Code::Blocks build - New Release!
Post by: TDragon on February 10, 2006, 05:46:06 am
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 (http://www.tdragon.net/), or right now at www.tdragon.net/files/CBBuild-1.1.zip (http://www.tdragon.net/files/CBBuild-1.1.zip) (131 KB)

P.S. - Glad to have helped ya, jmccay.