ruki пре 3 година
родитељ
комит
c0f6d8e2cd
1 измењених фајлова са 19 додато и 0 уклоњено
  1. 19 0
      packages/r/readerwriterqueue/xmake.lua

+ 19 - 0
packages/r/readerwriterqueue/xmake.lua

@@ -0,0 +1,19 @@
+package("readerwriterqueue")
+
+    set_kind("library", {headeronly = true})
+    set_homepage("https://github.com/cameron314/readerwriterqueue")
+    set_description("A fast single-producer, single-consumer lock-free queue for C++")
+    set_license("BSD-3-Clause")
+
+    set_urls("https://github.com/cameron314/readerwriterqueue/archive/refs/tags/$(version).tar.gz",
+             "https://github.com/cameron314/readerwriterqueue.git")
+
+    add_versions("v1.0.6", "fc68f55bbd49a8b646462695e1777fb8f2c0b4f342d5e6574135211312ba56c1")
+
+    on_install(function (package)
+        os.cp("*.h", package:installdir("include"))
+    end)
+
+    on_test(function (package)
+        assert(package:has_cxxtypes("moodycamel::ReaderWriterQueue<int>", {includes = "readerwriterqueue.h"}))
+    end)