summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2014-12-23 08:58:58 +0100
committertwinaphex2014-12-23 08:58:58 +0100
commitf66824b7e53fd1ea0534577e24c078a4912d7dd1 (patch)
treed1e1108c3a3ac4d4f7e6dfad883263f87d4483f6
parentee3a885f7c4fbf72a348273bcec409cf219d5050 (diff)
downloadpicogpsp-f66824b7e53fd1ea0534577e24c078a4912d7dd1.tar.gz
picogpsp-f66824b7e53fd1ea0534577e24c078a4912d7dd1.tar.bz2
picogpsp-f66824b7e53fd1ea0534577e24c078a4912d7dd1.zip
(Theos iOS) Add Theos iOS target
-rw-r--r--Makefile23
-rw-r--r--control10
2 files changed, 31 insertions, 2 deletions
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