aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/gattlib/gattlib_git.bb
diff options
context:
space:
mode:
authorDaniels Umanovskis <du@axentia.se>2019-11-28 12:17:53 +0000
committerKhem Raj <raj.khem@gmail.com>2019-11-29 16:41:22 -0800
commite725436832fde304ff14e59dc241c41ba9933c45 (patch)
treebbf349dd226840eac7cb09cc34ec3320e0129257 /meta-oe/recipes-connectivity/gattlib/gattlib_git.bb
parent2c83141421155b9dc0d849cd19170fa80703eb21 (diff)
downloadmeta-openembedded-contrib-e725436832fde304ff14e59dc241c41ba9933c45.tar.gz
meta-openembedded-contrib-e725436832fde304ff14e59dc241c41ba9933c45.tar.bz2
meta-openembedded-contrib-e725436832fde304ff14e59dc241c41ba9933c45.zip
gattlib: add recipe
gattlib is a C library for talking to Bluetooth, including BLE, devices. It's the only free, embedded-appropriate library for easily scanning BLE devices and subscribing to their notifications Signed-off-by: Daniels Umanovskis <du@axentia.se> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-connectivity/gattlib/gattlib_git.bb')
-rw-r--r--meta-oe/recipes-connectivity/gattlib/gattlib_git.bb30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/gattlib/gattlib_git.bb b/meta-oe/recipes-connectivity/gattlib/gattlib_git.bb
new file mode 100644
index 0000000000..0e6fce9c91
--- /dev/null
+++ b/meta-oe/recipes-connectivity/gattlib/gattlib_git.bb
@@ -0,0 +1,30 @@
+DESCRIPTION = "Bluetooth library with attribute support"
+SECTION = "libs/network"
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://CMakeLists.txt;beginline=1;endline=20;md5=8d5efeb9189b60866baff80ff791bf00"
+
+DEPENDS = "bluez5 glib-2.0"
+DEPENDS += "glib-2.0-native"
+
+PV = "0.2+git${SRCPV}"
+
+SRC_URI = "git://github.com/labapart/gattlib.git"
+SRC_URI += "file://dbus-avoid-strange-chars-from-the-build-dir.patch"
+
+SRCBRANCH = "master"
+SRCREV = "c6a33252221dff904cf277e085e2ce70aced8788"
+
+S = "${WORKDIR}/git"
+
+PACKAGECONFIG[examples] = "-DGATTLIB_BUILD_EXAMPLES=ON,-DGATTLIB_BUILD_EXAMPLES=OFF"
+
+# Set this to force use of DBus API if Bluez version is older than 5.42
+PACKAGECONFIG[force-dbus] = "-DGATTLIB_FORCE_DBUS=TRUE,-DGATTLIB_FORCE_DBUS=FALSE"
+
+EXTRA_OECMAKE += "-DGATTLIB_BUILD_DOCS=OFF"
+
+inherit pkgconfig cmake
+
+FILES_${PN} = "${libdir}/* ${includedir}/*"
+FILES_${PN}-dev = "${includedir}/*"