mirror of https://github.com/axmolengine/axmol.git
[bugfix] add pagezero_size link flags (#20321)
This commit is contained in:
parent
e03192b48c
commit
6a53b31d08
|
@ -132,6 +132,9 @@ if(APPLE)
|
|||
set_target_properties(${APP_NAME} PROPERTIES
|
||||
MACOSX_BUNDLE_INFO_PLIST "${RUNTIME_SRC_ROOT}/proj.ios_mac/mac/Info.plist"
|
||||
)
|
||||
set_target_properties(${APP_NAME} PROPERTIES
|
||||
LINK_FLAGS "-pagezero_size 10000 -image_base 100000000"
|
||||
)
|
||||
elseif(IOS)
|
||||
cocos_pak_xcode(${APP_NAME} INFO_PLIST "${RUNTIME_SRC_ROOT}/proj.ios_mac/ios/Info.plist")
|
||||
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon")
|
||||
|
|
|
@ -108,6 +108,9 @@ if(APPLE)
|
|||
|
||||
if(MACOSX)
|
||||
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.mac/Info.plist")
|
||||
set_target_properties(${APP_NAME} PROPERTIES
|
||||
LINK_FLAGS "-pagezero_size 10000 -image_base 100000000"
|
||||
)
|
||||
elseif(IOS)
|
||||
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}")
|
||||
|
|
|
@ -121,6 +121,9 @@ if(APPLE)
|
|||
|
||||
if(MACOSX)
|
||||
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/mac/Info.plist")
|
||||
set_target_properties(${APP_NAME} PROPERTIES
|
||||
LINK_FLAGS "-pagezero_size 10000 -image_base 100000000"
|
||||
)
|
||||
elseif(IOS)
|
||||
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}")
|
||||
|
|
Loading…
Reference in New Issue