mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-20 22:33:22 +02:00
(MacOS) Add ARM64 MacOS build
This commit is contained in:
@@ -29,6 +29,10 @@ include:
|
|||||||
- project: 'libretro-infrastructure/ci-templates'
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
file: '/linux-i686.yml'
|
file: '/linux-i686.yml'
|
||||||
|
|
||||||
|
# MacOS ARM 64-bit
|
||||||
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
|
file: '/osx-arm64.yml'
|
||||||
|
|
||||||
# MacOS 64-bit
|
# MacOS 64-bit
|
||||||
- project: 'libretro-infrastructure/ci-templates'
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
file: '/osx-x64.yml'
|
file: '/osx-x64.yml'
|
||||||
@@ -104,6 +108,12 @@ libretro-build-osx-x64:
|
|||||||
- .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
|
||||||
android-armeabi-v7a:
|
android-armeabi-v7a:
|
||||||
|
|||||||
@@ -83,11 +83,21 @@ else ifeq ($(platform), osx)
|
|||||||
fpic := -fPIC
|
fpic := -fPIC
|
||||||
SHARED := -dynamiclib
|
SHARED := -dynamiclib
|
||||||
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
|
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
|
||||||
|
CFLAGS += -DHAVE_POSIX_MEMALIGN
|
||||||
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
|
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
|
||||||
ifeq ($(OSX_LT_MAVERICKS),"YES")
|
ifeq ($(OSX_LT_MAVERICKS),"YES")
|
||||||
fpic += -mmacosx-version-min=10.5
|
fpic += -mmacosx-version-min=10.5
|
||||||
endif
|
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)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# iOS
|
# iOS
|
||||||
else ifneq (,$(findstring ios,$(platform)))
|
else ifneq (,$(findstring ios,$(platform)))
|
||||||
|
|
||||||
@@ -102,9 +112,11 @@ else ifneq (,$(findstring ios,$(platform)))
|
|||||||
|
|
||||||
ifeq ($(platform),$(filter $(platform),ios-arm64))
|
ifeq ($(platform),$(filter $(platform),ios-arm64))
|
||||||
CC = cc -arch arm64 -isysroot $(IOSSDK)
|
CC = cc -arch arm64 -isysroot $(IOSSDK)
|
||||||
|
CC_AS = cc -arch arm64 -isysroot $(IOSSDK)
|
||||||
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
|
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
|
||||||
else
|
else
|
||||||
CC = cc -arch armv7 -isysroot $(IOSSDK)
|
CC = cc -arch armv7 -isysroot $(IOSSDK)
|
||||||
|
CC_AS = cc -arch armv7 -isysroot $(IOSSDK)
|
||||||
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
|
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#ifndef IOS
|
#ifndef __APPLE__
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user