-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlua-curl-scm-0.rockspec
74 lines (63 loc) · 1.38 KB
/
lua-curl-scm-0.rockspec
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
package = "Lua-cURL"
version = "scm-0"
source = {
url = "https://github.com/Lua-cURL/Lua-cURLv3/archive/master.zip",
dir = "Lua-cURLv3-master",
}
description = {
summary = "Lua binding to libcurl",
detailed = [[
]],
homepage = "https://github.com/Lua-cURL",
license = "MIT/X11"
}
dependencies = {
"lua >= 5.1, < 5.4"
}
external_dependencies = {
platforms = {
windows = {
CURL = {
header = "curl/curl.h",
library = "libcurl",
}
};
unix = {
CURL = {
header = "curl/curl.h",
-- library = "curl",
}
};
}
}
build = {
copy_directories = {'doc', 'examples'},
type = "builtin",
platforms = {
windows = { modules = {
lcurl = {
libraries = {"libcurl", "ws2_32"},
}
}},
unix = { modules = {
lcurl = {
libraries = {"curl"},
}
}}
},
modules = {
["cURL" ] = "src/lua/cURL.lua",
["cURL.safe" ] = "src/lua/cURL/safe.lua",
["cURL.utils" ] = "src/lua/cURL/utils.lua",
["cURL.impl.cURL" ] = "src/lua/cURL/impl/cURL.lua",
lcurl = {
sources = {
"src/l52util.c", "src/lceasy.c", "src/lcerror.c",
"src/lchttppost.c", "src/lcurl.c", "src/lcutils.c",
"src/lcmulti.c", "src/lcshare.c",
},
incdirs = { "$(CURL_INCDIR)" },
libdirs = { "$(CURL_LIBDIR)" }
},
}
}