xmake.lua 779 B

1234567891011121314151617181920212223
  1. package("strings_h")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/win32ports/strings_h")
  4. set_description("header-only Windows implementation of the <strings.h> header")
  5. set_license("MIT")
  6. add_urls("https://github.com/win32ports/strings_h.git")
  7. add_versions("2023.03.17", "822de6e8c368abb986b403792082189f3c602c45")
  8. on_install("windows", function (package)
  9. os.cp("strings.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_csnippets({test = [[
  13. #include <strings.h>
  14. void test() {
  15. char buffer[6];
  16. bcopy("hello", buffer, 5);
  17. }
  18. ]]}))
  19. end)