Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: byo on October 22, 2005, 01:12:10 pm

Title: wxSmith - fast compile
Post by: byo on October 22, 2005, 01:12:10 pm
Hi, I'd like to show here small trick, which will speed up wxSmith compilation a little bit :D

At this point I assume You have wxWidgets (>=2.6) and lastest C::B cvs snapshoot compiled and everything works fine.
You can compile wxSmith by compiling it's project (it's in CB_ROOT/src/plugins/contrib/wxSmith directory). Using precompiled headers (discussion about it is here: http://forums.codeblocks.org/index.php/topic,1109.0/topicseen.html) it took me about 5 minutes on my Athlon XP 2000+ to rebuild all.
Using some trick I've reduced compile time to about 1 minute :D. Here are some steps (it works on Windows but I guess it wouldn't be hard to make it compile on Linux too, just few compile options need to be changed :) ) :


How it works ?

There are few fc.cpp files inside zip file. These fc.cpp files include all cpp files inside project. Instead of compiling all source files separately I compile one fc.cpp file which include everything.

This technique may work also with other projects but with some restrictions:



[attachment deleted by admin]