Which build system to use?

Discuss new features and future development.

Which build system to use?

Postby tekr » Thu Sep 17, 2009 1:00 pm

Hi all!

There seems to be quite a few build systems that are used in chipmunk. Those are CMake and SCons, and in addition to those there are XCode and Visual Studio projects. I think it would make things simpler to use only one build system. I think SCons and CMake would both be good choises, as they are cross-platform.

I myself have used SCons in my own projects, so I might be of some help with that (although I don't have a mac to test on). I'm going to post one small game that uses SCons soon.

For now, I just wanted to know if there are any plans about that. Are you going to move on to SCons, perhaps?
Posts: 2
Joined: Thu Sep 17, 2009 11:33 am
Location: Jyväskylä, Finland

Re: Which build system to use?

Postby slembcke » Thu Sep 17, 2009 2:02 pm

I originally started with the XCode project being a Mac user myself. Visual Studio users wanted a VS project, and not just a library that they could drop in their projects. Linux users wanted something too, and somebody made the CMake files for me. For both of those, people have stepped in to patch the projects when it was needed.

Eventually, we created a version of our Crayon Ball game that ran on Windows and Linux as well (though the Linux version was never released). To do that, we were experimenting with SCons to build the project on all platforms using a single build script. While SCons worked really well for that, it isn't really that useful all the time. I continue using XCode when working on iPhone projects, or for Chipmunk's general development as well. Visual Studio users are still going to want their own project, and Linux users will want something they can use too. I guess I don't really see having several separate build systems as being a problem, but just a pain in that it makes it harder to make a release.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
Site Admin
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: Which build system to use?

Postby Anthony » Fri Oct 09, 2009 9:13 am


I have some experience with CMake and am currently using Chipmunk in my PhD project built with CMake.
I have also used SCons from time to time.

For Chipmunk I'd rather use CMake for it can generate NATIVE XCode / VS projects.
And it can also generate CodeBlocks / KDevelop / Eclipse CDT project with build managed under the hood by a Makefile.
And those features are - I think - extremely convenient.

Moreover for relatively simple to build project the CMakeLists are quite simple and a full-featured scripting language - like Python in SCons - is definetly NOT required.

By the way I fond some "bugs" in 4.1.0 CMakelist version.
I will cook a patch as soon as possible :-)
Posts: 3
Joined: Fri Oct 09, 2009 9:05 am

Return to Features/Development

Who is online

Users browsing this forum: No registered users and 2 guests