(macOS) Add 64bit ARM MacOS support
This commit is contained in:
parent
1f99ed712d
commit
c13de4518c
|
@ -34,6 +34,10 @@ include:
|
||||||
# MacOS 64-bit
|
# MacOS 64-bit
|
||||||
- project: 'libretro-infrastructure/ci-templates'
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
file: '/osx-x64.yml'
|
file: '/osx-x64.yml'
|
||||||
|
|
||||||
|
# MacOS ARM 64-bit
|
||||||
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
|
file: '/osx-arm64.yml'
|
||||||
|
|
||||||
################################## CELLULAR ################################
|
################################## CELLULAR ################################
|
||||||
# Android
|
# Android
|
||||||
|
@ -93,6 +97,12 @@ libretro-build-osx-x64:
|
||||||
extends:
|
extends:
|
||||||
- .libretro-osx-x64-make-default
|
- .libretro-osx-x64-make-default
|
||||||
- .core-defs
|
- .core-defs
|
||||||
|
|
||||||
|
# MacOS ARM 64-bit
|
||||||
|
libretro-build-osx-arm64:
|
||||||
|
extends:
|
||||||
|
- .libretro-osx-arm64-make-default
|
||||||
|
- .core-defs
|
||||||
|
|
||||||
################################### CELLULAR #################################
|
################################### CELLULAR #################################
|
||||||
# Android ARMv7a
|
# Android ARMv7a
|
||||||
|
|
|
@ -20,6 +20,9 @@ else ifneq ($(findstring MINGW,$(shell uname -a)),)
|
||||||
else ifneq ($(findstring Darwin,$(shell uname -a)),)
|
else ifneq ($(findstring Darwin,$(shell uname -a)),)
|
||||||
platform = osx
|
platform = osx
|
||||||
arch = intel
|
arch = intel
|
||||||
|
ifeq ($(shell uname -p),arm)
|
||||||
|
arch = arm
|
||||||
|
endif
|
||||||
ifeq ($(shell uname -p),powerpc)
|
ifeq ($(shell uname -p),powerpc)
|
||||||
arch = ppc
|
arch = ppc
|
||||||
endif
|
endif
|
||||||
|
@ -36,6 +39,9 @@ EXE_EXT = .exe
|
||||||
else ifneq ($(findstring Darwin,$(shell uname -a)),)
|
else ifneq ($(findstring Darwin,$(shell uname -a)),)
|
||||||
system_platform = osx
|
system_platform = osx
|
||||||
arch = intel
|
arch = intel
|
||||||
|
ifeq ($(shell uname -p),arm)
|
||||||
|
arch = arm
|
||||||
|
endif
|
||||||
ifeq ($(shell uname -p),powerpc)
|
ifeq ($(shell uname -p),powerpc)
|
||||||
arch = ppc
|
arch = ppc
|
||||||
endif
|
endif
|
||||||
|
@ -138,11 +144,24 @@ else ifeq ($(platform), osx)
|
||||||
endif
|
endif
|
||||||
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
|
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
|
||||||
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
|
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
|
||||||
|
MINVERSION =
|
||||||
ifeq ($(OSX_LT_MAVERICKS),"YES")
|
ifeq ($(OSX_LT_MAVERICKS),"YES")
|
||||||
fpic += -mmacosx-version-min=10.2
|
MINVERSION = -mmacosx-version-min=10.2
|
||||||
else
|
else
|
||||||
fpic += -mmacosx-version-min=10.7 -stdlib=libc++
|
MINVERSION = -mmacosx-version-min=10.7
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(shell uname -p),arm)
|
||||||
|
MINVERSION =
|
||||||
|
endif
|
||||||
|
ifeq ($(CROSS_COMPILE),1)
|
||||||
|
TARGET_RULE = -target $(LIBRETRO_APPLE_PLATFORM) -isysroot $(LIBRETRO_APPLE_ISYSROOT)
|
||||||
|
CFLAGS += $(TARGET_RULE)
|
||||||
|
CPPFLAGS += $(TARGET_RULE)
|
||||||
|
CXXFLAGS += $(TARGET_RULE)
|
||||||
|
LDFLAGS += $(TARGET_RULE)
|
||||||
|
MINVERSION =
|
||||||
|
endif
|
||||||
|
fpic += $(MINVERSION) -stdlib=libc++
|
||||||
SHARED := -dynamiclib
|
SHARED := -dynamiclib
|
||||||
TILED_RENDERING=1
|
TILED_RENDERING=1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue