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.
27 lines
1.2 KiB
27 lines
1.2 KiB
package("atomic_queue") |
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://github.com/max0x7ba/atomic_queue") |
|
set_description("C++ lockless queue.") |
|
set_license("MIT") |
|
|
|
add_urls("https://github.com/max0x7ba/atomic_queue/archive/refs/tags/$(version).tar.gz", |
|
"https://github.com/max0x7ba/atomic_queue.git") |
|
add_versions("v1.6.4", "e9c3ae4b850dc6503ee484748701f06f3737ad177c5cb31030f74e3fef40e282") |
|
add_versions("v1.5", "599b76a0222e7b54118d6f0fb686845c9d323107f2de76b3f68292b057e5a99f") |
|
add_versions("v1.6.3", "0ad6e0203d90367f6a4e496449dfd9ad65b80168fadafef4eac08820c6bda79c") |
|
|
|
on_install(function (package) |
|
os.cp("include/atomic_queue/", package:installdir("include")) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
#include <iostream> |
|
int test(int argc, char* argv[]) { |
|
using Queue = atomic_queue::AtomicQueue<uint32_t, 1024>; |
|
Queue q{}; |
|
q.try_push(10); |
|
return 0; |
|
} |
|
]]}, {configs = {languages = "cxx14"}, includes = "atomic_queue/atomic_queue.h"})) |
|
end)
|
|
|