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.

24 lines
965 B

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.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)