Skip to content

Commit 5a1f9da

Browse files
libpopcnt: add package (#4541)
1 parent 9cb40b2 commit 5a1f9da

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/l/libpopcnt/xmake.lua

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package("libpopcnt")
2+
set_kind("library", {headeronly = true})
3+
set_homepage("https://github.com/kimwalisch/libpopcnt")
4+
set_description("🚀 Fast C/C++ bit population count library")
5+
set_license("BSD-2-Clause")
6+
7+
add_urls("https://github.com/kimwalisch/libpopcnt/archive/refs/tags/$(version).tar.gz",
8+
"https://github.com/kimwalisch/libpopcnt.git")
9+
10+
add_versions("v3.1", "b4ea061f4c2e5385dff0dd032ad5a16c60dc0dd050391283afb463c0d62c19bd")
11+
12+
on_install(function (package)
13+
os.cp("libpopcnt.h", package:installdir("include"))
14+
end)
15+
16+
on_test(function (package)
17+
assert(package:has_cfuncs("popcnt", {includes = "libpopcnt.h"}))
18+
end)

0 commit comments

Comments
 (0)