board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / qt5 / qt5quickcontrols / qt5quickcontrols.mk
blob43254ba06b684cfdcc6b89d3395498ace2f5baf2
1 ################################################################################
3 # qt5quickcontrols
5 ################################################################################
7 QT5QUICKCONTROLS_VERSION = $(QT5_VERSION)
8 QT5QUICKCONTROLS_SITE = $(QT5_SITE)
9 QT5QUICKCONTROLS_SOURCE = qtquickcontrols-opensource-src-$(QT5QUICKCONTROLS_VERSION).tar.xz
10 QT5QUICKCONTROLS_DEPENDENCIES = qt5base qt5declarative
11 QT5QUICKCONTROLS_INSTALL_STAGING = YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
14 QT5QUICKCONTROLS_LICENSE = GPLv2 or GPLv3 or LGPLv3, GFDLv1.3 (docs)
15 QT5QUICKCONTROLS_LICENSE_FILES = LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.LGPLv3 LICENSE.FDL
16 else
17 QT5QUICKCONTROLS_LICENSE = Commercial license
18 QT5QUICKCONTROLS_REDISTRIBUTE = NO
19 endif
21 define QT5QUICKCONTROLS_CONFIGURE_CMDS
22 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
23 endef
25 define QT5QUICKCONTROLS_BUILD_CMDS
26 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
27 endef
29 define QT5QUICKCONTROLS_INSTALL_STAGING_CMDS
30 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
31 endef
34 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK)$(BR2_PACKAGE_QT5BASE_WIDGETS),yy)
35 define QT5QUICKCONTROLS_INSTALL_TARGET_PRIVATEWIDGETS
36 cp -dpfr $(STAGING_DIR)/usr/qml/QtQuick/PrivateWidgets $(TARGET_DIR)/usr/qml/QtQuick
37 endef
38 endif
40 ifeq ($(BR2_PACKAGE_QT5_VERSION_5_6),y)
41 define QT5QUICKCONTROLS_INSTALL_TARGET_LAYOUTS
42 cp -dpfr $(STAGING_DIR)/usr/qml/QtQuick/Layouts $(TARGET_DIR)/usr/qml/QtQuick
43 endef
44 endif
46 define QT5QUICKCONTROLS_INSTALL_TARGET_CMDS
47 cp -dpfr $(STAGING_DIR)/usr/qml/QtQuick/Controls $(TARGET_DIR)/usr/qml/QtQuick
48 cp -dpfr $(STAGING_DIR)/usr/qml/QtQuick/Dialogs $(TARGET_DIR)/usr/qml/QtQuick
49 cp -dpfr $(STAGING_DIR)/usr/qml/QtQuick/Extras $(TARGET_DIR)/usr/qml/QtQuick
50 $(QT5QUICKCONTROLS_INSTALL_TARGET_PRIVATEWIDGETS)
51 $(QT5QUICKCONTROLS_INSTALL_TARGET_LAYOUTS)
52 endef
54 $(eval $(generic-package))