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
936 B
27 lines
936 B
1 year ago
|
package("bluez")
|
||
|
set_homepage("http://www.bluez.org")
|
||
|
set_description("Library for the Bluetooth protocol stack for Linux")
|
||
|
set_license("GPL-2.0")
|
||
|
|
||
|
add_urls("https://git.kernel.org/pub/scm/bluetooth/bluez.git")
|
||
|
add_versions("5.68", "d764f78f27653bc1df71c462e9aca7a18bc75f9f")
|
||
|
|
||
|
on_install("linux", function (package)
|
||
|
os.cp("lib/*.h", "bluetooth/")
|
||
|
io.writefile("xmake.lua", [[
|
||
|
target("bluez")
|
||
|
set_kind("$(kind)")
|
||
|
add_files("lib/*.c")
|
||
|
add_includedirs(".")
|
||
|
add_headerfiles("lib/(*.h)", {prefixdir = "bluetooth"})
|
||
|
]])
|
||
|
|
||
|
local configs = {}
|
||
|
configs.kind = package:config("shared") and "shared" or "static"
|
||
|
import("package.tools.xmake").install(package, configs)
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:has_cfuncs("str2ba", {includes = "bluetooth/bluetooth.h"}))
|
||
|
end)
|