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

package("liburing")
set_homepage("https://github.com/axboe/liburing")
set_description("liburing provides helpers to setup and teardown io_uring instances")
add_urls("https://github.com/axboe/liburing/archive/refs/tags/liburing-$(version).tar.gz",
"https://github.com/axboe/liburing.git")
add_versions("2.4", "2398ec82d967a6f903f3ae1fd4541c754472d3a85a584dc78c5da2fabc90706b")
add_versions("2.3", "60b367dbdc6f2b0418a6e0cd203ee0049d9d629a36706fcf91dfb9428bae23c8")
add_versions("2.2", "e092624af6aa244ade2d52181cc07751ac5caba2f3d63e9240790db9ed130bbc")
add_versions("2.1", "f1e0500cb3934b0b61c5020c3999a973c9c93b618faff1eba75aadc95bb03e07")
-- liburing doesn't support building as a shared lib
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
on_install("linux", function (package)
local cflags
if package:config("pic") ~= false then
cflags = "-fPIC"
end
import("package.tools.autoconf").install(package, {}, {makeconfigs = {CFLAGS = cflags}})
end)
on_test(function (package)
assert(package:has_cfuncs("io_uring_submit", {includes = "liburing.h"}))
end)