stevedonovan / Lake

A Lua-based Build Tool
MIT License
132 stars 16 forks source link

Multiple lua modules in single .dll file #14

Open moteus opened 12 years ago

moteus commented 12 years ago

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.

stevedonovan commented 12 years ago

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.