linux-syscall-support: add package (#2723)

* linux-syscall-support: add package

* improve include
pull/2725/head
star9029 1 year ago committed by GitHub
parent 1fe7dc084f
commit 27fc8f7e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      packages/l/linux-syscall-support/xmake.lua

@ -0,0 +1,15 @@
package("linux-syscall-support")
set_homepage("https://chromium.googlesource.com/linux-syscall-support")
set_description("Linux Syscall Support provides a header file that can be included into your application whenever you need to make direct system calls.")
set_license("BSD-3-Clause")
add_urls("https://chromium.googlesource.com/linux-syscall-support.git")
add_versions("v2022.10.12", "9719c1e1e676814c456b55f5f070eabad6709d31")
on_install("linux", function (package)
os.cp("linux_syscall_support.h", package:installdir("include/lss"))
end)
on_test(function (package)
assert(package:has_cfuncs("sys_open", {includes = "lss/linux_syscall_support.h"}))
end)
Loading…
Cancel
Save