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 QT5WEBSOCKETS_LICENSE
= GPLv3 or LGPLv2.1 with exception or LGPLv3
15 QT5WEBSOCKETS_LICENSE_FILES
= LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3
17 QT5WEBSOCKETS_LICENSE
= Commercial license
18 QT5WEBSOCKETS_REDISTRIBUTE
= NO
21 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE
),y
)
22 QT5WEBSOCKETS_DEPENDENCIES
+= qt5declarative
25 define QT5WEBSOCKETS_CONFIGURE_CMDS
26 (cd
$(@D
); $(TARGET_MAKE_ENV
) $(HOST_DIR
)/usr
/bin
/qmake
)
29 define QT5WEBSOCKETS_BUILD_CMDS
30 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)
33 define QT5WEBSOCKETS_INSTALL_STAGING_CMDS
34 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) install
35 $(QT5_LA_PRL_FILES_FIXUP
)
38 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK
),y
)
39 define QT5WEBSOCKETS_INSTALL_TARGET_QMLS
40 cp
-dpfr
$(STAGING_DIR
)/usr
/qml
/Qt
/WebSockets
$(TARGET_DIR
)/usr
/qml
/Qt
/
44 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES
),y
)
45 define QT5WEBSOCKETS_INSTALL_TARGET_EXAMPLES
46 cp
-dpfr
$(STAGING_DIR
)/usr
/lib
/qt
/examples
/websockets
$(TARGET_DIR
)/usr
/lib
/qt
/examples
/
50 ifneq ($(BR2_STATIC_LIBS
),y
)
51 define QT5WEBSOCKETS_INSTALL_TARGET_LIBS
52 cp
-dpf
$(STAGING_DIR
)/usr
/lib
/libQt5WebSockets.so.
* $(TARGET_DIR
)/usr
/lib
56 define QT5WEBSOCKETS_INSTALL_TARGET_CMDS
57 $(QT5WEBSOCKETS_INSTALL_TARGET_LIBS
)
58 $(QT5WEBSOCKETS_INSTALL_TARGET_QMLS
)
61 $(eval
$(generic-package
))