|
@@ -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)
|