package/log4qt: add telnet optional logging
authorBartosz Bilas <b.bilas@grinn-global.com>
Wed, 5 May 2021 19:22:10 +0000 (21:22 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 11 May 2021 11:23:28 +0000 (13:23 +0200)
Telnet logging is an optional feature that's disabled by default.

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/log4qt/log4qt.mk

index 0594427cf7538b72d5871c46a16df50a65ed1065..7144d33e330c70b847e3aad3d226d851fd558e7d 100644 (file)
@@ -22,4 +22,10 @@ else
 LOG4QT_CONF_OPTS += -DBUILD_WITH_DB_LOGGING=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_QT5BASE_NETWORK),y)
+LOG4QT_CONF_OPTS += -DBUILD_WITH_TELNET_LOGGING=ON
+else
+LOG4QT_CONF_OPTS += -DBUILD_WITH_TELNET_LOGGING=OFF
+endif
+
 $(eval $(cmake-package))