toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / qt5 / qt5webchannel / qt5webchannel.mk
blob3865ced34092d70e243e0762949b769fe24681c5
1 ################################################################################
3 # qt5webchannel
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
16 else
17 QT5WEBCHANNEL_LICENSE = Commercial license
18 QT5WEBCHANNEL_REDISTRIBUTE = NO
19 endif
21 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
22 QT5WEBCHANNEL_DEPENDENCIES += qt5declarative
23 endif
25 define QT5WEBCHANNEL_CONFIGURE_CMDS
26 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
27 endef
29 define QT5WEBCHANNEL_BUILD_CMDS
30 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
31 endef
33 define QT5WEBCHANNEL_INSTALL_STAGING_CMDS
34 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
35 $(QT5_LA_PRL_FILES_FIXUP)
36 endef
38 define QT5WEBCHANNEL_INSTALL_TARGET_JAVASCRIPT
39 $(INSTALL) -m 0644 -D $(@D)/src/webchannel/qwebchannel.js \
40 $(TARGET_DIR)/var/www/qwebchannel.js
41 endef
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/
46 endef
47 endif
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/
52 endef
53 endif
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
58 endef
59 endif
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)
66 endef
68 $(eval $(generic-package))