CMake: Default CFBundleName to ${PRODUCT_NAME} for iOS
This matches what we do in qmake. Task-number: QTBUG-95838 Change-Id: I59fab289a2febc38b50aced89c93612ac6a817a3 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 6bbd77737fc333054f669f3cb8c59e296c417ea6)
This commit is contained in:
parent
8226ae9ac7
commit
c755b10e95
@ -1194,6 +1194,20 @@ function(_qt_internal_set_xcode_bundle_display_name target)
|
|||||||
set(QT_INTERNAL_DOLLAR_VAR "$" CACHE STRING "")
|
set(QT_INTERNAL_DOLLAR_VAR "$" CACHE STRING "")
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
# Adds ${PRODUCT_NAME} to the Info.plist file, which is then evaluated by Xcode itself.
|
||||||
|
function(_qt_internal_set_xcode_bundle_name target)
|
||||||
|
if(QT_NO_SET_XCODE_BUNDLE_NAME)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
get_target_property(existing_bundle_name "${target}" MACOSX_BUNDLE_BUNDLE_NAME)
|
||||||
|
if(NOT MACOSX_BUNDLE_BUNDLE_NAME AND NOT existing_bundle_name)
|
||||||
|
set_target_properties("${target}"
|
||||||
|
PROPERTIES
|
||||||
|
MACOSX_BUNDLE_BUNDLE_NAME "\${PRODUCT_NAME}")
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
function(_qt_internal_generate_ios_info_plist target)
|
function(_qt_internal_generate_ios_info_plist target)
|
||||||
# If the project already specifies a custom file, we don't override it.
|
# If the project already specifies a custom file, we don't override it.
|
||||||
get_target_property(existing_plist "${target}" MACOSX_BUNDLE_INFO_PLIST)
|
get_target_property(existing_plist "${target}" MACOSX_BUNDLE_INFO_PLIST)
|
||||||
@ -1282,6 +1296,7 @@ function(_qt_internal_finalize_apple_app target)
|
|||||||
_qt_internal_set_xcode_development_team_id("${target}")
|
_qt_internal_set_xcode_development_team_id("${target}")
|
||||||
_qt_internal_set_xcode_bundle_identifier("${target}")
|
_qt_internal_set_xcode_bundle_identifier("${target}")
|
||||||
_qt_internal_set_xcode_code_sign_style("${target}")
|
_qt_internal_set_xcode_code_sign_style("${target}")
|
||||||
|
_qt_internal_set_xcode_bundle_name("${target}")
|
||||||
_qt_internal_set_xcode_bundle_display_name("${target}")
|
_qt_internal_set_xcode_bundle_display_name("${target}")
|
||||||
_qt_internal_set_xcode_install_path("${target}")
|
_qt_internal_set_xcode_install_path("${target}")
|
||||||
_qt_internal_set_placeholder_apple_bundle_version("${target}")
|
_qt_internal_set_placeholder_apple_bundle_version("${target}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user