On Tue, Dec 20, 2011 at 3:27 AM, Daurnimator <[email protected]> wrote:
> I'm trying to write a rockspec for a multi-source file; pure lua module; and
> can't seem to get anything working...
> Source structure is:
> tests/
> doc/
> PROJECTNAME/init.lua
> PROJECTNAME/foo.lua
>
> What should build contain?
> I've tried with { type="builtin" ; modules = { ["PROJECTNAME"] = {
> "PROJECTNAME/init.lua" , "PROJECTNAME/foo.lua" } }

Typing this from memory, but I believe this should be:

{
   type="builtin",
   modules = {
      ["PROJECTNAME.init"] = "PROJECTNAME/init.lua",
      ["PROJECTNAME.foo"] = "PROJECTNAME/foo.lua",
   }
}

> but no luck
> I'd like to just be able to specify the whole PROJECTNAME directory as
> requiring installation.

Right now we have no support for this (it's something I want to add in
a future revision of the format), but if the source structure contains
a directory called lua/ it does scan it for files to add.

-- Hisham

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to