mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 17:04:34 +00:00
(libretro-test) Add iOS target
This commit is contained in:
parent
f9322afd1f
commit
7113a3c61e
@ -40,7 +40,7 @@
|
||||
#define GSEVENT_MOD_ALT (1 << 19)
|
||||
#define GSEVENT_MOD_CTRL (1 << 20)
|
||||
|
||||
//#define HAVE_DEBUG_FILELOG
|
||||
#define HAVE_DEBUG_FILELOG
|
||||
|
||||
static ios_input_data_t g_input_data;
|
||||
|
||||
@ -149,9 +149,8 @@ int main(int argc, char *argv[])
|
||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
|
||||
NSString *documentsDirectory = [paths objectAtIndex:0];
|
||||
NSString *logPath = [documentsDirectory stringByAppendingPathComponent:@"console_stdout.log"];
|
||||
freopen([logPath cStringUsingEncoding:NSASCIIStringEncoding], "a+", stdout);
|
||||
NSString *logPath2 = [documentsDirectory stringByAppendingPathComponent:@"console_stderr.log"];
|
||||
freopen([logPath2 cStringUsingEncoding:NSASCIIStringEncoding], "a+", stderr);
|
||||
freopen([logPath cStringUsingEncoding:NSASCIIStringEncoding], "a", stdout);
|
||||
//freopen([logPath cStringUsingEncoding:NSASCIIStringEncoding], "a", stderr);
|
||||
#endif
|
||||
#endif
|
||||
@autoreleasepool {
|
||||
|
@ -22,13 +22,19 @@ else ifeq ($(platform), osx)
|
||||
TARGET := $(TARGET_NAME)_libretro.dylib
|
||||
fpic := -fPIC
|
||||
SHARED := -dynamiclib
|
||||
else ifeq ($(platform), ios)
|
||||
TARGET := $(TARGET_NAME)_libretro_ios.dylib
|
||||
fpic := -fPIC
|
||||
SHARED := -dynamiclib
|
||||
DEFINES := -DIOS
|
||||
CC = clang -arch armv7 -isysroot $(IOSSDK)
|
||||
else ifeq ($(platform), qnx)
|
||||
TARGET := $(TARGET_NAME)_libretro_qnx.so
|
||||
fpic := -fPIC
|
||||
SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
|
||||
else
|
||||
CC = gcc
|
||||
TARGET := retro.dll
|
||||
TARGET := $(TARGET_NAME)_retro.dll
|
||||
SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=link.T -Wl,--no-undefined
|
||||
endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user