Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

(libretro-test) Add iOS target

  • Loading branch information...
commit 7113a3c61e8006136ea8db2cb4c90c203ab6f594 1 parent f9322af
@twinaphex twinaphex authored
Showing with 10 additions and 5 deletions.
  1. +3 −4 ios/RetroArch/main.m
  2. +7 −1 libretro-test/Makefile
View
7 ios/RetroArch/main.m
@@ -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 {
View
8 libretro-test/Makefile
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.