2
0

xmake.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. package("lolly")
  2. set_homepage("https://github.com/XmacsLabs/lolly")
  3. set_description("Lolly is an alternative to the C++ Standard Library.")
  4. add_urls("https://github.com/XmacsLabs/lolly.git")
  5. add_urls("https://gitee.com/XmacsLabs/lolly.git")
  6. add_versions("v1.0.1", "69ebde6df3e5b4b9473f018d105f48f4abb179ff")
  7. add_configs("nowide_standalone", {description = "nowide", default = true, type = "boolean"})
  8. on_load(function (package)
  9. if package:is_plat("mingw", "windows") and package:config("nowide_standalone") then
  10. package:add("deps", "nowide_standalone")
  11. end
  12. end)
  13. on_install("linux", "macosx", "mingw", "wasm", function (package)
  14. local configs = {}
  15. if package:config("shared") then
  16. configs.kind = "shared"
  17. end
  18. import("package.tools.xmake").install(package, configs)
  19. end)
  20. on_test(function (package)
  21. assert(package:check_cxxsnippets({test = [[
  22. #include "string.hpp"
  23. void test() {
  24. string s("hello");
  25. }
  26. ]]}, {configs = {languages = "c++11"}}))
  27. end)