User forums > Using Code::Blocks

command line build

<< < (2/3) > >>

aurisc4:

--- Quote from: thomas on August 21, 2006, 09:34:15 pm ---Makefile export is not supported any more. It may be again (some distant day in the future), maybe, possibly, but no grants on that.

--- End quote ---

I really recomend to support this feature. It's very usefull. Command line compilation is much faster, than the one, using IDE. For big applications it'd be quite good to have makefile export feature, so you can develop app using C::B and do full rebuilds in command line.

takeshimiya:

--- Quote from: thomas on August 21, 2006, 09:34:15 pm ---Remember that the compiler binding is a plugin. Plugins communicate with the application via events. The compiler is launched via wxExecute... the list is endless.
Basically, you would have to rewrite 70% of Code::Blocks from scratch (unless there exists a wxWidgets port that works entirely without GUI and still offers an event loop - which I don't know).

--- End quote ---

You can get the  wxWidgets "port" that works entirely without a GUI by compiling with USE_GUI = 0.
wxExecute() works, and almost everything that is not ifdef'ed with wxUSE_GUI does.

The only problem is that wxBase haves no event loop yet (as of 2.6.x), but it haves an option for creating your own.
So the good thing is that there are several home-brewed (being used by other OpenSource projects) event loop implementation for wxWidgets base library.


I see that having a console only version of C::B will be very useful, specially for the build system (this becomes important to overcome the lack of the Makefile export feature).
BUT it will requiere a major effort in decoupling the GUI code from non-GUI code for the Compiler and Build system, so this should be postponed for the 2.0 (or 3.0) version.

One funny thing: the MS Visual Studio haves a decoupled non-GUI build system only in the very latest version of the IDE. Previous versions never had this feature.

Game_Ender:
You should give try doing a speed test of Code::Blocks build system vs. Makefiles.  Code::Blocks is as fast or faster.

On topic:
Why can't you use a batch build for this? 

Having wxWidgets on your build server is not a problem and you should be able to open up and display windows even if there is no display attached (haven't tried this myself).

For the record wxWidgets starts up the message loop in wxApp::Initialize, so if you overload that method and do all processing there.  Then return with false and not call wxApp::Initialize you shouldn't have any problem.

sethjackson:

--- Quote from: Game_Ender on August 21, 2006, 10:55:59 pm ---You should give try doing a speed test of Code::Blocks build system vs. Makefiles.  Code::Blocks is as fast or faster.

On topic:
Why can't you use batch build for this?

--- End quote ---

On top of that building a project is easier with Code::Blocks than with a Makefile.....

nzoltan:

--- Quote from: Takeshi Miya on August 21, 2006, 10:48:11 pm ---One funny thing: the MS Visual Studio haves a decoupled non-GUI build system only in the very latest version of the IDE. Previous versions never had this feature.

--- End quote ---

Delphi (!) had this feature from the begining... :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version