[Gambas-devel] What about cmake?

Tobias Boege tobias at ...692...
Sat Oct 5 16:15:10 CEST 2013


On Fri, 04 Oct 2013, Sebastian Kulesz wrote:
> Hey there!
> 
> Wondering today how cmake works, i started migrating gambas from autotools
> as a test.
> 
> As of now, only the main/ directory is ported, so it's not a big deal.
> 
> Ohh, wait! IT IS. The equivalent of <./reconf && ./configure> now only
> takes 2 seconds! And i can see a percentage report!
> 
> real 0m2.022s
> user 0m1.595s
> sys 0m0.374s
> 
> It is a bit dirty, but the compiler and interpreter build just fine. I have
> yet to test if they work, but i haven't finished the installation rules.
> 
> As a note, cmake also integrates with svn to get the revision, so i had to
> tinker around with some include definitions. libtool was also causing
> trouble, i'm not exactly sure how it works, so i disabled it for the moment.
> 
> I will start porting the rest of the components tree tomorrow to see if i
> can get something stable enough.
> 
> Hope you like it!

Well, whatever speeds the reconf/configure process up is totally welcome to
me.

I was also worried about the increasing number of official components
shipped with Gambas which make building Gambas the first time a very lengthy
"experience". I just didn't come to a satisfactory solution to this. If
cmake can decrease the configuration time (by this tremendous factor), it's
a good thing, IMO. Also, IIRC, its output is coloured :-)

Would you mind starting a new branch for this project so we can have a look?
(If I get the hang of it, I could also convert my components to build with
cmake in this branch...)

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk





More information about the Devel mailing list