Lake icon indicating copy to clipboard operation
Lake copied to clipboard

Multiple lua modules in single .dll file

Open moteus opened this issue 12 years ago • 1 comments

I try this:

c.shared{'cjson', ....
  needs='lua',
  lua  = {"luaopen_cjson", "luaopen_cjson_safe"};
}

but lake use only first function.

Also libflags and flags still do not support array as value.

moteus avatar Aug 02 '12 07:08 moteus

That seems like a reasonable thing to do - the alternative is to use a .def file of course. I'll put this in. (It's a particular issue for MSVC because it does not export functions by default, unless there is a __declspec(dllexport))

libflags and flags are still strings, yes, but I will fix this. The others (incdir, defines, etc) should now all work with arrays.

stevedonovan avatar Aug 02 '12 09:08 stevedonovan