mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[cocos2dx] Fix CMake iOS build.
This commit is contained in:
parent
8d5893fde7
commit
7617c30eda
@ -128,6 +128,11 @@ endif()
|
|||||||
# Link the spine-cpp and spine-cocos2dx library to the app
|
# Link the spine-cpp and spine-cocos2dx library to the app
|
||||||
target_link_libraries(${APP_NAME} spine-cpp spine-cocos2dx)
|
target_link_libraries(${APP_NAME} spine-cpp spine-cocos2dx)
|
||||||
|
|
||||||
|
# Manually link to libz on iOS, the cocos2d-x build only pulls in libz.tbd
|
||||||
|
if(IOS)
|
||||||
|
target_link_libraries(${APP_NAME} z)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(${APP_NAME} cocos2d)
|
target_link_libraries(${APP_NAME} cocos2d)
|
||||||
target_include_directories(${APP_NAME}
|
target_include_directories(${APP_NAME}
|
||||||
PRIVATE ${GAME_INCLUDE}
|
PRIVATE ${GAME_INCLUDE}
|
||||||
@ -140,9 +145,9 @@ if(APPLE)
|
|||||||
set_target_properties(${APP_NAME} PROPERTIES RESOURCE "${APP_UI_RES}")
|
set_target_properties(${APP_NAME} PROPERTIES RESOURCE "${APP_UI_RES}")
|
||||||
|
|
||||||
if(MACOSX)
|
if(MACOSX)
|
||||||
set_target_properties(${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/mac/Info.plist")
|
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/mac/Info.plist")
|
||||||
elseif(IOS)
|
elseif(IOS)
|
||||||
set_target_properties(${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${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")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
@ -2,35 +2,44 @@
|
|||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>en</string>
|
<string>English</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>${EXECUTABLE_NAME}</string>
|
<string>${PROJECT_NAME}</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>Icon</string>
|
<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>com.esotericsoftware.spine</string>
|
<string>Icon-57.png</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>6.0</string>
|
<string>com.esotericsoftware.spine</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>${PRODUCT_NAME}</string>
|
<string>6.0</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundleName</key>
|
||||||
<string>APPL</string>
|
<string>${PROJECT_NAME}</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.0</string>
|
<string>1.0</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>????</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>1</string>
|
<string>????</string>
|
||||||
<key>LSApplicationCategoryType</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>public.app-category.games</string>
|
<string>1</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
<true/>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>UIAppFonts</key>
|
||||||
<string>Copyright © 2013. All rights reserved.</string>
|
<array/>
|
||||||
<key>NSMainNibFile</key>
|
<key>UILaunchStoryboardName</key>
|
||||||
<string>MainMenu</string>
|
<string>LaunchScreen</string>
|
||||||
<key>NSPrincipalClass</key>
|
<key>UIPrerenderedIcon</key>
|
||||||
<string>NSApplication</string>
|
<true/>
|
||||||
|
<key>UIStatusBarHidden</key>
|
||||||
|
<true/>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
</array>
|
||||||
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
<string>Copyright © 2019. All rights reserved.</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user