From 56f56d804bfc55fea8a4f6d2b7fecbaf30f4d5e7 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 23 Dec 2014 09:44:11 +0100 Subject: (Theos iOS) Add Theos iOS target --- Makefile | 22 +++++++++++++++++++--- control | 10 ++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 control diff --git a/Makefile b/Makefile index 3e7515c..c4c62db 100644 --- a/Makefile +++ b/Makefile @@ -79,6 +79,17 @@ ifeq ($(OSX_LT_MAVERICKS),"YES") CC += -miphoneos-version-min=5.0 CXX += -miphoneos-version-min=5.0 endif +else ifeq ($(platform), theos_ios) + # Theos iOS +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 + +LIBRARY_NAME = $(TARGET_NAME)_libretro_ios + else ifeq ($(platform), qnx) TARGET := $(TARGET_NAME)_libretro_qnx.so fpic := -fPIC @@ -135,11 +146,8 @@ LIBRETRO_DIR := . include Makefile.common - OBJECTS := $(SOURCES_C:.c=.o) -all: $(TARGET) - ifeq ($(DEBUG),1) FLAGS += -O0 -g else @@ -183,6 +191,13 @@ FLAGS += -D__LIBRETRO__ $(WARNINGS) $(INCLUDE) $(DEFS) CXXFLAGS += $(FLAGS) CFLAGS += $(FLAGS) +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) +include $(THEOS_MAKE_PATH)/library.mk +else +all: $(TARGET) $(TARGET): $(OBJECTS) ifeq ($(STATIC_LINKING), 1) $(AR) rcs $@ $(OBJECTS) @@ -200,3 +215,4 @@ clean: rm -f $(TARGET) $(OBJECTS) .PHONY: clean +endif diff --git a/control b/control new file mode 100644 index 0000000..9397a89 --- /dev/null +++ b/control @@ -0,0 +1,10 @@ +Package: com.libretro.catsfc +Name: catsfc +Depends: +Version: 0.0.1 +Architecture: iphoneos-arm +Description: Libretro iOS core of catSFC +Maintainer: libretro +Author: libretro +Section: System +Tag: role::developer -- cgit v1.2.3