1 ################################################################################
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
18 QT5WEBSOCKETS_LICENSE
= GPLv3 or LGPLv2.1 with exception or LGPLv3
19 QT5WEBSOCKETS_LICENSE_FILES
= LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3
21 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES
),y
)
22 QT5WEBSOCKETS_LICENSE
:= $(QT5WEBSOCKETS_LICENSE
), BSD-3c
(examples
)
25 QT5WEBSOCKETS_LICENSE
= Commercial license
26 QT5WEBSOCKETS_REDISTRIBUTE
= NO
29 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE
),y
)
30 QT5WEBSOCKETS_DEPENDENCIES
+= qt5declarative
33 define QT5WEBSOCKETS_CONFIGURE_CMDS
34 (cd
$(@D
); $(TARGET_MAKE_ENV
) $(HOST_DIR
)/usr
/bin
/qmake
)
37 define QT5WEBSOCKETS_BUILD_CMDS
38 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)
41 define QT5WEBSOCKETS_INSTALL_STAGING_CMDS
42 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) install
43 $(QT5_LA_PRL_FILES_FIXUP
)
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
/
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
/
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
64 define QT5WEBSOCKETS_INSTALL_TARGET_CMDS
65 $(QT5WEBSOCKETS_INSTALL_TARGET_LIBS
)
66 $(QT5WEBSOCKETS_INSTALL_TARGET_QMLS
)
67 $(QT5WEBSOCKETS_INSTALL_TARGET_EXAMPLES
)
70 $(eval
$(generic-package
))