Great ! thanks a lot.
This makes things really clean.
On Thu, Jan 30, 2014 at 10:58 PM, Hisham <h...@hisham.hm> wrote:
> On 30 January 2014 18:54, Gaspard Bucher <gasp...@teti.ch> wrote:
> > I am working the path for the following rockspec and wonder
> >
> > https://gist.github.com/lubyk/8718453#file-gistfile1-lua-L27
> >
> > Is there some other possibility that allows the following syntax ?
>
> Use this instead:
>
> build = {
> modules = {
> -- Plain Lua files
> ['lub'] = 'lub/init.lua',
> ['lub.Autoload'] = 'lub/Autoload.lua',
> ['lub.Dir'] = 'lub/Dir.lua',
> ['lub.Template'] = 'lub/Template.lua',
> -- C++ modules
> ['lub.core'] = {
> sources = {
> 'src/bind/dub/dub.cpp',
> 'src/bind/lub_core.cpp',
> 'src/lub.cpp',
> linux = { 'src/linux/lub.cpp' }, -- extra sources for linux
> },
> incdirs = {'include', 'src/bind', 'src/vendor'},
> libraries = { 'stdc++',
> linux = { 'rt' }, -- extra libraries for linux
> },
> },
> },
> platforms = {
> linux = {
> modules = {
> ['lub.core'] = {
> sources = { 'src/linux/lub.cpp' },
> libraries = { 'rt' },
> }
> }
> }
> }
> }
>
> Everything under platforms.linux is deep-merged into the build table.
>
> -- Hisham
>
--
Gaspard
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers