mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +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_ALT (1 << 19)
|
||||||
#define GSEVENT_MOD_CTRL (1 << 20)
|
#define GSEVENT_MOD_CTRL (1 << 20)
|
||||||
|
|
||||||
//#define HAVE_DEBUG_FILELOG
|
#define HAVE_DEBUG_FILELOG
|
||||||
|
|
||||||
static ios_input_data_t g_input_data;
|
static ios_input_data_t g_input_data;
|
||||||
|
|
||||||
@ -149,9 +149,8 @@ int main(int argc, char *argv[])
|
|||||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
|
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
|
||||||
NSString *documentsDirectory = [paths objectAtIndex:0];
|
NSString *documentsDirectory = [paths objectAtIndex:0];
|
||||||
NSString *logPath = [documentsDirectory stringByAppendingPathComponent:@"console_stdout.log"];
|
NSString *logPath = [documentsDirectory stringByAppendingPathComponent:@"console_stdout.log"];
|
||||||
freopen([logPath cStringUsingEncoding:NSASCIIStringEncoding], "a+", stdout);
|
freopen([logPath cStringUsingEncoding:NSASCIIStringEncoding], "a", stdout);
|
||||||
NSString *logPath2 = [documentsDirectory stringByAppendingPathComponent:@"console_stderr.log"];
|
//freopen([logPath cStringUsingEncoding:NSASCIIStringEncoding], "a", stderr);
|
||||||
freopen([logPath2 cStringUsingEncoding:NSASCIIStringEncoding], "a+", stderr);
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
|
@ -22,13 +22,19 @@ else ifeq ($(platform), osx)
|
|||||||
TARGET := $(TARGET_NAME)_libretro.dylib
|
TARGET := $(TARGET_NAME)_libretro.dylib
|
||||||
fpic := -fPIC
|
fpic := -fPIC
|
||||||
SHARED := -dynamiclib
|
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)
|
else ifeq ($(platform), qnx)
|
||||||
TARGET := $(TARGET_NAME)_libretro_qnx.so
|
TARGET := $(TARGET_NAME)_libretro_qnx.so
|
||||||
fpic := -fPIC
|
fpic := -fPIC
|
||||||
SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
|
SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
|
||||||
else
|
else
|
||||||
CC = gcc
|
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
|
SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=link.T -Wl,--no-undefined
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user