mirror of https://github.com/axmolengine/axmol.git
add defualt ios deloyment target (#20282)
* add defualt ios deloyment target
This commit is contained in:
parent
b852fc3355
commit
8126cfafd5
|
@ -153,6 +153,12 @@ if(WINDOWS)
|
||||||
set_source_files_properties(${COCOS_SPINE_SRC} base/ccFPSImages.c PROPERTIES LANGUAGE CXX)
|
set_source_files_properties(${COCOS_SPINE_SRC} base/ccFPSImages.c PROPERTIES LANGUAGE CXX)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(XCODE)
|
||||||
|
if(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET)
|
||||||
|
set_xcode_property(cocos2d IPHONEOS_DEPLOYMENT_TARGET "8.0")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
#if(XCODE)
|
#if(XCODE)
|
||||||
# # Later versions of Xcode clang want to compile C++17 with aligned allocation turned on and this is only supported on iOS 11.0+
|
# # Later versions of Xcode clang want to compile C++17 with aligned allocation turned on and this is only supported on iOS 11.0+
|
||||||
# # TODO: Only turn this off if ${CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET} < 11.0
|
# # TODO: Only turn this off if ${CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET} < 11.0
|
||||||
|
|
|
@ -139,6 +139,9 @@ if(APPLE)
|
||||||
elseif(IOS)
|
elseif(IOS)
|
||||||
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/ios/Info.plist")
|
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/ios/Info.plist")
|
||||||
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon")
|
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon")
|
||||||
|
if(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET)
|
||||||
|
set_xcode_property(${APP_NAME} IPHONEOS_DEPLOYMENT_TARGET "8.0")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# For code-signing, set the DEVELOPMENT_TEAM:
|
# For code-signing, set the DEVELOPMENT_TEAM:
|
||||||
|
|
|
@ -131,6 +131,9 @@ if(APPLE)
|
||||||
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon")
|
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon")
|
||||||
set_xcode_property(${APP_NAME} DEVELOPMENT_TEAM "")
|
set_xcode_property(${APP_NAME} DEVELOPMENT_TEAM "")
|
||||||
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "iPhone Developer")
|
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "iPhone Developer")
|
||||||
|
if(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET)
|
||||||
|
set_xcode_property(${APP_NAME} IPHONEOS_DEPLOYMENT_TARGET "8.0")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
elseif(WINDOWS)
|
elseif(WINDOWS)
|
||||||
cocos_copy_target_dll(${APP_NAME})
|
cocos_copy_target_dll(${APP_NAME})
|
||||||
|
|
|
@ -132,6 +132,9 @@ if(XCODE)
|
||||||
elseif(IOS)
|
elseif(IOS)
|
||||||
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios/Info.plist")
|
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios/Info.plist")
|
||||||
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
|
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
|
||||||
|
if(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET)
|
||||||
|
set_xcode_property(${APP_NAME} IPHONEOS_DEPLOYMENT_TARGET "8.0")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# For code-signing, set the DEVELOPMENT_TEAM:
|
# For code-signing, set the DEVELOPMENT_TEAM:
|
||||||
|
|
|
@ -403,6 +403,9 @@ if(APPLE)
|
||||||
elseif(IOS)
|
elseif(IOS)
|
||||||
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios/Info.plist")
|
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios/Info.plist")
|
||||||
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
|
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
|
||||||
|
if(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET)
|
||||||
|
set_xcode_property(${APP_NAME} IPHONEOS_DEPLOYMENT_TARGET "8.0")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# For code-signing, set the DEVELOPMENT_TEAM:
|
# For code-signing, set the DEVELOPMENT_TEAM:
|
||||||
|
|
|
@ -105,6 +105,9 @@ if(APPLE)
|
||||||
elseif(IOS)
|
elseif(IOS)
|
||||||
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios/Info.plist")
|
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios/Info.plist")
|
||||||
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
|
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
|
||||||
|
if(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET)
|
||||||
|
set_xcode_property(${APP_NAME} IPHONEOS_DEPLOYMENT_TARGET "8.0")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# For code-signing, set the DEVELOPMENT_TEAM:
|
# For code-signing, set the DEVELOPMENT_TEAM:
|
||||||
|
|
|
@ -118,6 +118,9 @@ if(APPLE)
|
||||||
elseif(IOS)
|
elseif(IOS)
|
||||||
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/ios/Info.plist")
|
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/ios/Info.plist")
|
||||||
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
|
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
|
||||||
|
if(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET)
|
||||||
|
set_xcode_property(${APP_NAME} IPHONEOS_DEPLOYMENT_TARGET "8.0")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# For code-signing, set the DEVELOPMENT_TEAM:
|
# For code-signing, set the DEVELOPMENT_TEAM:
|
||||||
|
|
Loading…
Reference in New Issue