toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / qt5 / qt5declarative / qt5declarative.mk
blobbe3a7b7d7a6cf0453bf5e41d64e851d48b8a724a
1 ################################################################################
3 # qt5declarative
5 ################################################################################
7 QT5DECLARATIVE_VERSION = $(QT5_VERSION)
8 QT5DECLARATIVE_SITE = $(QT5_SITE)
9 QT5DECLARATIVE_SOURCE = qtdeclarative-opensource-src-$(QT5DECLARATIVE_VERSION).tar.xz
10 QT5DECLARATIVE_DEPENDENCIES = qt5base qt5xmlpatterns
11 QT5DECLARATIVE_INSTALL_STAGING = YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
14 QT5DECLARATIVE_LICENSE = GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs)
15 QT5DECLARATIVE_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
16 else
17 QT5DECLARATIVE_LICENSE = Commercial license
18 QT5DECLARATIVE_REDISTRIBUTE = NO
19 endif
21 define QT5DECLARATIVE_CONFIGURE_CMDS
22 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
23 endef
25 define QT5DECLARATIVE_BUILD_CMDS
26 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
27 sub-src-all sub-tools-all
28 endef
30 define QT5DECLARATIVE_INSTALL_STAGING_CMDS
31 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
32 sub-src-install_subtargets \
33 sub-tools-install_subtargets
34 $(QT5_LA_PRL_FILES_FIXUP)
35 endef
37 ifeq ($(BR2_STATIC_LIBS),)
39 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
40 define QT5DECLARATIVE_INSTALL_TARGET_QUICK_LIBS
41 cp -dpf $(STAGING_DIR)/usr/lib/libQt5Quick*.so.* $(TARGET_DIR)/usr/lib
42 endef
43 endif
45 define QT5DECLARATIVE_INSTALL_TARGET_LIBS
46 cp -dpf $(STAGING_DIR)/usr/lib/libQt5Qml*.so.* $(TARGET_DIR)/usr/lib
47 cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/qml* $(TARGET_DIR)/usr/lib/qt/plugins
48 $(QT5DECLARATIVE_INSTALL_TARGET_QUICK_LIBS)
49 endef
51 endif
53 define QT5DECLARATIVE_INSTALL_TARGET_CMDS
54 cp -dpf $(STAGING_DIR)/usr/bin/qml* $(TARGET_DIR)/usr/bin
55 cp -dpfr $(STAGING_DIR)/usr/qml $(TARGET_DIR)/usr
56 $(QT5DECLARATIVE_INSTALL_TARGET_LIBS)
57 endef
59 $(eval $(generic-package))