forked from hrydgard/ppsspp
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into TemporaryHackishBranch
Conflicts: Core/Config.cpp UI/ProfilerDraw.cpp ext/native/profiler/profiler.h
- Loading branch information
Showing
121 changed files
with
2,845 additions
and
1,316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -672,7 +672,7 @@ elseif(IOS) | |
ios/AppDelegate.h | ||
ios/ViewController.mm | ||
ios/ViewController.h | ||
ios/iOSCoreAudio.cpp | ||
ios/iOSCoreAudio.mm | ||
ios/iOSCoreAudio.h | ||
ios/PPSSPPUIApplication.h | ||
ios/PPSSPPUIApplication.mm | ||
|
@@ -681,7 +681,7 @@ elseif(IOS) | |
ios/iCade/iCadeReaderView.h | ||
ios/iCade/iCadeReaderView.m | ||
ios/iCade/iCadeState.h) | ||
set(nativeExtraLibs ${nativeExtraLibs} "-framework Foundation -framework AudioToolbox -framework CoreGraphics -framework QuartzCore -framework UIKit -framework GLKit -framework OpenAL") | ||
set(nativeExtraLibs ${nativeExtraLibs} "-framework Foundation -framework AudioToolbox -framework CoreGraphics -framework QuartzCore -framework UIKit -framework GLKit -framework OpenAL -framework AVFoundation") | ||
if(EXISTS "${CMAKE_IOS_SDK_ROOT}/System/Library/Frameworks/GameController.framework") | ||
set(nativeExtraLibs ${nativeExtraLibs} "-weak_framework GameController") | ||
endif() | ||
|
@@ -692,6 +692,11 @@ elseif(IOS) | |
|
||
set_source_files_properties(ios/AppDelegate.mm PROPERTIES COMPILE_FLAGS -fobjc-arc) | ||
set_source_files_properties(ios/ViewController.mm PROPERTIES COMPILE_FLAGS -fobjc-arc) | ||
set_source_files_properties(ios/iOSCoreAudio.mm PROPERTIES COMPILE_FLAGS -fobjc-arc) | ||
set_source_files_properties(ios/PPSSPPUIApplication.mm PROPERTIES COMPILE_FLAGS -fobjc-arc) | ||
set_source_files_properties(ios/iCade/iCadeReaderView.m PROPERTIES COMPILE_FLAGS -fobjc-arc) | ||
set_source_files_properties(ios/main.mm PROPERTIES COMPILE_FLAGS -fobjc-arc) | ||
|
||
|
||
set(TargetBin PPSSPP) | ||
elseif(USING_QT_UI) | ||
|
@@ -1854,7 +1859,11 @@ if (TargetBin) | |
set_source_files_properties(${SHADER_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "MacOS/assets/shaders") | ||
endif() | ||
|
||
if (IOS) | ||
add_executable(${TargetBin} MACOSX_BUNDLE ${ICON_PATH_ABS} ${NativeAssets} ${SHADER_FILES} ${FLASH0_FILES} ${LANG_FILES} ${NativeAppSource} "ios/Launch Screen.storyboard") | ||
else() | ||
add_executable(${TargetBin} MACOSX_BUNDLE ${ICON_PATH_ABS} ${NativeAssets} ${SHADER_FILES} ${FLASH0_FILES} ${LANG_FILES} ${NativeAppSource}) | ||
endif() | ||
elseif(WIN32) | ||
add_executable(${TargetBin} WIN32 ${NativeAppSource}) | ||
set_target_properties(${TargetBin} PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS") | ||
|
@@ -1872,6 +1881,7 @@ file(INSTALL assets/flash0 DESTINATION assets) | |
endif() | ||
# packaging and code signing | ||
if(IOS) | ||
set(DEPLOYMENT_TARGET 8.0) | ||
file(GLOB IOSAssets ios/assets/*.png) | ||
list(REMOVE_ITEM IOSAssets ${CMAKE_CURRENT_SOURCE_DIR}/ios/assets/[email protected]) | ||
list(REMOVE_ITEM IOSAssets ${CMAKE_CURRENT_SOURCE_DIR}/ios/assets/[email protected]) | ||
|
@@ -1882,6 +1892,7 @@ if(IOS) | |
file(INSTALL pspautotests DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/assets) | ||
endif() | ||
set(RSRC_XIB_FILES assets/[email protected]) | ||
set(RSRC_XIB_FILES "Launch Screen.storyboard") | ||
set_source_files_properties(${RSRC_XIB_FILES} | ||
PROPERTIES MACOSX_PACKAGE_LOCATION Resources | ||
) | ||
|
@@ -1891,11 +1902,14 @@ if(IOS) | |
set(APP_DIR_NAME "$<TARGET_FILE_DIR:PPSSPP>") | ||
endif() | ||
add_custom_command(TARGET PPSSPP POST_BUILD | ||
COMMAND mkdir -p ${APP_DIR_NAME} | ||
COMMAND tar -c -C ${CMAKE_CURRENT_BINARY_DIR} --exclude .DS_Store --exclude .git assets *.png | tar -x -C ${APP_DIR_NAME} | ||
COMMAND mkdir -p \"${APP_DIR_NAME}\" | ||
COMMAND tar -c -C ${CMAKE_CURRENT_BINARY_DIR} --exclude .DS_Store --exclude .git assets *.png | tar -x -C \"${APP_DIR_NAME}\" | ||
) | ||
set(MACOSX_DEPLOYMENT_TARGET ${DEPLOYMENT_TARGET}) | ||
set_target_properties(${TargetBin} PROPERTIES | ||
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/ios/PPSSPP-Info.plist" | ||
RESOURCE "ios/Launch Screen.storyboard" | ||
XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET ${DEPLOYMENT_TARGET} | ||
XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "iPhone/iPad" | ||
XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC YES | ||
XCODE_ATTRIBUTE_ENABLE_BITCODE NO | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.