add all config for boost

pull/388/head
ruki 4 years ago
parent 4f188e10e4
commit cb01098839
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 3
      packages/b/boost/xmake.lua

@ -44,6 +44,7 @@ package("boost")
"iostreams",
"program_options"}
add_configs("all", { description = "Enable all library modules support.", default = false, type = "boolean"})
add_configs("multi", { description = "Enable multi-thread support.", default = true, type = "boolean"})
for _, libname in ipairs(libnames) do
add_configs(libname, { description = "Enable " .. libname .. " library.", default = (libname == "filesystem"), type = "boolean"})
@ -146,7 +147,7 @@ package("boost")
end
end
for _, libname in ipairs(libnames) do
if package:config(libname) then
if package:config("all") or package:config(libname) then
table.insert(argv, "--with-" .. libname)
end
end

Loading…
Cancel
Save