blob: 1ba7dd4afcb8ac8fe92c168af8d70f5b84c3b4bb [file] [log] [blame]
Brad Bishop996bc452019-12-02 13:05:15 -05001DESCRIPTION = "Bluetooth library with attribute support"
2SECTION = "libs/network"
3
Andrew Geissler9aee5002022-03-30 16:27:02 +00004LICENSE = "GPL-2.0-or-later | BSD-3-Clause"
Patrick Williams93c203f2021-10-06 16:15:23 -05005LIC_FILES_CHKSUM = "file://CMakeLists.txt;beginline=1;endline=6;md5=71fdd2be76b4e95fe28324a70d4981c5"
Brad Bishop996bc452019-12-02 13:05:15 -05006
7DEPENDS = "bluez5 glib-2.0"
8DEPENDS += "glib-2.0-native"
9
10PV = "0.2+git${SRCPV}"
11
Andrew Geissler595f6302022-01-24 19:11:47 +000012SRC_URI = "git://github.com/labapart/gattlib.git;branch=master;protocol=https \
Brad Bishope42b3e32020-01-15 22:08:42 -050013 file://dbus-avoid-strange-chars-from-the-build-dir.patch \
Brad Bishope42b3e32020-01-15 22:08:42 -050014 "
Brad Bishop996bc452019-12-02 13:05:15 -050015
16SRCBRANCH = "master"
Patrick Williams93c203f2021-10-06 16:15:23 -050017SRCREV = "fa54ae42ccb3d8f911e00b02ed1e581537e47f79"
Brad Bishop996bc452019-12-02 13:05:15 -050018
19S = "${WORKDIR}/git"
20
21PACKAGECONFIG[examples] = "-DGATTLIB_BUILD_EXAMPLES=ON,-DGATTLIB_BUILD_EXAMPLES=OFF"
22
23# Set this to force use of DBus API if Bluez version is older than 5.42
24PACKAGECONFIG[force-dbus] = "-DGATTLIB_FORCE_DBUS=TRUE,-DGATTLIB_FORCE_DBUS=FALSE"
25
Andrew Geissler595f6302022-01-24 19:11:47 +000026EXTRA_OECMAKE += "-DGATTLIB_PYTHON_INTERFACE=OFF"
Brad Bishop996bc452019-12-02 13:05:15 -050027EXTRA_OECMAKE += "-DGATTLIB_BUILD_DOCS=OFF"
28
29inherit pkgconfig cmake
30
Patrick Williams213cb262021-08-07 19:21:33 -050031FILES:${PN} = "${libdir}/*"
Patrick Williams93c203f2021-10-06 16:15:23 -050032FILES:${PN}-dev = "${includedir}/* ${libdir}/pkgconfig"