Add libmosquitto dependency for MQTT publishing
This commit is contained in:
1 parent
175cb15254
commit
7161408af5
2 files changed
+7
No files matched your search
@@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libpopt-dev \
|
||||
libopus-dev \
|
||||
libgsm1-dev \
|
||||
libmosquitto-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /src
|
||||
@@ -28,6 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libpopt0 \
|
||||
libopus0 \
|
||||
libgsm1 \
|
||||
libmosquitto1 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=builder /src/build/bin/svxreflector /usr/bin/svxreflector
|
||||
|
||||
@@ -19,6 +19,11 @@ pkg_check_modules (JSONCPP REQUIRED jsoncpp)
|
||||
include_directories(${JSONCPP_INCLUDE_DIRS})
|
||||
set(LIBS ${LIBS} ${JSONCPP_LIBRARIES})
|
||||
|
||||
# Find mosquitto library (MQTT publishing)
|
||||
pkg_check_modules(MOSQUITTO REQUIRED libmosquitto)
|
||||
include_directories(${MOSQUITTO_INCLUDE_DIRS})
|
||||
set(LIBS ${LIBS} ${MOSQUITTO_LIBRARIES})
|
||||
|
||||
# Add project libraries
|
||||
set(LIBS asynccpp asyncaudio asynccore svxmisc ${LIBS})
|
||||
|
||||
|
||||
Reference in new issue
Block a user