1 ################################################################################
5 ################################################################################
7 QT5TOOLS_VERSION
= $(QT5_VERSION
)
8 QT5TOOLS_SITE
= $(QT5_SITE
)
9 QT5TOOLS_SOURCE
= qttools-opensource-src-
$(QT5BASE_VERSION
).
tar.xz
11 QT5TOOLS_DEPENDENCIES
= qt5base
12 QT5TOOLS_INSTALL_STAGING
= YES
14 # linguist tools compile conditionally on qtHaveModule(qmldevtools-private),
15 # but the condition is used only used to decide if lupdate will support
16 # parsing qml files (via setting QT_NO_QML define), no linking against
17 # target qt5 will happen
18 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE
),y
)
19 QT5TOOLS_DEPENDENCIES
+= qt5declarative
22 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED
),y
)
23 ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST
),y
)
24 QT5TOOLS_LICENSE
= GPLv2
+ or LGPLv3
, GPLv3 with exception
(tools
), GFDLv1.3
(docs
)
25 QT5TOOLS_LICENSE_FILES
= LICENSE.GPL2 LICENSE.GPLv3 LICENSE.LGPLv3 LICENSE.FDL
27 QT5TOOLS_LICENSE
= GPLv3 or LGPLv2.1 with exception or LGPLv3
, GFDLv1.3
(docs
)
28 QT5TOOLS_LICENSE_FILES
= LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
31 QT5TOOLS_LICENSE
= Commercial license
32 QT5TOOLS_REDISTRIBUTE
= NO
35 QT5TOOLS_BUILD_DIRS_
$(BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS
) += \
36 linguist
/lconvert linguist
/lrelease linguist
/lupdate
37 ifeq ($(BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS
),y
)
38 # use install target to copy cmake module files
39 define QT5TOOLS_INSTALL_STAGING_CMDS
40 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)/src
/linguist
install
44 QT5TOOLS_BUILD_DIRS_
$(BR2_PACKAGE_QT5TOOLS_PIXELTOOL
) += pixeltool
45 QT5TOOLS_INSTALL_TARGET_
$(BR2_PACKAGE_QT5TOOLS_PIXELTOOL
) += pixeltool
47 QT5TOOLS_BUILD_DIRS_
$(BR2_PACKAGE_QT5TOOLS_QTDIAG
) += qtdiag
48 QT5TOOLS_INSTALL_TARGET_
$(BR2_PACKAGE_QT5TOOLS_QTDIAG
) += qtdiag
50 QT5TOOLS_BUILD_DIRS_
$(BR2_PACKAGE_QT5TOOLS_QTPATHS
) += qtpaths
51 QT5TOOLS_INSTALL_TARGET_
$(BR2_PACKAGE_QT5TOOLS_QTPATHS
) += qtpaths
53 QT5TOOLS_BUILD_DIRS_
$(BR2_PACKAGE_QT5TOOLS_QTPLUGININFO
) += qtplugininfo
54 QT5TOOLS_INSTALL_TARGET_
$(BR2_PACKAGE_QT5TOOLS_QTPLUGININFO
) += qtplugininfo
56 define QT5TOOLS_CONFIGURE_CMDS
57 (cd
$(@D
); $(TARGET_MAKE_ENV
) $(HOST_DIR
)/usr
/bin
/qmake
)
60 define QT5TOOLS_BUILD_CMDS
61 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) sub-src-qmake_all
62 $(foreach p
,$(QT5TOOLS_BUILD_DIRS_y
), \
63 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)/src
/$(p
)$(sep
))
66 define QT5TOOLS_INSTALL_TARGET_CMDS
67 $(foreach p
,$(QT5TOOLS_INSTALL_TARGET_y
), \
68 $(INSTALL
) -D
-m0755
$(@D
)/bin
/$(p
) $(TARGET_DIR
)/usr
/bin
/$(p
)$(sep
))
71 $(eval
$(generic-package
))