Build system
by Gerald Fishel · in Torque 3D Professional · 12/26/2012 (11:13 am) · 3 replies
So since GG has gone Open Source with T3D and it seems is heading that way with the whole product line, I'm wondering if the Steering Committee would consider moving Torque over to a more standardized build system, such as CMake. It would make things a whole lot easier to manage for multiple platforms, especially for adding new platforms, and will be more likely to be familiar to new developers working with Torque.
#2
Is this something that could exist in parallel to the current build system? That way it could be phased in?
12/26/2012 (3:34 pm)
I think there is a link to add requests like that so it gets more visibility. It is where everyone went and voted for features that were suggested by the community. This sounds like a good idea, it is just going to be some work to implement.Is this something that could exist in parallel to the current build system? That way it could be phased in?
#3
Just to give an idea of what's involved, the entire set of CMakeLists.txt files I use to build for Windows is around 10kb, and it works for generating projects for Visual Studio 2008/2010/2012, MinGW and makefiles for NMake, out of the box. It should work with CodeBlocks and Borland compilers as well, though I haven't tested it on those.
Adding support for Mac/XCode/Unix Makefiles is another ~3kb, most of that dealing with generating app bundles.
12/26/2012 (5:54 pm)
I'm using CMake now for my copy of T3D. It's really not that hard to implement it, and it wouldn't interfere with the existing build system, except for the potential for conflicts if attempting to build different projects with both systems within the same directory tree, which I think might be a little silly.Just to give an idea of what's involved, the entire set of CMakeLists.txt files I use to build for Windows is around 10kb, and it works for generating projects for Visual Studio 2008/2010/2012, MinGW and makefiles for NMake, out of the box. It should work with CodeBlocks and Borland compilers as well, though I haven't tested it on those.
Adding support for Mac/XCode/Unix Makefiles is another ~3kb, most of that dealing with generating app bundles.
Torque Owner Daniel Buckmaster
T3D Steering Committee
EDIT: for reference.