Skip to content

Commit

Permalink
Add configure feature 'androiddeployqt'
Browse files Browse the repository at this point in the history
This makes it possible to turn off the build of the Android deployment
tool.

A new src/tools/configure.cmake is added that will be the place for all
tool-related features in qtbase.

Change-Id: Ic9264c93ee96de06c97d21d2f27f73256f48ffda
Reviewed-by: Alexandru Croitor <[email protected]>
  • Loading branch information
jobor committed Nov 19, 2021
1 parent 18aff2b commit d29f76f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions qt_cmdline.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ qt_commandline_subconfig(src/widgets)
qt_commandline_subconfig(src/printsupport)
qt_commandline_subconfig(src/plugins/sqldrivers)
qt_commandline_subconfig(src/testlib)
qt_commandline_subconfig(src/tools)
qt_commandline_subconfig(qmake) # special case
qt_commandline_custom(qmakeArgs)
qt_commandline_option(prefix TYPE string)
Expand Down
8 changes: 6 additions & 2 deletions src/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# The configure.cmake here does not get picked up automatically.
# Manually evaluate tool-related features.
include("${CMAKE_CURRENT_SOURCE_DIR}/configure.cmake")
qt_feature_evaluate_features("${CMAKE_CURRENT_SOURCE_DIR}/configure.cmake")

add_subdirectory(uic)
if (QT_FEATURE_dbus)
add_subdirectory(qdbuscpp2xml)
Expand All @@ -9,8 +14,7 @@ if (QT_FEATURE_commandlineparser)
add_subdirectory(qtpaths)
endif()

# Only include the following tools when performing a host build
if(NOT CMAKE_CROSSCOMPILING AND QT_FEATURE_regularexpression)
if(QT_FEATURE_androiddeployqt)
add_subdirectory(androiddeployqt)
if(QT_FEATURE_gui AND QT_FEATURE_systemsemaphore)
add_subdirectory(androidtestrunner)
Expand Down
9 changes: 9 additions & 0 deletions src/tools/configure.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
qt_feature("androiddeployqt" PRIVATE
SECTION "Deployment"
LABEL "Android deployment tool"
PURPOSE "The Android deployment tool automates the process of creating Android packages."
CONDITION NOT CMAKE_CROSSCOMPILING AND QT_FEATURE_regularexpression)

qt_configure_add_summary_section(NAME "Core tools")
qt_configure_add_summary_entry(ARGS "androiddeployqt")
qt_configure_end_summary_section()

0 comments on commit d29f76f

Please sign in to comment.