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
1008 B
25 lines
1008 B
3 years ago
|
package("unordered_dense")
|
||
|
set_kind("library", {headeronly = true})
|
||
|
set_homepage("https://github.com/martinus/unordered_dense")
|
||
|
set_description("A fast & densely stored hashmap and hashset based on robin-hood backward shift deletion.")
|
||
|
set_license("MIT")
|
||
|
|
||
|
add_urls("https://github.com/martinus/unordered_dense/archive/refs/tags/$(version).tar.gz",
|
||
|
"https://github.com/martinus/unordered_dense.git")
|
||
|
add_versions("v1.1.0", "b47d8590afdc32b306272a6bcb15d5464462f3cd3d44653648924a1e10d1e78c")
|
||
|
|
||
|
add_deps("cmake")
|
||
|
on_install(function (package)
|
||
|
import("package.tools.cmake").install(package)
|
||
|
os.cp("include", package:installdir())
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:check_cxxsnippets({test = [[
|
||
|
void test() {
|
||
|
ankerl::unordered_dense::map<int, int> map;
|
||
|
map[123] = 333;
|
||
|
}
|
||
|
]]}, {configs = {languages = "c++17"}, includes = "ankerl/unordered_dense.h"}))
|
||
|
end)
|