package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
775 B
20 lines
775 B
3 years ago
|
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)
|