Move symbol stripping attributes to iOS configuration file

This commit is contained in:
amzn-sj
2021-05-04 10:20:51 -07:00
parent 1474b56e12
commit b99d0fb36a
2 changed files with 5 additions and 7 deletions
@@ -41,6 +41,11 @@ endif()
# Signing
ly_set(CMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS --deep)
# Symbol Stripping
ly_set(CMAKE_XCODE_ATTRIBUTE_DEPLOYMENT_POSTPROCESSING[variant=debug] "NO")
ly_set(CMAKE_XCODE_ATTRIBUTE_DEPLOYMENT_POSTPROCESSING[variant=profile] "NO")
ly_set(CMAKE_XCODE_ATTRIBUTE_DEPLOYMENT_POSTPROCESSING[variant=release] "YES")
# Generate scheme files for Xcode
ly_set(CMAKE_XCODE_GENERATE_SCHEME TRUE)
-7
View File
@@ -14,13 +14,6 @@ include(cmake/Platform/Common/LYWrappers_default.cmake)
function(ly_apply_platform_properties target)
get_target_property(target_type ${target} TYPE)
set_target_properties(${target}
PROPERTIES
XCODE_ATTRIBUTE_DEPLOYMENT_POSTPROCESSING[variant=debug] "NO"
XCODE_ATTRIBUTE_DEPLOYMENT_POSTPROCESSING[variant=profile] "NO"
XCODE_ATTRIBUTE_DEPLOYMENT_POSTPROCESSING[variant=release] "YES"
)
if(${target_type} STREQUAL "SHARED_LIBRARY")
# Some projects use an "_" in their target name which is not allowed in a bundle identifier
get_target_property(target_name ${target} NAME)