xmake.lua 1.2 KB

123456789101112131415161718192021222324
  1. package("ck")
  2. set_homepage("http://concurrencykit.org/")
  3. 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+.")
  4. add_urls("https://github.com/concurrencykit/ck/archive/refs/tags/$(version).tar.gz",
  5. "https://github.com/concurrencykit/ck.git")
  6. add_versions("0.7.2", "568ebe0bc1988a23843fce6426602e555b7840bf6714edcdf0ed530214977f1b")
  7. add_versions("0.7.1", "97d2a21d5326ef79b4668be2e6eda6284ee77a64c0981b35fd9695c736c3d4ac")
  8. on_install("macosx", "linux", function (package)
  9. local configs = {}
  10. if package:config("shared") then
  11. table.insert(configs, "--disable-static")
  12. end
  13. local cxflags
  14. if package:is_plat("linux") and package:config("pic") ~= false then
  15. cxflags = "-fpic"
  16. end
  17. import("package.tools.autoconf").install(package, configs, {cxflags = cxflags})
  18. end)
  19. on_test(function (package)
  20. assert(package:has_cfuncs("ck_barrier_combining_init", {includes = "ck_barrier.h"}))
  21. end)