Add port of mosquitto library 1.6.11

This commit is contained in:
2020-08-13 18:44:37 +02:00
parent f19ecb0650
commit b2ab66f160
4 changed files with 67 additions and 0 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 =

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