package/log4qt: new package

Log4Qt is a C++ port of the Apache Software Foundation
Log4j package using the Qt Framework.

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Bartosz Bilas 2021-02-17 20:49:59 +01:00 committed by Thomas Petazzoni
parent df18d209b4
commit 9eede622dd
5 changed files with 37 additions and 0 deletions

View File

@ -262,6 +262,7 @@ F: package/python-canopen/
N: Bartosz Bilas <b.bilas@grinn-global.com>
F: board/stmicroelectronics/stm32mp157a-dk1/
F: configs/stm32mp157a_dk1_defconfig
F: package/log4qt/
F: package/python-esptool/
F: package/python-pyaes/
F: package/ttyd/

View File

@ -1663,6 +1663,7 @@ menu "Logging"
source "package/log4cplus/Config.in"
source "package/log4cpp/Config.in"
source "package/log4cxx/Config.in"
source "package/log4qt/Config.in"
source "package/opentracing-cpp/Config.in"
source "package/spdlog/Config.in"
source "package/zlog/Config.in"

12
package/log4qt/Config.in Normal file
View File

@ -0,0 +1,12 @@
config BR2_PACKAGE_LOG4QT
bool "log4qt"
depends on BR2_PACKAGE_QT5
help
Log4Qt is a C++ port of the Apache Software Foundation
Log4j package using the Qt Framework. It is intended to be
used by open source and commercial Qt projects.
https://github.com/MEONMedical/Log4Qt
comment "log4qt needs qt5"
depends on !BR2_PACKAGE_QT5

View File

@ -0,0 +1,3 @@
# Locally computed:
sha256 ff17b794ca7d5290a150a53f6272e6a30a7f4d942aa58298a8328bf10a65858a log4qt-1.5.1.tar.gz
sha256 c6596eb7be8581c18be736c846fb9173b69eccf6ef94c5135893ec56bd92ba08 LICENSE

20
package/log4qt/log4qt.mk Normal file
View File

@ -0,0 +1,20 @@
################################################################################
#
# log4qt
#
################################################################################
LOG4QT_VERSION = 1.5.1
LOG4QT_SITE = $(call github,MEONMedical,Log4Qt,v$(LOG4QT_VERSION))
LOG4QT_DEPENDENCIES = qt5base
LOG4QT_LICENSE = Apache-2.0
LOG4QT_LICENSE_FILES = LICENSE
LOG4QT_INSTALL_STAGING = YES
ifeq ($(BR2_PACKAGE_QT5BASE_SQLITE_QT)$(BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM),y)
LOG4QT_CONF_OPTS += -DBUILD_WITH_DB_LOGGING=ON
else
LOG4QT_CONF_OPTS += -DBUILD_WITH_DB_LOGGING=OFF
endif
$(eval $(cmake-package))