mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
qextserialport: allow building with Qt5
qextserialport builds fine with both Qt4 and Qt5, so this commit enables it for Qt5. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
b8eaeaec8c
commit
79d4063d78
@ -1,8 +1,6 @@
|
|||||||
config BR2_PACKAGE_QEXTSERIALPORT
|
config BR2_PACKAGE_QEXTSERIALPORT
|
||||||
bool "qextserialport"
|
bool "qextserialport"
|
||||||
# Qt is a big library, we don't want to select it
|
depends on BR2_PACKAGE_QT || BR2_PACKAGE_QT5
|
||||||
# automatically without the user knowing
|
|
||||||
depends on BR2_PACKAGE_QT
|
|
||||||
help
|
help
|
||||||
A Qt library to manage serial ports
|
A Qt library to manage serial ports
|
||||||
|
|
||||||
|
@ -10,13 +10,19 @@ QEXTSERIALPORT_SITE_METHOD = git
|
|||||||
|
|
||||||
QEXTSERIALPORT_LICENSE = MIT
|
QEXTSERIALPORT_LICENSE = MIT
|
||||||
|
|
||||||
QEXTSERIALPORT_DEPENDENCIES = qt
|
|
||||||
|
|
||||||
QEXTSERIALPORT_INSTALL_STAGING = YES
|
QEXTSERIALPORT_INSTALL_STAGING = YES
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_QT),y)
|
||||||
|
QEXTSERIALPORT_DEPENDENCIES += qt
|
||||||
define QEXTSERIALPORT_CONFIGURE_CMDS
|
define QEXTSERIALPORT_CONFIGURE_CMDS
|
||||||
(cd $(@D); $(TARGET_MAKE_ENV) $(QT_QMAKE))
|
(cd $(@D); $(TARGET_MAKE_ENV) $(QT_QMAKE))
|
||||||
endef
|
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
|
define QEXTSERIALPORT_BUILD_CMDS
|
||||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user