From: Twinaphex Date: Tue, 21 Feb 2017 23:11:27 +0000 (+0100) Subject: Add staticios target (for iOS 8 and later) X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=9795f2cd889e10510c9dc14ddf8198a0f45f8363;hp=-c;p=picodrive.git Add staticios target (for iOS 8 and later) --- 9795f2cd889e10510c9dc14ddf8198a0f45f8363 diff --git a/Makefile.libretro b/Makefile.libretro index b2ccc415..d1a75029 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -73,11 +73,8 @@ else ifeq ($(platform), osx) OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"` SHARED += -mmacosx-version-min=10.1 -# iOS -else ifneq (,$(findstring ios,$(platform))) - TARGET := $(TARGET_NAME)_libretro_ios.dylib - SHARED := -dynamiclib - fpic := -fPIC +else ifeq ($(platform), staticios) + TARGET := $(TARGET_NAME)_libretro_ios.a APPLE := 1 ifeq ($(IOSSDK),) IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path) @@ -89,19 +86,13 @@ else ifneq (,$(findstring ios,$(platform))) ASFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon CFLAGS += -DIOS -ifeq ($(platform),ios9) 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 -else - CC += -miphoneos-version-min=5.0 - CXX += -miphoneos-version-min=5.0 - CC_AS += -miphoneos-version-min=5.0 - CFLAGS += -miphoneos-version-min=5.0 -endif ARCH := arm + STATIC_LINKING = 1 use_cyclone = 0 use_fame = 1 use_drz80 = 0 @@ -109,8 +100,9 @@ endif use_sh2drc = 1 use_svpdrc = 1 -else ifneq (,$(findstring ios_static,$(platform))) - TARGET := $(TARGET_NAME)_libretro_ios.a +# iOS +else ifneq (,$(findstring ios,$(platform))) + TARGET := $(TARGET_NAME)_libretro_ios.dylib SHARED := -dynamiclib fpic := -fPIC APPLE := 1 @@ -124,13 +116,19 @@ else ifneq (,$(findstring ios_static,$(platform))) ASFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon CFLAGS += -DIOS +ifeq ($(platform),ios9) 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 +else + CC += -miphoneos-version-min=5.0 + CXX += -miphoneos-version-min=5.0 + CC_AS += -miphoneos-version-min=5.0 + CFLAGS += -miphoneos-version-min=5.0 +endif ARCH := arm - STATIC_LINKING = 1 use_cyclone = 0 use_fame = 1 use_drz80 = 0