2014-05-27 08:24:07 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# qt5websockets
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
QT5WEBSOCKETS_VERSION = $(QT5_VERSION)
|
|
|
|
QT5WEBSOCKETS_SITE = $(QT5_SITE)
|
|
|
|
QT5WEBSOCKETS_SOURCE = qtwebsockets-opensource-src-$(QT5WEBSOCKETS_VERSION).tar.xz
|
|
|
|
QT5WEBSOCKETS_DEPENDENCIES = qt5base
|
|
|
|
QT5WEBSOCKETS_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
|
2016-03-21 12:00:12 +01:00
|
|
|
QT5WEBSOCKETS_LICENSE = GPLv3 or LGPLv2.1 with exception or LGPLv3
|
|
|
|
QT5WEBSOCKETS_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3
|
2016-12-19 21:10:25 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
|
|
|
|
QT5WEBSOCKETS_LICENSE := $(QT5WEBSOCKETS_LICENSE), BSD-3c (examples)
|
|
|
|
endif
|
2014-05-27 08:24:07 +02:00
|
|
|
else
|
|
|
|
QT5WEBSOCKETS_LICENSE = Commercial license
|
|
|
|
QT5WEBSOCKETS_REDISTRIBUTE = NO
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
|
|
|
|
QT5WEBSOCKETS_DEPENDENCIES += qt5declarative
|
|
|
|
endif
|
|
|
|
|
|
|
|
define QT5WEBSOCKETS_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define QT5WEBSOCKETS_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define QT5WEBSOCKETS_INSTALL_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
|
|
|
|
$(QT5_LA_PRL_FILES_FIXUP)
|
|
|
|
endef
|
|
|
|
|
2014-07-19 19:33:26 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
|
2014-05-27 08:24:07 +02:00
|
|
|
define QT5WEBSOCKETS_INSTALL_TARGET_QMLS
|
|
|
|
cp -dpfr $(STAGING_DIR)/usr/qml/Qt/WebSockets $(TARGET_DIR)/usr/qml/Qt/
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
|
|
|
|
define QT5WEBSOCKETS_INSTALL_TARGET_EXAMPLES
|
|
|
|
cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/websockets $(TARGET_DIR)/usr/lib/qt/examples/
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifneq ($(BR2_STATIC_LIBS),y)
|
2014-05-27 08:24:07 +02:00
|
|
|
define QT5WEBSOCKETS_INSTALL_TARGET_LIBS
|
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libQt5WebSockets.so.* $(TARGET_DIR)/usr/lib
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
define QT5WEBSOCKETS_INSTALL_TARGET_CMDS
|
|
|
|
$(QT5WEBSOCKETS_INSTALL_TARGET_LIBS)
|
|
|
|
$(QT5WEBSOCKETS_INSTALL_TARGET_QMLS)
|
2016-11-01 15:55:35 +01:00
|
|
|
$(QT5WEBSOCKETS_INSTALL_TARGET_EXAMPLES)
|
2014-05-27 08:24:07 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|