aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2018-06-10 15:54:34 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-07-19 12:11:55 +0200
commit708b3d44195de42fc93f48ce7563e792e05ceb48 (patch)
tree4fecf89c7814da55feb2e28635cfeb44f47e56c4
parent7d3f0d22e45798a0b9e38a593dd6802359e58c56 (diff)
downloadbuildroot-708b3d44195de42fc93f48ce7563e792e05ceb48.tar.gz
buildroot-708b3d44195de42fc93f48ce7563e792e05ceb48.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> (cherry picked from commit e46257264ed773a9c2b94e0e4f0131187a8940ba) Signed-off-by: Peter Korsgaard <peter@korsgaard.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 28fd183393..81e398bedd 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