Tangent128 / luasdl2

A pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2, and LuaJIT.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Luarocks builtin recipe

Tangent128 opened this issue · comments

It would be nice if Luarocks could build Lua-SDL2 without requiring Cmake as a build dependency.

Besides the general advantage of one less dependency, Luarocks is probably smarter about the correct way to build Lua modules for different platforms.

Keep in mind that we need to link the platform's SDL2.

The luarocks-builtin branch contains an initial stab at a builtin rockspec. As of the time of writing, only the core SDL module is built, and there's no provision for automatically finding the SDL2 framework on OSX.

The luarocks-builtin branch rockspec seems to be complete enough for Linux, will be merging that into master in a day or three.

Windows hopefully works with some manual configuration to find the headers, OS X probably needs some platform overrides still.