mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #10480 from KentuckyCompass/ios-build-fix
Fix building for iOS
This commit is contained in:
commit
8e1ab3f6ff
2 changed files with 8 additions and 2 deletions
|
@ -1891,8 +1891,8 @@ 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_target_properties(${TargetBin} PROPERTIES
|
||||
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/ios/PPSSPP-Info.plist"
|
||||
|
|
|
@ -11,11 +11,17 @@
|
|||
#include "base/logging.h"
|
||||
#include "base/timeutil.h"
|
||||
#include "gfx_es2/draw_buffer.h"
|
||||
#include "ppsspp_config.h"
|
||||
#include "profiler/profiler.h"
|
||||
|
||||
#define MAX_CATEGORIES 64 // Can be any number, represents max profiled names.
|
||||
#define MAX_DEPTH 16 // Can be any number, represents max nesting depth of profiled names.
|
||||
#if PPSSPP_PLATFORM(IOS) && defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_9_0
|
||||
// iOS did not support C++ thread_local before iOS 9
|
||||
#define MAX_THREADS 1 // Can be any number, represents concurrent threads calling the profiler.
|
||||
#else
|
||||
#define MAX_THREADS 4 // Can be any number, represents concurrent threads calling the profiler.
|
||||
#endif
|
||||
#define HISTORY_SIZE 128 // Must be power of 2
|
||||
|
||||
#ifndef _DEBUG
|
||||
|
|
Loading…
Add table
Reference in a new issue