xmake.lua 876 B

123456789101112131415161718192021222324
  1. package("plusaes")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://kkayataka.github.io/plusaes/doc/index.html")
  4. set_description("Header only C++ AES cipher library")
  5. set_license("BSL-1.0")
  6. add_urls("https://github.com/kkAyataka/plusaes/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/kkAyataka/plusaes.git")
  8. add_versions("v1.0.0", "0e33e8d0e2ea5e6f9eb7a06093f576350ce8ef58339ce9de791514a8f433087d")
  9. on_install(function (package)
  10. os.cp("include", package:installdir())
  11. end)
  12. on_test(function (package)
  13. assert(package:check_cxxsnippets({test = [[
  14. #include <vector>
  15. #include <plusaes/plusaes.hpp>
  16. void test() {
  17. const std::vector<unsigned char> key = plusaes::key_from_string(&"EncryptionKey128");
  18. }
  19. ]]}))
  20. end)