Skip to content

Commit 0d41b56

Browse files
committed
Replace _qt_is_android_executable property with _qt_android_target_type
New property is more flexible in terms of further deployment extension. Currently it only knows the APPLICATION type but will support new types in the future. Change-Id: I6bdadfbbe162a990544903b3cbcfae2891114e88 Reviewed-by: Alexandru Croitor <[email protected]>
1 parent 44a43b0 commit 0d41b56

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/corelib/Qt6CoreMacros.cmake

+4-2
Original file line numberDiff line numberDiff line change
@@ -680,9 +680,11 @@ function(_qt_internal_create_executable target)
680680
OBJC_VISIBILITY_PRESET default
681681
OBJCXX_VISIBILITY_PRESET default
682682
_qt_android_apply_arch_suffix_called_from_qt_impl TRUE
683+
_qt_android_target_type APPLICATION
683684
)
684685

685686
qt6_android_apply_arch_suffix("${target}")
687+
# TODO: remove after the successful submodule update round.
686688
set_property(TARGET "${target}" PROPERTY _qt_is_android_executable TRUE)
687689
else()
688690
cmake_policy(PUSH)
@@ -812,9 +814,9 @@ function(qt6_finalize_target target)
812814
_qt_internal_expose_deferred_files_to_ide(${target})
813815
_qt_internal_finalize_source_groups(${target})
814816
get_target_property(target_type ${target} TYPE)
815-
get_target_property(is_android_executable "${target}" _qt_is_android_executable)
817+
get_target_property(android_type "${target}" _qt_android_target_type)
816818

817-
if(target_type STREQUAL "EXECUTABLE" OR is_android_executable)
819+
if(target_type STREQUAL "EXECUTABLE" OR android_type STREQUAL "APPLICATION")
818820
_qt_internal_finalize_executable(${ARGV})
819821
endif()
820822

0 commit comments

Comments
 (0)