1 Commits

Author SHA1 Message Date
b2ab66f160 Add port of mosquitto library 1.6.11 2020-08-13 18:44:37 +02:00
9 changed files with 67 additions and 45 deletions

View File

@@ -0,0 +1,2 @@
LIBMOSQUITTO_PORT_DIR := $(call select_from_ports,libmosquitto)
INC_DIR += $(LIBMOSQUITTO_PORT_DIR)/src/lib/libmosquitto/lib/ $(LIBMOSQUITTO_PORT_DIR)/src/lib/libmosquitto/lib/cpp

55
lib/mk/libmosquitto.mk Normal file
View File

@@ -0,0 +1,55 @@
LIBMOSQUITTO_DIR := $(call select_from_ports,libmosquitto)/src/lib/libmosquitto
SRC_LIBMOSQUITTO := actions.c \
callbacks.c \
connect.c \
handle_auth.c \
handle_connack.c \
handle_disconnect.c \
handle_ping.c \
handle_pubackcomp.c \
handle_publish.c \
handle_pubrec.c \
handle_pubrel.c \
handle_suback.c \
handle_unsuback.c \
helpers.c \
logging_mosq.c \
loop.c \
memory_mosq.c \
messages_mosq.c \
misc_mosq.c \
mosquitto.c \
net_mosq_ocsp.c net_mosq.c \
options.c \
packet_datatypes.c \
packet_mosq.c \
property_mosq.c \
read_handle.c \
send_connect.c \
send_disconnect.c \
send_mosq.c \
send_publish.c \
send_subscribe.c \
send_unsubscribe.c \
send_mosq.c \
socks_mosq.c \
srv_mosq.c \
thread_mosq.c \
time_mosq.c \
tls_mosq.c \
utf8_mosq.c \
util_mosq.c util_topic.c \
will_mosq.c
SRC_CC = $(addprefix $(LIBMOSQUITTO_DIR)/lib/, $(SRC_LIBMOSQUITTO)) $(LIBMOSQUITTO_DIR)/lib/cpp/mosquittopp.cpp
INC_DIR += $(LIBMOSQUITTO_DIR) $(LIBMOSQUITTO_DIR)/lib/ $(LIBMOSQUITTO_DIR)/lib/cpp/ $(LIBMOSQUITTO_DIR)/src/deps/
LIBS += stdcxx
SHARED_LIB = yes
CC_OPT += -O2
CC_CXX_WARN_STRICT =

View File

@@ -1,25 +0,0 @@
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 =

1
ports/libmosquitto.hash Normal file
View File

@@ -0,0 +1 @@
0e5baa57b60c36712e6f6d137e0161601c9405e4

9
ports/libmosquitto.port Normal file
View File

@@ -0,0 +1,9 @@
VERSION := 1.6.11
DOWNLOADS := mosquitto.archive
LICENSE := EPL/EDL
URL(mosquitto) := https://mosquitto.org/files/source/mosquitto-$(VERSION).tar.gz
SHA(mosquitto) := b02d8f1368c40d5779ee125c37daf9003608eb47d7fbb04c5b938c76c1230a1f
DIR(mosquitto) := src/lib/libmosquitto
PATCHES := src/lib/libmosquitto/net_mosq.c.patch

View File

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

View File

@@ -1,12 +0,0 @@
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

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

View File

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