Add. Install lcurl.cURL module in rockspec

This commit is contained in:
Alexey Melnichuk 2014-08-29 12:29:23 +05:00
parent 5974af17ea
commit 9434c99c95
6 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,4 @@
local cURL = require("cURL") local cURL = require("lcurl.cURL")
-- open output file -- open output file
f = io.open("example_homepage", "w") f = io.open("example_homepage", "w")

View File

@ -1,4 +1,4 @@
local cURL = require("cURL") local cURL = require("lcurl.cURL")
-- setup easy -- setup easy
c = cURL.easy_init() c = cURL.easy_init()

View File

@ -1,6 +1,6 @@
-- use LuaExpat and Lua-CuRL together for On-The-Fly XML parsing -- use LuaExpat and Lua-CuRL together for On-The-Fly XML parsing
local lxp = require("lxp") local lxp = require("lxp")
local cURL = require("cURL") local cURL = require("lcurl.cURL")
tags = {} tags = {}
items = {} items = {}

View File

@ -18,9 +18,10 @@ cURL = c.shared{PROJECT,
target('build', cURL) target('build', cURL)
install = target('install', { install = target('install', {
file.group{odir=LIBDIR; src = cURL }; file.group{odir=LIBDIR; src = cURL };
file.group{odir=J(LIBDIR, PROJECT); src = J("src", "lua") };
file.group{odir=J(ROOT, 'examples'); src = 'examples'; recurse = true }; file.group{odir=J(ROOT, 'examples'); src = 'examples'; recurse = true };
file.group{odir=TESTDIR; src = 'test'; recurse = true }; file.group{odir=TESTDIR; src = 'test'; recurse = true };
}) })
target('test', install, function() target('test', install, function()

View File

@ -65,6 +65,7 @@ build = {
}, },
incdirs = { "$(CURL_INCDIR)" }, incdirs = { "$(CURL_INCDIR)" },
libdirs = { "$(CURL_LIBDIR)" } libdirs = { "$(CURL_LIBDIR)" }
} },
["lcurl.cURL"] = "src/lua/cURL.lua",
} }
} }