viciious/qfusion — pull request #57 by stopiccot (2014-01-02 13:15:19+00:00)
Title: Premake

I've already made a proposal to use cmake as a crossplatform built tool to make maintenance much easier. After making some tests with cmake I once again realized how horrible it is. So I decided to use premake instead (http://industriousone.com/premake). It has nice declarative lua-based scripting and is very simple overall.

This branch is still work in progress but it would be great if you have time to take a look through the code and give some feedback and your overall impressions about this idea.

I've tested this on Windows 7 x64 (I used premake4.4-beta5 from http://industriousone.com/premake/download) and Ubuntu 13.10 x64 (premake4 from apt-get). On windows you need to run

premake4 vs2010

in qfusion/source directory to generate visual studio projects (old project files are not removed yet). On linux

premake4 gmake && make config=debug64

Known issues:

- no precompiled headers support in a way we need. There is no option in premake to ignore precompiled headers for specific files in project. It can be fixed with some refactoring.
- for now angelscript and librocket on linux should be prebuilt manually by calling make.
- currently no OS X support. But it seems to broken in master anyway