What build systems do you use/recommend for FOSS games?

What build systems do you use/recommend for FOSS games?

Postby Roots » 12 Sep 2016, 04:45

My project has been using autotools for a very long time for our Linux build, and it's done the job alright. But the build files haven't been maintained well. There's a lot of deprecated calls being made, and there are also occasional issues with finding library dependencies correctly. I looked into fixing these issues and found the amount of work would be non-trivial. A fork of my project changed the build system to CMake and that has seemed to work well for them. I was considering moving us to CMake as well, but I'm unsure of the trade-offs and whether it would be more beneficial to stick with what we have already.


My ideal build system would:
1) Be fine with having only a single makefile for the entire source tree (I would hate to have a makefile in each of our 20+ sub-directories)
2) Allow build files (C++ .o files, for instance) to be placed in a specified directory, and not in the base directory or the same directory as the source code
3) Be easy to use and maintain, and not require writing custom macro code to satisfy certain requirements (we have some m4 scripts for our autotools build)
4) If possible, be cross-platform so it can be used on Linux and Windows with MinGW. OS X support would be nice as well
Image
Roots
 
Posts: 96
Joined: 04 Mar 2010, 21:54

Re: What build systems do you use/recommend for FOSS games?

Postby Akien » 12 Sep 2016, 06:43

I'd go with CMake, there's a small learning curve but clearly not worth than autotools. It's also used by most modern projects and you can thus have tons of examples of CMakeLists.txt files to check how things should/can be done. It can also satisfy all your above points, though for (1), depending on the complexity of your project you might still want to split the CMakeLists.txt in a few files (e.g. one for your own source code, one that handles dependencies if you bundle them in the tree, etc.). For (3), it depends what are your specific needs, sometimes writing a macro is simpler than writing hacks everywhere; but if you don't need to do black magic, the out-of-the-box features should work just fine.
Godot Engine project manager and maintainer.
Occasional FOSS gamedev: Lugaru, OpenDungeons, Jetpaca, Minilens.
User avatar
Akien
 
Posts: 737
Joined: 22 Feb 2014, 13:14

Re: What build systems do you use/recommend for FOSS games?

Postby Lyberta » 12 Sep 2016, 14:20

Deleted.
Last edited by Lyberta on 01 Oct 2021, 10:15, edited 1 time in total.
Lyberta
 
Posts: 765
Joined: 19 Jun 2013, 10:45

Re: What build systems do you use/recommend for FOSS games?

Postby dulsi » 16 Sep 2016, 19:11

I think they are all awful. I tried using cmake but couldn't cross-compile to Windows on my linux box.
dulsi
 
Posts: 570
Joined: 18 Feb 2016, 15:24

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron