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.
18 lines
691 B
18 lines
691 B
package("libpopcnt") |
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://github.com/kimwalisch/libpopcnt") |
|
set_description("🚀 Fast C/C++ bit population count library") |
|
set_license("BSD-2-Clause") |
|
|
|
add_urls("https://github.com/kimwalisch/libpopcnt/archive/refs/tags/$(version).tar.gz", |
|
"https://github.com/kimwalisch/libpopcnt.git") |
|
|
|
add_versions("v3.1", "b4ea061f4c2e5385dff0dd032ad5a16c60dc0dd050391283afb463c0d62c19bd") |
|
|
|
on_install(function (package) |
|
os.cp("libpopcnt.h", package:installdir("include")) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:has_cfuncs("popcnt", {includes = "libpopcnt.h"})) |
|
end)
|
|
|