Add hiredis build/runtime dependency for upcoming Redis backend
This commit is contained in:
1 parent
5708e2d0e8
commit
2877d6be79
2 files changed
+7
No files matched your search
@@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libopus-dev \
|
||||
libgsm1-dev \
|
||||
libmosquitto-dev \
|
||||
libhiredis-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /src
|
||||
@@ -30,6 +31,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libopus0 \
|
||||
libgsm1 \
|
||||
libmosquitto1 \
|
||||
libhiredis-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=builder /src/build/bin/svxreflector /usr/bin/svxreflector
|
||||
|
||||
@@ -24,6 +24,11 @@ pkg_check_modules(MOSQUITTO REQUIRED libmosquitto)
|
||||
include_directories(${MOSQUITTO_INCLUDE_DIRS})
|
||||
set(LIBS ${LIBS} ${MOSQUITTO_LIBRARIES})
|
||||
|
||||
# Find hiredis library (Redis C client)
|
||||
pkg_check_modules(HIREDIS REQUIRED hiredis)
|
||||
include_directories(${HIREDIS_INCLUDE_DIRS})
|
||||
set(LIBS ${LIBS} ${HIREDIS_LIBRARIES})
|
||||
|
||||
# Add project libraries
|
||||
set(LIBS asynccpp asyncaudio asynccore svxmisc ${LIBS})
|
||||
|
||||
|
||||
Reference in new issue
Block a user