Skip to content
Snippets Groups Projects
Commit b3d24e08 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Add support for WITHOUT_MOSQUITTO

I'm doing builds for my jail (which doesn't have libmosquitto) on
my system that does have it now, so I need to disable it manually.
parent 44c3350f
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4437 failed
...@@ -89,12 +89,14 @@ ifeq ($(os),linux) ...@@ -89,12 +89,14 @@ ifeq ($(os),linux)
CON_LIBS += -lsystemd CON_LIBS += -lsystemd
endif endif
endif endif
ifneq ($(os), win32) ifndef WITHOUT_MOSQUITTO
ifeq ($(shell pkg-config libmosquitto --exists && echo "yes"),yes) ifneq ($(os), win32)
CFLAGS += -DUSE_MOSQUITTO ifeq ($(shell pkg-config libmosquitto --exists && echo "yes"),yes)
CFLAGS += $(shell pkg-config libmosquitto --cflags) CFLAGS += -DUSE_MOSQUITTO
CON_LIBS += $(shell pkg-config libmosquitto --libs) CFLAGS += $(shell pkg-config libmosquitto --cflags)
JS_LIBS += $(shell pkg-config libmosquitto --libs) CON_LIBS += $(shell pkg-config libmosquitto --libs)
JS_LIBS += $(shell pkg-config libmosquitto --libs)
endif
endif endif
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment