add package lolly (#2410)
* add package lolly * add on_test * fix * fix * fix * add nowide_standalone * update * fix build on wasm * Update xmake.lua * Update xmake.lua * Update xmake.lua * Update xmake.lua --------- Co-authored-by: ruki <waruqi@gmail.com>pull/2343/head
parent
ecd84f8393
commit
5a6fe3f3c3
1 changed files with 33 additions and 0 deletions
@ -0,0 +1,33 @@ |
||||
package("lolly") |
||||
set_homepage("https://github.com/XmacsLabs/lolly") |
||||
set_description("Lolly is an alternative to the C++ Standard Library.") |
||||
|
||||
add_urls("https://github.com/XmacsLabs/lolly.git") |
||||
add_urls("https://gitee.com/XmacsLabs/lolly.git") |
||||
|
||||
add_versions("v1.0.1", "69ebde6df3e5b4b9473f018d105f48f4abb179ff") |
||||
|
||||
add_configs("nowide_standalone", {description = "nowide", default = true, type = "boolean"}) |
||||
|
||||
on_load(function (package) |
||||
if package:is_plat("mingw", "windows") and package:config("nowide_standalone") then |
||||
package:add("deps", "nowide_standalone") |
||||
end |
||||
end) |
||||
|
||||
on_install("linux", "macosx", "mingw", "wasm", function (package) |
||||
local configs = {} |
||||
if package:config("shared") then |
||||
configs.kind = "shared" |
||||
end |
||||
import("package.tools.xmake").install(package, configs) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
assert(package:check_cxxsnippets({test = [[ |
||||
#include "string.hpp" |
||||
void test() { |
||||
string s("hello"); |
||||
} |
||||
]]}, {configs = {languages = "c++11"}})) |
||||
end) |
Loading…
Reference in new issue