mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-12 05:11:59 +00:00
paho-mqtt-c: 1.2.1 -> 1.3.0
Switch to cmake instead of manually installing everything. Paho-mqtt still adds some unnecessary files into /usr we have to delete them. Signed-off-by: Pascal Bach <pascal.bach@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+6
-13
@@ -13,23 +13,16 @@ LIC_FILES_CHKSUM = " \
|
|||||||
|
|
||||||
SRC_URI = "git://github.com/eclipse/paho.mqtt.c;protocol=http"
|
SRC_URI = "git://github.com/eclipse/paho.mqtt.c;protocol=http"
|
||||||
|
|
||||||
SRCREV = "09fe0744e02f317b907e96dd5afcc02224ddbb85"
|
SRCREV = "9f715d0862a8e16099b5837c4e53a1bf6a6a0675"
|
||||||
|
|
||||||
DEPENDS = "openssl"
|
DEPENDS = "openssl"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
inherit cmake
|
||||||
|
|
||||||
do_install() {
|
do_install_append() {
|
||||||
install -d ${D}${libdir}
|
# paho-mqtt installes some thing that we don't want.
|
||||||
oe_libinstall -C build/output -so libpaho-mqtt3a ${D}${libdir}
|
rm -rf ${D}${prefix}/samples
|
||||||
oe_libinstall -C build/output -so libpaho-mqtt3as ${D}${libdir}
|
find ${D}${prefix} -maxdepth 1 -type f -delete
|
||||||
oe_libinstall -C build/output -so libpaho-mqtt3c ${D}${libdir}
|
|
||||||
oe_libinstall -C build/output -so libpaho-mqtt3cs ${D}${libdir}
|
|
||||||
install -d ${D}${includedir}
|
|
||||||
install -m 644 src/MQTTAsync.h ${D}${includedir}
|
|
||||||
install -m 644 src/MQTTClient.h ${D}${includedir}
|
|
||||||
install -m 644 src/MQTTClientPersistence.h ${D}${includedir}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user