add digestpp (#2918)

* add digestpp

* Update xmake.lua

---------

Co-authored-by: Your Name <you@example.com>
pull/2920/head^2
xpxz 12 months ago committed by GitHub
parent ec775d6d72
commit 2a93e7eb3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      packages/d/digestpp/xmake.lua

@ -0,0 +1,22 @@
package("digestpp")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/kerukuro/digestpp")
set_description("C++11 header-only message digest library")
set_license("MIT")
add_urls("https://github.com/kerukuro/digestpp.git")
add_versions("2023.11.8", "ebb699402c244e22c3aff61d2239bcb2e87b8ef8")
on_install(function (package)
os.cp("*", package:installdir("include"))
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <iostream>
#include "digestpp.hpp"
void test() {
std::cout << digestpp::blake2b().absorb("The quick brown fox jumps over the lazy dog").hexdigest();
}
]]}, {configs = {languages = "c++17"}}))
end)
Loading…
Cancel
Save