Add ios-arm64/tvos-arm64

This commit is contained in:
twinaphex 2021-03-14 11:50:23 +01:00
parent c13de4518c
commit f355646fb8
2 changed files with 31 additions and 16 deletions

View File

@ -44,7 +44,11 @@ include:
- project: 'libretro-infrastructure/ci-templates' - project: 'libretro-infrastructure/ci-templates'
file: '/android-jni.yml' file: '/android-jni.yml'
# iOS 9 # iOS
- project: 'libretro-infrastructure/ci-templates'
file: '/ios-arm64.yml'
# iOS (armv7)
- project: 'libretro-infrastructure/ci-templates' - project: 'libretro-infrastructure/ci-templates'
file: '/ios9.yml' file: '/ios9.yml'
@ -57,6 +61,12 @@ include:
- project: 'libretro-infrastructure/ci-templates' - project: 'libretro-infrastructure/ci-templates'
file: '/libnx-static.yml' file: '/libnx-static.yml'
# tvOS (AppleTV)
- project: 'libretro-infrastructure/ci-templates'
file: '/tvos-arm64.yml'
#################################### MISC ##################################
# Stages for building # Stages for building
stages: stages:
- build-prepare - build-prepare
@ -129,12 +139,24 @@ android-x86:
- .libretro-android-jni-x86 - .libretro-android-jni-x86
- .core-defs - .core-defs
# iOS 9 # iOS
libretro-build-ios-9: libretro-build-ios-arm64:
extends:
- .libretro-ios-arm64-make-default
- .core-defs
# iOS (armv7) [iOS 9 and up]
libretro-build-ios9:
extends: extends:
- .libretro-ios9-make-default - .libretro-ios9-make-default
- .core-defs - .core-defs
# tvOS
libretro-build-tvos-arm64:
extends:
- .libretro-tvos-arm64-make-default
- .core-defs
################################### CONSOLES ################################# ################################### CONSOLES #################################
# PlayStation Vita # PlayStation Vita
libretro-build-vita: libretro-build-vita:

View File

@ -170,6 +170,7 @@ else ifneq (,$(findstring ios,$(platform)))
TARGET := $(TARGET_NAME)_libretro_ios.dylib TARGET := $(TARGET_NAME)_libretro_ios.dylib
fpic := -fPIC fpic := -fPIC
SHARED := -dynamiclib SHARED := -dynamiclib
MINVERSION :=
ifeq ($(IOSSDK),) ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path) IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
endif endif
@ -181,22 +182,12 @@ else ifneq (,$(findstring ios,$(platform)))
CXX = clang++ -arch armv7 -isysroot $(IOSSDK) CXX = clang++ -arch armv7 -isysroot $(IOSSDK)
endif endif
CFLAGS += -DIOS CFLAGS += -DIOS
ifeq ($(platform), ios-arm64)
CXX = clang++ -arch armv7 -isysroot $(IOSSDK)
CC = clang -arch arm64 -isysroot $(IOSSDK)
else
CC = clang -arch armv7 -isysroot $(IOSSDK)
CXX = clang++ -arch armv7 -isysroot $(IOSSDK)
endif
ifeq ($(platform),$(filter $(platform),ios9 ios-arm64)) ifeq ($(platform),$(filter $(platform),ios9 ios-arm64))
CC += -miphoneos-version-min=8.0 MINVERSION = -miphoneos-version-min=8.0
CXX += -miphoneos-version-min=8.0
CFLAGS += -miphoneos-version-min=8.0
else else
CC += -miphoneos-version-min=5.0 MINVERSION = -miphoneos-version-min=5.0
CXX += -miphoneos-version-min=5.0
CFLAGS += -miphoneos-version-min=5.0
endif endif
CFLAGS += $(MINVERSION)
TILED_RENDERING=1 TILED_RENDERING=1
else ifeq ($(platform), tvos-arm64) else ifeq ($(platform), tvos-arm64)
@ -207,6 +198,8 @@ ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path) IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
endif endif
TILED_RENDERING = 1 TILED_RENDERING = 1
CC = cc -arch arm64 -isysroot $(IOSSDK)
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
# Theos iOS # Theos iOS
else ifeq ($(platform), theos_ios) else ifeq ($(platform), theos_ios)