CMake: Add QPA information to modules/Gui.json
The list of available QPA platforms and the default QPA platform is now available in modules/Gui.json. Change-Id: I059286d80c8507080d5ec3d790cf8ea22c5daddd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
6f25a583a6
commit
ccea773787
@ -1260,6 +1260,14 @@ function(qt_describe_module target)
|
||||
if(NOT QT_NAMESPACE STREQUAL "")
|
||||
string(APPEND extra_module_information "\n \"namespace\": \"${QT_NAMESPACE}\",")
|
||||
endif()
|
||||
if(target STREQUAL "Gui")
|
||||
qt_internal_list_to_json_array(qpa_platforms_array QT_QPA_PLATFORMS)
|
||||
string(APPEND extra_module_information "
|
||||
\"qpa\": {
|
||||
\"platforms\": ${qpa_platforms_array},
|
||||
\"default_platform\": \"${QT_QPA_DEFAULT_PLATFORM}\"
|
||||
},")
|
||||
endif()
|
||||
|
||||
# Set up indentation helper variables.
|
||||
set(indent1 " ")
|
||||
|
Loading…
x
Reference in New Issue
Block a user