We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cb40b2 commit 5a1f9daCopy full SHA for 5a1f9da
packages/l/libpopcnt/xmake.lua
@@ -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
0 commit comments