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.
21 lines
614 B
21 lines
614 B
package("co") |
|
|
|
set_homepage("https://github.com/idealvin/co") |
|
set_description("Yet another libco and more.") |
|
|
|
add_urls("https://github.com/idealvin/co.git") |
|
|
|
on_install("macosx", "linux", "windows", function (package) |
|
import("package.tools.xmake").install(package) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
#include "co/def.h" |
|
#include "co/atomic.h" |
|
void test() { |
|
int32 i32 = 0; |
|
atomic_inc(&i32); |
|
} |
|
]]}, {configs = {languages = "c++11"}})) |
|
end)
|
|
|