* Add frozen

* frozen: fix download url
pull/1140/head
Jérôme Leclercq 3 years ago committed by GitHub
parent b4591998c7
commit a73dc9a151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 26
      packages/f/frozen/xmake.lua

@ -0,0 +1,26 @@
package("frozen")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/serge-sans-paille/frozen")
set_description("A header-only, constexpr alternative to gperf for C++14 users")
set_license("Apache-2.0")
set_urls("https://github.com/serge-sans-paille/frozen/archive/refs/tags/$(version).tar.gz",
"https://github.com/serge-sans-paille/frozen.git")
add_versions("1.1.1", "f7c7075750e8fceeac081e9ef01944f221b36d9725beac8681cbd2838d26be45")
on_install(function (package)
os.cp("include/frozen", package:installdir("include"))
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
constexpr frozen::set<int, 4> some_ints = {1,2,3,5};
void test()
{
constexpr bool letitgo = some_ints.count(8);
}
]]}, {configs = {languages = "c++14"}, includes = { "frozen/set.h"} }))
end)
Loading…
Cancel
Save