1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
-- Alternate rockspec that uses luarocks builtin builder
package = "luv"
version = "scm-0"
source = {
url = 'git://github.com/luvit/luv.git'
}
rockspec_format = "3.0"
description = {
summary = "Bare libuv bindings for lua",
detailed = [[
libuv bindings for luajit and lua 5.1/5.2/5.3.
This library makes libuv available to lua scripts. It was made for the luvit
project but should usable from nearly any lua project.
]],
homepage = "https://github.com/luvit/luv",
license = "Apache 2.0"
}
dependencies = {
"lua >= 5.1"
}
external_dependencies = {
LIBUV = {
header = 'uv.h',
library = 'uv',
},
LUA_COMPAT53 = {
header = "compat-5.3.h"
}
}
build = {
type = 'builtin',
-- default (platform-agnostic) configuration
modules = {
['luv'] = {
sources = {'src/luv.c'},
libraries = {'uv'},
incdirs = {"$(LIBUV_INCDIR)","$(LUA_COMPAT53_INCDIR)"},
libdirs = {"$(LIBUV_LIBDIR)"}
}
};
-- per-platform overrides
platforms = {
linux = {
modules = {
['luv'] = {
libraries = {
nil;
'pthread';
'rt';
'dl';
};
};
};
};
freebsd = {
modules = {
['luv'] = {
libraries = {
nil;
'pthread';
'kvm';
};
};
};
};
windows = {
modules = {
['luv'] = {
libraries = {
nil;
'User32';
'psapi';
'iphlpapi';
'userenv';
'ws2_32';
'advapi32';
'Dbghelp';
"Ole32";
"Shell32";
};
};
};
};
}
}
test = {
type = "command",
script = "tests/run.lua",
}
|