1 ################################################################################
5 ################################################################################
7 QT5WEBCHANNEL_VERSION
= $(QT5_VERSION
)
8 QT5WEBCHANNEL_SITE
= $(QT5_SITE
)
9 QT5WEBCHANNEL_SOURCE
= qtwebchannel-opensource-src-
$(QT5WEBCHANNEL_VERSION
).
tar.xz
10 QT5WEBCHANNEL_DEPENDENCIES
= qt5base qt5websockets
11 QT5WEBCHANNEL_INSTALL_STAGING
= YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED
),y
)
14 ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST
),y
)
15 QT5WEBCHANNEL_LICENSE
= GPLv2
+ or LGPLv3
, GPLv3 with exception
(tools
), GFDLv1.3
(docs
)
16 QT5WEBCHANNEL_LICENSE_FILES
= LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.GPL3-EXCEPT LICENSE.LGPLv3 LICENSE.FDL
18 QT5WEBCHANNEL_LICENSE
= GPLv2 or GPLv3 or LGPLv2.1 with exception or LGPLv3
, GFDLv1.3
(docs
)
19 QT5WEBCHANNEL_LICENSE_FILES
= LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
21 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES
),y
)
22 QT5WEBCHANNEL_LICENSE
:= $(QT5WEBCHANNEL_LICENSE
), BSD-3c
(examples
)
25 QT5WEBCHANNEL_LICENSE
= Commercial license
26 QT5WEBCHANNEL_REDISTRIBUTE
= NO
29 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE
),y
)
30 QT5WEBCHANNEL_DEPENDENCIES
+= qt5declarative
33 define QT5WEBCHANNEL_CONFIGURE_CMDS
34 (cd
$(@D
); $(TARGET_MAKE_ENV
) $(HOST_DIR
)/usr
/bin
/qmake
)
37 define QT5WEBCHANNEL_BUILD_CMDS
38 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)
41 define QT5WEBCHANNEL_INSTALL_STAGING_CMDS
42 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) install
43 $(QT5_LA_PRL_FILES_FIXUP
)
46 define QT5WEBCHANNEL_INSTALL_TARGET_JAVASCRIPT
47 $(INSTALL
) -m
0644 -D
$(@D
)/src
/webchannel
/qwebchannel.js \
48 $(TARGET_DIR
)/var
/www
/qwebchannel.js
51 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK
),y
)
52 define QT5WEBCHANNEL_INSTALL_TARGET_QMLS
53 cp
-dpfr
$(STAGING_DIR
)/usr
/qml
/QtWebChannel
$(TARGET_DIR
)/usr
/qml
/
57 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES
),y
)
58 define QT5WEBCHANNEL_INSTALL_TARGET_EXAMPLES
59 cp
-dpfr
$(STAGING_DIR
)/usr
/lib
/qt
/examples
/webchannel
$(TARGET_DIR
)/usr
/lib
/qt
/examples
/
63 ifneq ($(BR2_STATIC_LIBS
),y
)
64 define QT5WEBCHANNEL_INSTALL_TARGET_LIBS
65 cp
-dpf
$(STAGING_DIR
)/usr
/lib
/libQt5WebChannel.so.
* $(TARGET_DIR
)/usr
/lib
69 define QT5WEBCHANNEL_INSTALL_TARGET_CMDS
70 $(QT5WEBCHANNEL_INSTALL_TARGET_LIBS
)
71 $(QT5WEBCHANNEL_INSTALL_TARGET_QMLS
)
72 $(QT5WEBCHANNEL_INSTALL_TARGET_JAVASCRIPT
)
73 $(QT5WEBCHANNEL_INSTALL_TARGET_EXAMPLES
)
76 $(eval
$(generic-package
))