package/paho-mqtt-cpp: new package
Signed-off-by: Refik Tuzakli <refik.tuzakli@savronik.com.tr> [Thomas: - add missing dependency on BR2_TOOLCHAIN_HAS_GCC_BUG_64735 and corresponding Config.in comment - add missing dependency on BR2_INSTALL_LIBSTDCPP and update Config.in comment - add comment to explain why -DTHREADS_PTHREAD_ARG=OFF is passed in CONF_OPTS] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
3d0b60e656
commit
3d638d26d9
@ -1839,6 +1839,9 @@ N: Rahul Jain <rahul.jain@imgtec.com>
|
|||||||
F: package/uhttpd/
|
F: package/uhttpd/
|
||||||
F: package/ustream-ssl/
|
F: package/ustream-ssl/
|
||||||
|
|
||||||
|
N: Refik Tuzakli <refik.tuzakli@savronik.com.tr>
|
||||||
|
F: package/paho-mqtt-cpp/
|
||||||
|
|
||||||
N: Rémi Rérolle <remi.rerolle@gmail.com>
|
N: Rémi Rérolle <remi.rerolle@gmail.com>
|
||||||
F: package/libfreeimage/
|
F: package/libfreeimage/
|
||||||
|
|
||||||
|
@ -1603,6 +1603,7 @@ menu "Networking"
|
|||||||
source "package/openzwave/Config.in"
|
source "package/openzwave/Config.in"
|
||||||
source "package/ortp/Config.in"
|
source "package/ortp/Config.in"
|
||||||
source "package/paho-mqtt-c/Config.in"
|
source "package/paho-mqtt-c/Config.in"
|
||||||
|
source "package/paho-mqtt-cpp/Config.in"
|
||||||
source "package/qdecoder/Config.in"
|
source "package/qdecoder/Config.in"
|
||||||
source "package/qpid-proton/Config.in"
|
source "package/qpid-proton/Config.in"
|
||||||
source "package/rabbitmq-c/Config.in"
|
source "package/rabbitmq-c/Config.in"
|
||||||
|
19
package/paho-mqtt-cpp/Config.in
Normal file
19
package/paho-mqtt-cpp/Config.in
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
config BR2_PACKAGE_PAHO_MQTT_CPP
|
||||||
|
bool "paho-mqtt-cpp"
|
||||||
|
depends on !BR2_STATIC_LIBS # dlopen()
|
||||||
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||||
|
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::future
|
||||||
|
depends on BR2_INSTALL_LIBSTDCPP
|
||||||
|
select BR2_PACKAGE_PAHO_MQTT_C
|
||||||
|
help
|
||||||
|
MQTT client C++ library
|
||||||
|
|
||||||
|
https://eclipse.org/paho/clients/cpp/
|
||||||
|
|
||||||
|
comment "paho-mqtt-cpp needs a toolchain w/ threads, C++, dynamic library support"
|
||||||
|
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||||
|
!BR2_INSTALL_LIBSTDCPP
|
||||||
|
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
||||||
|
|
||||||
|
comment "paho-mqtt-cpp needs a toolchain not affected by GCC bug 64735"
|
||||||
|
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
4
package/paho-mqtt-cpp/paho-mqtt-cpp.hash
Normal file
4
package/paho-mqtt-cpp/paho-mqtt-cpp.hash
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Locally computed:
|
||||||
|
sha256 9f78afb988e9ce9bb7cb74805053221efbb073b74683e222d1d087633178b51f paho-mqtt-cpp-v1.0.0.tar.gz
|
||||||
|
sha256 83bbba033dc985487e321b6dfde111772affb73460be48726299fed3da684b1c edl-v10
|
||||||
|
sha256 44277b2bec6093e4ac313afec251a4de599d24c4e768f8574d95b13a9d2d97b5 epl-v10
|
25
package/paho-mqtt-cpp/paho-mqtt-cpp.mk
Normal file
25
package/paho-mqtt-cpp/paho-mqtt-cpp.mk
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# paho-mqtt-cpp
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
PAHO_MQTT_CPP_VERSION = v1.0.0
|
||||||
|
PAHO_MQTT_CPP_SITE = $(call github,eclipse,paho.mqtt.cpp,$(PAHO_MQTT_CPP_VERSION))
|
||||||
|
PAHO_MQTT_CPP_LICENSE = EPL-1.0 or BSD-3-Clause
|
||||||
|
PAHO_MQTT_CPP_LICENSE_FILES = epl-v10 edl-v10
|
||||||
|
PAHO_MQTT_CPP_INSTALL_STAGING = YES
|
||||||
|
PAHO_MQTT_CPP_DEPENDENCIES = paho-mqtt-c
|
||||||
|
|
||||||
|
# The following CMake variable disables a TRY_RUN call in the -pthread
|
||||||
|
# test which is not allowed when cross-compiling (for cmake < 3.10)
|
||||||
|
PAHO_MQTT_CPP_CONF_OPTS = -DTHREADS_PTHREAD_ARG=OFF
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||||
|
PAHO_MQTT_CPP_DEPENDENCIES += openssl
|
||||||
|
PAHO_MQTT_CPP_CONF_OPTS += -DPAHO_WITH_SSL=TRUE
|
||||||
|
else
|
||||||
|
PAHO_MQTT_CPP_CONF_OPTS += -DPAHO_WITH_SSL=FALSE
|
||||||
|
endif
|
||||||
|
|
||||||
|
$(eval $(cmake-package))
|
Loading…
Reference in New Issue
Block a user