lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 28.09.18 19:00, Luiz Henrique de Figueiredo wrote:
>> attached is a simple rockspec that can build "limath" with luarocks's builtin
build type.
>
> Thanks. My Makefiles already have a "build" target, hence the build
> entry in the template I've posted. This was suggested by Hisham, but
> I'm not sure I did it right.

I have not much experience using luarocks's make build type, especially this
could be problematic under windows if there is no GNU Make installed. IMHO it's
much easier to have multi platform support using luarocks builtin build type
especially for simple C projects.

>
>>  I removed description.labels and rockspec_format = "3.0" to remain backwards
compatible.
>
> Removing description.labels and rockspec_format = "3.0" is all that is
> needed to support LuaRocks 2?

as you can see from the automatic build & tests: yes it builds with luarocks 2 &
3, see

    Linux & MacOS : https://travis-ci.org/osch/lua-limath-test
    Windows: https://ci.appveyor.com/project/osch/lua-limath-test