X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=Makefile.libretro;h=b2ccc415b417403d6906823a9b72d978bf1b0f8e;hb=c98b37aaa3f75b7b787e7c0e5815e1c8138889cd;hp=b2759d8e91cb50c1291df99efb5e37f1febc55c8;hpb=6c991e7ced6e893064dafbe7bd64b98c978f6195;p=picodrive.git diff --git a/Makefile.libretro b/Makefile.libretro index b2759d8..b2ccc41 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -25,6 +25,10 @@ CFLAGS ?= TARGET_NAME := picodrive LIBM := -lm +GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)" +ifneq ($(GIT_VERSION)," unknown") + CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" +endif asm_memory = 0 asm_render = 0 @@ -105,6 +109,35 @@ endif use_sh2drc = 1 use_svpdrc = 1 +else ifneq (,$(findstring ios_static,$(platform))) + TARGET := $(TARGET_NAME)_libretro_ios.a + SHARED := -dynamiclib + fpic := -fPIC + APPLE := 1 + ifeq ($(IOSSDK),) + IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path) + endif + CC = clang -arch armv7 -isysroot $(IOSSDK) + CXX = clang++ -arch armv7 -isysroot $(IOSSDK) + CC_AS = perl ./tools/gas-preprocessor.pl $(CC) + CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -marm + ASFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon + CFLAGS += -DIOS + + CC += -miphoneos-version-min=8.0 + CXX += -miphoneos-version-min=8.0 + CC_AS += -miphoneos-version-min=8.0 + CFLAGS += -miphoneos-version-min=8.0 + ARCH := arm + + STATIC_LINKING = 1 + use_cyclone = 0 + use_fame = 1 + use_drz80 = 0 + use_cz80 = 1 + use_sh2drc = 1 + use_svpdrc = 1 + # PS3 else ifeq ($(platform), ps3) TARGET := $(TARGET_NAME)_libretro_$(platform).a