On Sat, May 7, 2011 at 9:21 AM, steve donovan <[email protected]> wrote: > Hi all, > > Here is the issue - assuming I have built my extensions in some way > not with "builtin", and wish to install them using LR: > > build = { > ... > install = { > lib = {'bar'} > } > } > > But (alas) the file copying logic is not clever enough to append an > appropriate extension (.dll or .so) where no extension is provided so > I have to resort to per-platform overrides. > > It was not a difficult thing to patch, and I can supply the changes if > anyone also thinks that this could be useful. (An entertaining > side-effect of the change is that LR can now deliver regular > executables) > > Why I would push for it is that it makes a Lake backend much easier. > Lake was never intended to do installation, since I knew LR already > knew how to do this. So it would go like this: > > build = { > type = "lake", > lakefile = [[ > c.shared{'bar',src='bar tools',needs='lua'} > ]], > install = { lib = {'bar'}} > } > > (Of course here you could use type="builtin", but this is for more > complicated scenarios)
I think we should start committing these desired improvements which represent incompatibilities with the rockspec format (What's the best approach? Commit them in the main trunk and make a "stable" branch or the other way around?). WRT incompatible changes, there will certainly be changes to the format that need to be discussed before they're added, but things like this (generalizations to existing features that make things more orthogonal) should be collected, to make sure we don't overlook them later. -- -- Hisham http://hisham.hm/ _______________________________________________ Luarocks-developers mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers
