package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
989 B
25 lines
989 B
3 years ago
|
package("robin-hood-hashing")
|
||
|
|
||
|
set_kind("library", {headeronly = true})
|
||
|
set_homepage("https://github.com/martinus/robin-hood-hashing")
|
||
|
set_description("Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20")
|
||
|
set_license("MIT")
|
||
|
|
||
|
add_urls("https://github.com/martinus/robin-hood-hashing/archive/refs/tags/$(version).tar.gz",
|
||
|
"https://github.com/martinus/robin-hood-hashing.git")
|
||
|
add_versions("3.11.3", "dcf2b7fa9ef9dd0c67102d94c28e8df3effbe1845e0ed1f31f4772ca5e857fc4")
|
||
|
|
||
|
add_deps("cmake")
|
||
|
on_install(function (package)
|
||
|
import("package.tools.cmake").install(package, {"-DRH_STANDALONE_PROJECT=OFF"})
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:check_cxxsnippets({test = [[
|
||
|
void test() {
|
||
|
robin_hood::unordered_flat_map<int, int> map;
|
||
|
map[123] = 333;
|
||
|
}
|
||
|
]]}, {configs = {languages = "c++14"}, includes = "robin_hood.h"}))
|
||
|
end)
|