Commit 79d4063d authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Korsgaard
Browse files

qextserialport: allow building with Qt5



qextserialport builds fine with both Qt4 and Qt5, so this commit
enables it for Qt5.

Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent b8eaeaec
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
config BR2_PACKAGE_QEXTSERIALPORT
	bool "qextserialport"
	# Qt is a big library, we don't want to select it
	# automatically without the user knowing
	depends on BR2_PACKAGE_QT
	depends on BR2_PACKAGE_QT || BR2_PACKAGE_QT5
	help
	  A Qt library to manage serial ports

+8 −2
Original line number Diff line number Diff line
@@ -10,13 +10,19 @@ QEXTSERIALPORT_SITE_METHOD = git

QEXTSERIALPORT_LICENSE = MIT

QEXTSERIALPORT_DEPENDENCIES = qt

QEXTSERIALPORT_INSTALL_STAGING = YES

ifeq ($(BR2_PACKAGE_QT),y)
QEXTSERIALPORT_DEPENDENCIES += qt
define QEXTSERIALPORT_CONFIGURE_CMDS
	(cd $(@D); $(TARGET_MAKE_ENV) $(QT_QMAKE))
endef
else ifeq ($(BR2_PACKAGE_QT5),y)
QEXTSERIALPORT_DEPENDENCIES += qt5base
define QEXTSERIALPORT_CONFIGURE_CMDS
	(cd $(@D); $(TARGET_MAKE_ENV) $(QT5_QMAKE))
endef
endif

define QEXTSERIALPORT_BUILD_CMDS
	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)