2021-02-17 20:49:59 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2021-05-05 20:10:12 +02:00
|
|
|
# Uses __atomic_fetch_add_4
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
|
LOG4QT_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
|
|
|
|
endif
|
|
|
|
|
2021-02-17 20:49:59 +01:00
|
|
|
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
|
|
|
|
|
2021-05-05 21:22:10 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE_NETWORK),y)
|
|
|
|
LOG4QT_CONF_OPTS += -DBUILD_WITH_TELNET_LOGGING=ON
|
|
|
|
else
|
|
|
|
LOG4QT_CONF_OPTS += -DBUILD_WITH_TELNET_LOGGING=OFF
|
|
|
|
endif
|
|
|
|
|
2021-02-17 20:49:59 +01:00
|
|
|
$(eval $(cmake-package))
|