Using External Hosts

Mattenklopper edited this page Feb 27, 2014 · 2 revisions

There is now support for custom moai hosts that are not part of the sdk. To use a custom host, create a host folder somewhere for your project and check out the custom host.

For example to add stirfires sdl host:

cd myproject
mkdir stirfire-sdl
git clone https://github.com/moaiforge/host-stirfirestudios-sdl.git stirfire-sdl

Now we just need to edit our cmake command line (in whichever script you use, eg create-projects-win.bat) to add the a define which points to the custom host's cmake folder

 -DCUSTOM_HOST=<projectdir>/stirfire-sdl/cmake

When editing build-win.bat you also have to update the mingw32 arguments by changing the moai target to sledge

When you build, it will now produce the host in the host-custom folder. In this case sledge.exe.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.