package/libwebsockets: add libglib2 support
authorAdam Duskett <Aduskett@gmail.com>
Sun, 26 Jul 2020 02:29:00 +0000 (19:29 -0700)
committerYann E. MORIN <yann.morin.1998@free.fr>
Mon, 27 Jul 2020 07:02:28 +0000 (09:02 +0200)
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/libwebsockets/libwebsockets.mk

index 376321585bf28f19399ad1c647aaa1ec941d6fc0..a3fc12bcd4a205cdb653a5de24a1edf9b749c3ec 100644 (file)
@@ -12,7 +12,6 @@ LIBWEBSOCKETS_DEPENDENCIES = zlib
 LIBWEBSOCKETS_INSTALL_STAGING = YES
 LIBWEBSOCKETS_CONF_OPTS = \
        -DLWS_WITH_FSMOUNT=OFF \
-       -DLWS_WITH_GLIB=OFF \
        -DLWS_WITHOUT_TESTAPPS=ON \
        -DLWS_IPV6=ON \
        -DLWS_UNIX_SOCK=ON \
@@ -50,6 +49,13 @@ LIBWEBSOCKETS_CONF_OPTS += \
        -DLWS_WITH_LIBEVENT=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
+LIBWEBSOCKETS_DEPENDENCIES += libglib2
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_GLIB=ON
+else
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_GLIB=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_LIBUV),y)
 LIBWEBSOCKETS_DEPENDENCIES += libuv
 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBUV=ON