mirror of
https://github.com/libretro/gambatte-libretro.git
synced 2024-11-22 23:39:58 +00:00
(Theos iOS) Add Theos iOS target
This commit is contained in:
parent
459c2ffba2
commit
6aa6a514b5
@ -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
|
||||
|
10
libgambatte/libretro/control
Normal file
10
libgambatte/libretro/control
Normal 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
|
Loading…
Reference in New Issue
Block a user