2
0

xmake.lua 1.0 KB

12345678910111213141516171819202122232425262728
  1. package("smoothcpp")
  2. set_homepage("https://github.com/heheda123123/smoothcpp")
  3. set_description("Easy to use first cross platform cpp library. Intended as a supplement to the c++ standard library.")
  4. set_license("MIT")
  5. set_urls("https://github.com/heheda123123/smoothcpp.git")
  6. add_versions("2023.12.20", "1ac3b09aaf2c4529d5f2bc1f4a6689c77228f02a")
  7. on_install("windows", "mingw", "linux", "macosx", function (package)
  8. local configs = {}
  9. if package:config("shared") then
  10. configs.kind = "shared"
  11. end
  12. import("package.tools.xmake").install(package, configs)
  13. end)
  14. on_test(function (package)
  15. assert(package:check_cxxsnippets({test = [[
  16. #include "scpp/string/string.h"
  17. #include <iostream>
  18. void test() {
  19. bool a = (scpp::to_lower("aAaAAbb") == "aaaaabb");
  20. std::cout << a << std::endl;
  21. }
  22. ]]}, {configs = {languages = "c++17"}}))
  23. end)