|
|
|
@ -21,12 +21,15 @@ function _get_python_libs() |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
function _add_info(linkinfo, result) |
|
|
|
|
if linkinfo then |
|
|
|
|
table.insert(result.linkdirs, linkinfo.linkdir) |
|
|
|
|
table.insert(result.libfiles, linkinfo.filename) |
|
|
|
|
table.insert(result.links, linkinfo.link) |
|
|
|
|
if linkinfo.filename then |
|
|
|
|
local filepath = path.join(linkinfo.linkdir, linkinfo.filename) |
|
|
|
|
if os.isfile(filepath) then |
|
|
|
|
table.insert(result.libfiles, filepath) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
table.insert(result.links, linkinfo.link) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
function main(package, opt) |
|
|
|
|
if opt.system then |
|
|
|
@ -51,23 +54,32 @@ function main(package, opt) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
local sub_libs_map = libs.get_sub_libs(package) |
|
|
|
|
sub_libs_map["python"] = _get_python_libs() |
|
|
|
|
sub_libs_map.python = _get_python_libs() |
|
|
|
|
table.insert(sub_libs_map.test, "test_exec_monitor") |
|
|
|
|
|
|
|
|
|
local found |
|
|
|
|
libs.for_each(function (libname) |
|
|
|
|
local sub_libs = sub_libs_map[libname] |
|
|
|
|
if sub_libs then |
|
|
|
|
for _, sub_libname in ipairs(sub_libs) do |
|
|
|
|
local linkinfo = find_library("boost_" .. sub_libname, paths, opt) |
|
|
|
|
if linkinfo then |
|
|
|
|
_add_info(linkinfo, result) |
|
|
|
|
found = true |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
else |
|
|
|
|
local linkinfo = find_library("boost_" .. libname, paths, opt) |
|
|
|
|
if linkinfo then |
|
|
|
|
_add_info(linkinfo, result) |
|
|
|
|
found = true |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end) |
|
|
|
|
|
|
|
|
|
if found then |
|
|
|
|
result.linkdirs = table.unique(result.linkdirs) |
|
|
|
|
return result |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|