lua-users home
lua-l archive

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


On Mon, Oct 28, 2013 at 11:05 PM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> We would like to compile Lua scripts and all their 'required' .lua files into a single output file that would have no dependencies other than .dll files.

See these:
        http://matthewwild.co.uk/projects/squish/home
        http://loop.luaforge.net/release/preload.html
        http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1/luac.lua
        http://lua-users.org/lists/lua-l/2008-08/msg00092.html

me too, me too!
    https://github.com/akavel/scissors/blob/master/tools/bundle/bundle.lua
with some more advanced usage (e.g. assuming "wx" is preloaded) at:
    https://github.com/akavel/scissors/blob/master/src/MAKE.lua#L58
(um, yes, this solution does not come prepackaged for instant use, I know, sorry. But you might have some reason to prefer it, e.g. that it's pure Lua IIRC, so feel welcome to use it or ignore it.)

uh, oh, you know, the others were totally Not Invented Here... :/ but in hobby projects, reinventing the wheel is permitted! :)

cheers
/Mateusz Czapliński.