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 QT5WEBCHANNEL_LICENSE
= GPLv2 or GPLv3 or LGPLv2.1 with exception or LGPLv3
, GFDLv1.3
(docs
)
15 QT5WEBCHANNEL_LICENSE_FILES
= LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
17 QT5WEBCHANNEL_LICENSE
= Commercial license
18 QT5WEBCHANNEL_REDISTRIBUTE
= NO
21 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE
),y
)
22 QT5WEBCHANNEL_DEPENDENCIES
+= qt5declarative
25 define QT5WEBCHANNEL_CONFIGURE_CMDS
26 (cd
$(@D
); $(TARGET_MAKE_ENV
) $(HOST_DIR
)/usr
/bin
/qmake
)
29 define QT5WEBCHANNEL_BUILD_CMDS
30 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)
33 define QT5WEBCHANNEL_INSTALL_STAGING_CMDS
34 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) install
35 $(QT5_LA_PRL_FILES_FIXUP
)
38 define QT5WEBCHANNEL_INSTALL_TARGET_JAVASCRIPT
39 $(INSTALL
) -m
0644 -D
$(@D
)/src
/webchannel
/qwebchannel.js \
40 $(TARGET_DIR
)/var
/www
/qwebchannel.js
43 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK
),y
)
44 define QT5WEBCHANNEL_INSTALL_TARGET_QMLS
45 cp
-dpfr
$(STAGING_DIR
)/usr
/qml
/QtWebChannel
$(TARGET_DIR
)/usr
/qml
/
49 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES
),y
)
50 define QT5WEBCHANNEL_INSTALL_TARGET_EXAMPLES
51 cp
-dpfr
$(STAGING_DIR
)/usr
/lib
/qt
/examples
/webchannel
$(TARGET_DIR
)/usr
/lib
/qt
/examples
/
55 ifneq ($(BR2_STATIC_LIBS
),y
)
56 define QT5WEBCHANNEL_INSTALL_TARGET_LIBS
57 cp
-dpf
$(STAGING_DIR
)/usr
/lib
/libQt5WebChannel.so.
* $(TARGET_DIR
)/usr
/lib
61 define QT5WEBCHANNEL_INSTALL_TARGET_CMDS
62 $(QT5WEBCHANNEL_INSTALL_TARGET_LIBS
)
63 $(QT5WEBCHANNEL_INSTALL_TARGET_QMLS
)
64 $(QT5WEBCHANNEL_INSTALL_TARGET_JAVASCRIPT
)
65 $(QT5WEBCHANNEL_INSTALL_TARGET_EXAMPLES
)
68 $(eval
$(generic-package
))