moai/moai-dev — pull request #1046 by halfnelson (2014-12-20 13:36:21+00:00)
Title: Big cmake reorganisation and host templates 

I have been plugging away on this for a while, it was originally for 1.5-stable but moved it to target 1.6. It changes the main thrust of the cmake scripts to generate libmoai. It adds some improvements to the linux build scripts and deprecates the host-android and host-ios scripts in favour of a template that is created using moai util scripts.

It includes host templates for all platforms (windows, osx (app-store), linux, ios, android, html).

This needs more documentation and the whole refactor may not be wanted. Posting it now since it might contain fixes that are not in develop (such as changes to make ios 64bit work) and an osx app store host-template, and the latest version of the html host.

This might at least get the discussion going. It was done over 3-4 months but i refactored it into 3 main commits (with a couple of catchup ones later), 1st contains most of the moai src mods needed to be made for the cmake scripts to work and for all the hosts to compile cleanly. The 2nd is the reorg of the cmake build scripts (including refactor of the ios stuff to bring it up to date with 1.6). The 3rd is the host templates that link to the static libs installed by the updated cmake scripts, these templates can be used 1 per game making it easier to update and customize the host for each project (icons, etc)