buildroot/package/log4qt/log4qt.mk

32 lines
879 B
Makefile

################################################################################
#
# 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
# Uses __atomic_fetch_add_4
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
LOG4QT_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
endif
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
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))