mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-07 05:03:35 +02:00
Update CMakeLists.txt
Buildfix for Xcode 7(adding iconv library) In IOS 9, the Default-568h.png file must be located in root app directory.
This commit is contained in:
+7
-1
@@ -788,6 +788,8 @@ elseif(IOS)
|
||||
if(EXISTS "${CMAKE_IOS_SDK_ROOT}/System/Library/Frameworks/GameController.framework")
|
||||
set(nativeExtraLibs ${nativeExtraLibs} "-weak_framework GameController")
|
||||
endif()
|
||||
|
||||
set(nativeExtraLibs ${nativeExtraLibs} iconv)
|
||||
|
||||
set_source_files_properties(ios/AppDelegate.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
|
||||
set_source_files_properties(ios/ViewController.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
|
||||
@@ -1675,7 +1677,11 @@ if(IOS)
|
||||
add_dependencies(PPSSPP ${CoreLibName} GPU Common native)
|
||||
|
||||
file(GLOB IOSAssets ios/assets/*.png)
|
||||
list(REMOVE_ITEM IOSAssets ${CMAKE_CURRENT_SOURCE_DIR}/ios/assets/Default-568h@2x.png)
|
||||
list(REMOVE_ITEM IOSAssets ${CMAKE_CURRENT_SOURCE_DIR}/ios/assets/Default-568h@3x.png)
|
||||
file(INSTALL ${IOSAssets} DESTINATION assets)
|
||||
file(GLOB IOSAssets ios/assets/Default-568h@*.png)
|
||||
file(INSTALL ${IOSAssets} DESTINATION .)
|
||||
if (IOS_DEBUG)
|
||||
file(INSTALL pspautotests DESTINATION assets)
|
||||
endif()
|
||||
@@ -1685,7 +1691,7 @@ if(IOS)
|
||||
)
|
||||
set(APP_DIR_NAME \${TARGET_BUILD_DIR}/\${FULL_PRODUCT_NAME})
|
||||
add_custom_command(TARGET PPSSPP POST_BUILD
|
||||
COMMAND tar -c -C . --exclude .DS_Store --exclude .git -H gnu assets | tar -x -C '${APP_DIR_NAME}'
|
||||
COMMAND tar -c -C . --exclude .DS_Store --exclude .git -H gnu assets *.png | tar -x -C '${APP_DIR_NAME}'
|
||||
)
|
||||
# Force Xcode to relink the binary.
|
||||
add_custom_command(TARGET Core PRE_BUILD
|
||||
|
||||
Reference in New Issue
Block a user