summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2018-06-10 13:54:34 (GMT)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-07-01 12:41:10 (GMT)
commite46257264ed773a9c2b94e0e4f0131187a8940ba (patch)
tree73ff8fcb1b4ffd3136c900338bcd77e88505e62f
parent9d912e619d48a7dfaed29d490bf389603974cfd2 (diff)
downloadbuildroot-e46257264ed773a9c2b94e0e4f0131187a8940ba.tar.gz
buildroot-e46257264ed773a9c2b94e0e4f0131187a8940ba.tar.bz2
libwebsockets: add optional libevent dependency
libevent is supported since 2.3.0 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/libwebsockets/libwebsockets.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/libwebsockets/libwebsockets.mk b/package/libwebsockets/libwebsockets.mk
index 28fd183..81e398b 100644
--- a/package/libwebsockets/libwebsockets.mk
+++ b/package/libwebsockets/libwebsockets.mk
@@ -35,6 +35,13 @@ else
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEV=OFF
endif
+ifeq ($(BR2_PACKAGE_LIBEVENT),y)
+LIBWEBSOCKETS_DEPENDENCIES += libevent
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEVENT=ON
+else
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBEVENT=OFF
+endif
+
ifeq ($(BR2_PACKAGE_LIBUV),y)
LIBWEBSOCKETS_DEPENDENCIES += libuv
LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBUV=ON