package/qt6/qt6tools: separate host and target options

Add Config.in.host to allow separating options affecting host and target
builds.

Move/copy parts of Config.in into Config.in.host.

Signed-off-by: Roy Kollen Svendsen <roykollensvendsen@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Roy Kollen Svendsen
2024-09-04 23:10:45 +02:00
committed by Thomas Petazzoni
parent c8662264eb
commit 322e64ead4
3 changed files with 18 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
if BR2_PACKAGE_QT6
source "package/qt6/qt6base/Config.in.host"
source "package/qt6/qt6tools/Config.in.host"
endif

View File

@@ -1,12 +1,8 @@
config BR2_PACKAGE_QT6TOOLS
bool "qt6tools"
# The Qt Network module is required
select BR2_PACKAGE_QT6BASE_NETWORK
# qt6tools needs host-qt6tools, and host-qt6tools needs
# network support in qt6base. In addition, we also need
# host-qt6base with Sql support to build the qhelpgenerator
# tool, if target support for Sql is present
select BR2_PACKAGE_HOST_QT6BASE_NETWORK
select BR2_PACKAGE_HOST_QT6BASE_SQL if BR2_PACKAGE_QT6BASE_SQL
select BR2_PACKAGE_HOST_QT6TOOLS
help
Qt is a cross-platform application and UI framework for
developers using C++.

View File

@@ -0,0 +1,15 @@
config BR2_PACKAGE_HOST_QT6TOOLS
bool "host qt6tools"
# The Qt Qt Network module is required
select BR2_PACKAGE_HOST_QT6BASE_NETWORK
# Requires the Qt Sql module to build the qhelpgenerator
# tool, if target support for Sql is present
select BR2_PACKAGE_HOST_QT6BASE_SQL if BR2_PACKAGE_QT6BASE_SQL
help
Qt is a cross-platform application and UI framework for
developers using C++.
Qt Tools provides tools facilitate the development
and design of applications.
https://github.com/qt/qttools