* Add ck

* Update xmake.lua

Co-authored-by: ruki <waruqi@gmail.com>
pull/822/head
Kelvin Zhang 3 years ago committed by GitHub
parent ce6c5b9f42
commit d868f92cf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      packages/c/ck/xmake.lua

@ -0,0 +1,23 @@
package("ck")
set_homepage("http://concurrencykit.org/")
set_description("Concurrency primitives, safe memory reclamation mechanisms and non-blocking (including lock-free) data structures designed to aid in the research, design and implementation of high performance concurrent systems developed in C99+.")
add_urls("https://github.com/concurrencykit/ck/archive/refs/tags/$(version).tar.gz",
"https://github.com/concurrencykit/ck.git")
add_versions("0.7.1", "97d2a21d5326ef79b4668be2e6eda6284ee77a64c0981b35fd9695c736c3d4ac")
on_install("macosx", "linux", function (package)
local configs = {}
if package:config("shared") then
table.insert(configs, "--disable-static")
end
local cxflags
if package:is_plat("linux") and package:config("pic") ~= false then
cxflags = "-fpic"
end
import("package.tools.autoconf").install(package, configs, {cxflags = cxflags})
end)
on_test(function (package)
assert(package:has_cfuncs("ck_barrier_combining_init", {includes = "ck_barrier.h"}))
end)
Loading…
Cancel
Save