(Theos iOS) Add Theos iOS target

This commit is contained in:
twinaphex 2014-12-23 09:54:06 +01:00
parent 459c2ffba2
commit 6aa6a514b5
2 changed files with 33 additions and 6 deletions

View File

@ -61,6 +61,15 @@ ifeq ($(OSX_LT_MAVERICKS),"YES")
CXX += -miphoneos-version-min=5.0
PLATFORM_DEFINES := -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
@ -175,6 +184,19 @@ CXXFLAGS += $(fpic) $(DEFINES)
LIBS :=
%.o: %.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS) $(INCFLAGS)
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS) $(INCFLAGS)
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): $(OBJS)
@ -184,11 +206,6 @@ else
$(CXX) -o $@ $(SHARED) $(OBJS) $(LDFLAGS) $(LIBS)
endif
%.o: %.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS) $(INCFLAGS)
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS) $(INCFLAGS)
clean-objs:
rm -f $(OBJS)
@ -198,4 +215,4 @@ clean:
rm -f $(TARGET)
.PHONY: clean clean-objs
endif

View File

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