board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / qt5 / qt5websockets / qt5websockets.mk
blob975ea64388faebb1cabe7ecce0706185240b3bdf
1 ################################################################################
3 # qt5websockets
5 ################################################################################
7 QT5WEBSOCKETS_VERSION = $(QT5_VERSION)
8 QT5WEBSOCKETS_SITE = $(QT5_SITE)
9 QT5WEBSOCKETS_SOURCE = qtwebsockets-opensource-src-$(QT5WEBSOCKETS_VERSION).tar.xz
10 QT5WEBSOCKETS_DEPENDENCIES = qt5base
11 QT5WEBSOCKETS_INSTALL_STAGING = YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
14 ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
15 QT5WEBSOCKETS_LICENSE = GPLv2+ or LGPLv3, GPLv3 with exception(tools)
16 QT5WEBSOCKETS_LICENSE_FILES = LICENSE.GPL2 LICENSE.GPLv3 LICENSE.GPL3-EXCEPT LICENSE.LGPLv3
17 else
18 QT5WEBSOCKETS_LICENSE = GPLv3 or LGPLv2.1 with exception or LGPLv3
19 QT5WEBSOCKETS_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3
20 endif
21 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
22 QT5WEBSOCKETS_LICENSE := $(QT5WEBSOCKETS_LICENSE), BSD-3c (examples)
23 endif
24 else
25 QT5WEBSOCKETS_LICENSE = Commercial license
26 QT5WEBSOCKETS_REDISTRIBUTE = NO
27 endif
29 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
30 QT5WEBSOCKETS_DEPENDENCIES += qt5declarative
31 endif
33 define QT5WEBSOCKETS_CONFIGURE_CMDS
34 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
35 endef
37 define QT5WEBSOCKETS_BUILD_CMDS
38 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
39 endef
41 define QT5WEBSOCKETS_INSTALL_STAGING_CMDS
42 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
43 $(QT5_LA_PRL_FILES_FIXUP)
44 endef
46 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
47 define QT5WEBSOCKETS_INSTALL_TARGET_QMLS
48 cp -dpfr $(STAGING_DIR)/usr/qml/Qt/WebSockets $(TARGET_DIR)/usr/qml/Qt/
49 endef
50 endif
52 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
53 define QT5WEBSOCKETS_INSTALL_TARGET_EXAMPLES
54 cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/websockets $(TARGET_DIR)/usr/lib/qt/examples/
55 endef
56 endif
58 ifneq ($(BR2_STATIC_LIBS),y)
59 define QT5WEBSOCKETS_INSTALL_TARGET_LIBS
60 cp -dpf $(STAGING_DIR)/usr/lib/libQt5WebSockets.so.* $(TARGET_DIR)/usr/lib
61 endef
62 endif
64 define QT5WEBSOCKETS_INSTALL_TARGET_CMDS
65 $(QT5WEBSOCKETS_INSTALL_TARGET_LIBS)
66 $(QT5WEBSOCKETS_INSTALL_TARGET_QMLS)
67 $(QT5WEBSOCKETS_INSTALL_TARGET_EXAMPLES)
68 endef
70 $(eval $(generic-package))