From f66824b7e53fd1ea0534577e24c078a4912d7dd1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 23 Dec 2014 08:58:58 +0100 Subject: [PATCH] (Theos iOS) Add Theos iOS target --- Makefile | 23 +++++++++++++++++++++-- control | 10 ++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 control diff --git a/Makefile b/Makefile index 428fd25..01f0e58 100644 --- a/Makefile +++ b/Makefile @@ -97,8 +97,8 @@ else ifeq ($(platform), osx) HAVE_MMAP = 1 endif -# iOS else ifeq ($(platform), ios) + # iOS TARGET := $(TARGET_NAME)_libretro_ios.dylib fpic := -fPIC SHARED := -dynamiclib @@ -116,9 +116,21 @@ else ifeq ($(platform), ios) CC += -miphoneos-version-min=5.0 CFLAGS += -miphoneos-version-min=5.0 endif +else ifeq ($(platform), theos_ios) + # iOS Theos + DEPLOYMENT_IOSVERSION = 5.0 + TARGET = iphone:latest:$(DEPLOYMENT_IOSVERSION) + ARCHS = armv7 armv7s + TARGET_IPHONEOS_DEPLOYMENT_VERSION=$(DEPLOYMENT_IOSVERSION) + THEOS_BUILD_DIR := objs + include $(THEOS)/makefiles/common.mk -# QNX + CFLAGS += -DIOS -DHAVE_POSIX_MEMALIGN -marm + CPU_ARCH := arm + +LIBRARY_NAME = $(TARGET_NAME)_libretro_ios else ifeq ($(platform), qnx) + # QNX TARGET := $(TARGET_NAME)_libretro_qnx.so fpic := -fPIC SHARED := -shared -Wl,--version-script=link.T @@ -278,6 +290,12 @@ ifeq ($(FRONTEND_SUPPORTS_RGB565), 1) endif +ifeq ($(platform), theos_ios) +COMMON_FLAGS := -DIOS $(COMMON_DEFINES) $(INCFLAGS) -I$(THEOS_INCLUDE_PATH) -Wno-error +$(LIBRARY_NAME)_CFLAGS += $(COMMON_FLAGS) $(CFLAGS) +${LIBRARY_NAME}_FILES = $(SOURCES_C) $(SOURCES_ASM) +include $(THEOS_MAKE_PATH)/library.mk +else all: $(TARGET) $(TARGET): $(OBJECTS) @@ -303,3 +321,4 @@ clean: rm -f $(OBJECTS) $(TARGET) .PHONY: clean +endif diff --git a/control b/control new file mode 100644 index 0000000..f994fb1 --- /dev/null +++ b/control @@ -0,0 +1,10 @@ +Package: com.libretro.gpsp +Name: gpSP +Depends: +Version: 0.0.1 +Architecture: iphoneos-arm +Description: Libretro iOS core of gpSP +Maintainer: libretro +Author: libretro +Section: System +Tag: role::developer