Commit 7923cf00 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

(Theos iOS) Add Theos iOS target

parent e1bada70
......@@ -37,6 +37,16 @@ ifeq ($(IOSSDK),)
IOSSDK := $(shell xcrun -sdk iphoneos -show-sdk-path)
endif
CC = clang -arch armv7 -isysroot $(IOSSDK)
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
......@@ -86,6 +96,12 @@ ifneq ($(fpic),)
with_fpic := --with-pic=yes
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)
include $(THEOS_MAKE_PATH)/library.mk
else
all: $(TARGET)
$(TARGET): $(OBJECTS)
......@@ -102,4 +118,4 @@ clean:
rm -f $(OBJECTS) $(TARGET)
.PHONY: clean
endif
Package: com.libretro.2048
Name: 2048
Depends:
Version: 0.0.1
Architecture: iphoneos-arm
Description: Libretro iOS core of 2048
Maintainer: libretro
Author: libretro
Section: System
Tag: role::developer
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment