1 Commits

Author SHA1 Message Date
b914077d3f Add port files for Paho MQTT c++ library 2020-08-13 16:42:27 +02:00
5 changed files with 45 additions and 0 deletions

25
lib/mk/libpahomqttcpp.mk Normal file
View File

@@ -0,0 +1,25 @@
LIBPAHOMQTTCPP_DIR := $(call select_from_ports,libpahomqttcpp)/src/lib/libpahomqttcpp
vpath %.cpp $(LIBPAHOMQTTCPP_DIR)/src
INC_DIR += $(LIBPAHOMQTTCPP_DIR)/src
INC_DIR += $(LIBPAHOMQTTCPP_DIR)/pahomqttc/src
SRC_CC = async_client.cpp \
client.cpp \
connect_options.cpp \
disconnect_options.cpp \
iclient_persistence.cpp \
message.cpp \
properties.cpp \
response_options.cpp \
ssl_options.cpp \
string_collection.cpp \
subscribe_options.cpp \
token.cpp \
topic.cpp \
will_options.cpp
LIBS += libc stdcxx
CC_CXX_WARN_STRICT =

View File

@@ -0,0 +1 @@
05afc133ad189a20f561f811fcb78dbc370ccd08

12
ports/libpahomqttcpp.port Normal file
View File

@@ -0,0 +1,12 @@
VERSION := git
DOWNLOADS := libpahomqttcpp.git libpahomqttc.git
LICENSE := EPL
URL(libpahomqttcpp) := https://github.com/eclipse/paho.mqtt.cpp
REV(libpahomqttcpp) := 0e44dd31ff725d66df4a928d50a26309626dcfd5
DIR(libpahomqttcpp) := src/lib/libpahomqttcpp
URL(libpahomqttc) := https://github.com/eclipse/paho.mqtt.c
REV(libpahomqttc) := 153dfd3a4a1d510697c5d55e169fa158db16e04a
DIR(libpahomqttc) := src/lib/libpahomqttcpp/pahomqttc

View File

@@ -0,0 +1,2 @@
int main(int argc, char* argv[]) {
}

View File

@@ -0,0 +1,5 @@
TARGET = test-libpahomqttcpp
LIBS = libpahomqttcpp
SRC_CC = main.cc
CC_CXX_WARN_STRICT =