Add. Rockspec file.

master
Alexey Melnichuk 2014-08-25 15:00:59 +05:00
parent 64916fb8c2
commit ea9edd651a
1 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,67 @@
package = "lcurl"
version = "scm-0"
source = {
url = "https://github.com/moteus/lua-lcurl/archive/master.zip",
dir = "lua-lcurl-master",
}
description = {
summary = "Lua module binding CURL",
detailed = [[
]],
homepage = "https://github.com/moteus/lua-lcurl",
license = "MIT/X11"
}
dependencies = {
"lua >= 5.1"
}
external_dependencies = {
CURL = {
header = "curl/curl.h"
}
}
external_dependencies = {
platforms = {
windows = {
CURL = {
header = "curl/curl.h",
library = "libcurl",
}
};
unix = {
CURL = {
header = "curl/curl.h",
-- library = "curl",
}
};
}
}
build = {
type = "builtin",
platforms = {
windows = { modules = {
lcurl = {
libraries = {"libcurl"},
}
}},
unix = { modules = {
lcurl = {
libraries = {"curl"},
}
}}
},
modules = {
lcurl = {
sources = {
"src/l52util.c", "src/lceasy.c", "src/lcerror.c",
"src/lchttppost.c", "src/lcurl.c", "src/lcutils.c"
},
incdirs = { "$(CURL_INCDIR)" },
libdirs = { "$(CURL_LIBDIR)" }
}
}
}