Add ios-arm64 and tvos-arm64
This commit is contained in:
@@ -42,6 +42,14 @@ include:
|
|||||||
- project: 'libretro-infrastructure/ci-templates'
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
file: '/android-jni.yml'
|
file: '/android-jni.yml'
|
||||||
|
|
||||||
|
# iOS
|
||||||
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
|
file: '/ios-arm64.yml'
|
||||||
|
|
||||||
|
# iOS (armv7)
|
||||||
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
|
file: '/ios9.yml'
|
||||||
|
|
||||||
################################## CONSOLES ################################
|
################################## CONSOLES ################################
|
||||||
# Nintendo 3DS
|
# Nintendo 3DS
|
||||||
- project: 'libretro-infrastructure/ci-templates'
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
@@ -75,6 +83,12 @@ include:
|
|||||||
- project: 'libretro-infrastructure/ci-templates'
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
file: '/vita-static.yml'
|
file: '/vita-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
|
||||||
@@ -143,6 +157,24 @@ android-x86:
|
|||||||
- .libretro-android-jni-x86
|
- .libretro-android-jni-x86
|
||||||
- .core-defs
|
- .core-defs
|
||||||
|
|
||||||
|
# iOS
|
||||||
|
libretro-build-ios-arm64:
|
||||||
|
extends:
|
||||||
|
- .libretro-ios-arm64-make-default
|
||||||
|
- .core-defs
|
||||||
|
|
||||||
|
# iOS (armv7) [iOS 9 and up]
|
||||||
|
libretro-build-ios9:
|
||||||
|
extends:
|
||||||
|
- .libretro-ios9-make-default
|
||||||
|
- .core-defs
|
||||||
|
|
||||||
|
# tvOS
|
||||||
|
libretro-build-tvos-arm64:
|
||||||
|
extends:
|
||||||
|
- .libretro-tvos-arm64-make-default
|
||||||
|
- .core-defs
|
||||||
|
|
||||||
################################### CONSOLES #################################
|
################################### CONSOLES #################################
|
||||||
# PlayStation 2
|
# PlayStation 2
|
||||||
libretro-build-ps2:
|
libretro-build-ps2:
|
||||||
|
|||||||
@@ -104,6 +104,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 :=
|
||||||
CFLAGS += -Wno-error=implicit-function-declaration -DHAVE_POSIX_MEMALIGN
|
CFLAGS += -Wno-error=implicit-function-declaration -DHAVE_POSIX_MEMALIGN
|
||||||
|
|
||||||
ifeq ($(IOSSDK),)
|
ifeq ($(IOSSDK),)
|
||||||
@@ -123,16 +124,11 @@ endif
|
|||||||
CC_AS = perl ./tools/gas-preprocessor.pl $(CC)
|
CC_AS = perl ./tools/gas-preprocessor.pl $(CC)
|
||||||
|
|
||||||
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
|
|
||||||
CC_AS += -miphoneos-version-min=8.0
|
|
||||||
PLATFORM_DEFINES := -miphoneos-version-min=8.0 -DIOS
|
|
||||||
else
|
else
|
||||||
CC += -miphoneos-version-min=5.0
|
MINVERSION = -miphoneos-version-min=5.0
|
||||||
CXX += -miphoneos-version-min=5.0
|
|
||||||
CC_AS += -miphoneos-version-min=5.0
|
|
||||||
PLATFORM_DEFINES := -miphoneos-version-min=5.0 -DIOS
|
|
||||||
endif
|
endif
|
||||||
|
PLATFORM_DEFINES := $(MINVERSION) -DIOS
|
||||||
|
|
||||||
# tvOS
|
# tvOS
|
||||||
else ifeq ($(platform), tvos-arm64)
|
else ifeq ($(platform), tvos-arm64)
|
||||||
@@ -146,6 +142,12 @@ else ifeq ($(platform), tvos-arm64)
|
|||||||
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
|
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
CC = cc -arch arm64 -isysroot $(IOSSDK)
|
||||||
|
CC_AS = cc -arch arm64 -isysroot $(IOSSDK)
|
||||||
|
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
|
||||||
|
|
||||||
|
CC_AS = perl ./tools/gas-preprocessor.pl $(CC)
|
||||||
|
|
||||||
# Theos
|
# Theos
|
||||||
else ifeq ($(platform), theos_ios)
|
else ifeq ($(platform), theos_ios)
|
||||||
DEPLOYMENT_IOSVERSION = 5.0
|
DEPLOYMENT_IOSVERSION = 5.0
|
||||||
|
|||||||
Reference in New Issue
Block a user