xmake.lua 685 B

123456789101112131415161718192021
  1. package("picosha2")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/okdshin/PicoSHA2")
  4. set_description("a header-file-only, SHA256 hash generator in C++")
  5. set_license("MIT")
  6. add_urls("https://github.com/okdshin/PicoSHA2.git")
  7. add_versions("2022.08.08", "27fcf6979298949e8a462e16d09a0351c18fcaf2")
  8. on_install(function (package)
  9. os.cp("picosha2.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <picosha2.h>
  14. void test() {
  15. picosha2::hash256_one_by_one hasher;
  16. }
  17. ]]}))
  18. end)