(Theos iOS) Add Theos iOS target (incomplete)

This commit is contained in:
twinaphex 2014-12-23 10:36:42 +01:00
parent b59a796262
commit c031bd12ea
2 changed files with 35 additions and 9 deletions

View File

@ -68,6 +68,15 @@ ifeq ($(OSX_LT_MAVERICKS),"YES")
CC += -miphoneos-version-min=5.0
CXX += -miphoneos-version-min=5.0
endif
else ifeq ($(platform), 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
@ -112,8 +121,6 @@ include Makefile.common
OBJECTS := $(SOURCES_CXX:.cxx=.o)
all: $(TARGET)
ifeq ($(DEBUG),1)
FLAGS += -O0 -g
else
@ -144,13 +151,6 @@ FLAGS += -D__LIBRETRO__ $(WARNINGS)
CXXFLAGS += $(FLAGS) -DHAVE_INTTYPES -DHAVE_GETTIMEOFDAY -DTHUMB_SUPPORT -DSOUND_SUPPORT -DBSPF_UNIX
CFLAGS += $(FLAGS) -std=gnu99
$(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $(OBJECTS)
else
$(CXX) -o $@ $^ $(LDFLAGS)
endif
%.o: %.cxx
$(CXX) -c -o $@ $< $(CXXFLAGS)
@ -160,7 +160,23 @@ endif
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
ifeq ($(platform), theos_ios)
COMMON_FLAGS := -DIOS $(COMMON_DEFINES) $(INCFLAGS) -I$(THEOS_INCLUDE_PATH) -Wno-error
$(LIBRARY_NAME)_CFLAGS += $(CFLAGS) $(COMMON_FLAGS)
$(LIBRARY_NAME)_CXXFLAGS += $(CXXFLAGS) $(COMMON_FLAGS)
${LIBRARY_NAME}_FILES = $(SOURCES_CXX) $(SOURCES_C)
include $(THEOS_MAKE_PATH)/library.mk
else
all: $(TARGET)
$(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $(OBJECTS)
else
$(CXX) -o $@ $^ $(LDFLAGS)
endif
clean:
rm -f $(TARGET) $(OBJECTS)
.PHONY: clean
endif

10
control Normal file
View File

@ -0,0 +1,10 @@
Package: com.libretro.stella
Name: stella
Depends:
Version: 0.0.1
Architecture: iphoneos-arm
Description: Libretro iOS core of Stella
Maintainer: libretro
Author: libretro
Section: System
Tag: role::developer