blob: ea4f4d5468110a80ddb8b3a77ddee17e485e6c98 [file] [log] [blame]
Brad Bishop996bc452019-12-02 13:05:15 -05001DESCRIPTION = "Bluetooth library with attribute support"
2SECTION = "libs/network"
3
Patrick Williams93c203f2021-10-06 16:15:23 -05004LICENSE = "GPL-2.0+ | BSD-3-Clause"
5LIC_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
Brad Bishope42b3e32020-01-15 22:08:42 -050012SRC_URI = "git://github.com/labapart/gattlib.git \
13 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
26EXTRA_OECMAKE += "-DGATTLIB_BUILD_DOCS=OFF"
27
28inherit pkgconfig cmake
29
Patrick Williams213cb262021-08-07 19:21:33 -050030FILES:${PN} = "${libdir}/*"
Patrick Williams93c203f2021-10-06 16:15:23 -050031FILES:${PN}-dev = "${includedir}/* ${libdir}/pkgconfig"