mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-20 22:33:22 +02:00
(iOS/tvOS) Support compiling for arm64
This commit is contained in:
@@ -96,26 +96,46 @@ 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
|
||||||
|
CFLAGS += -Wno-error=implicit-function-declaration -DHAVE_POSIX_MEMALIGN
|
||||||
|
|
||||||
ifeq ($(IOSSDK),)
|
ifeq ($(IOSSDK),)
|
||||||
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
|
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(platform),$(filter $(platform),ios-arm64))
|
||||||
|
CC = cc -arch arm64 -isysroot $(IOSSDK)
|
||||||
|
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
|
||||||
|
else
|
||||||
CC = cc -arch armv7 -isysroot $(IOSSDK)
|
CC = cc -arch armv7 -isysroot $(IOSSDK)
|
||||||
CC_AS = perl ./tools/gas-preprocessor.pl $(CC)
|
|
||||||
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
|
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
|
||||||
ifeq ($(platform),ios9)
|
endif
|
||||||
|
|
||||||
|
CC_AS = perl ./tools/gas-preprocessor.pl $(CC)
|
||||||
|
|
||||||
|
ifeq ($(platform),$(filter $(platform),ios9 ios-arm64))
|
||||||
CC += -miphoneos-version-min=8.0
|
CC += -miphoneos-version-min=8.0
|
||||||
CXX += -miphoneos-version-min=8.0
|
CXX += -miphoneos-version-min=8.0
|
||||||
CC_AS += -miphoneos-version-min=8.0
|
CC_AS += -miphoneos-version-min=8.0
|
||||||
PLATFORM_DEFINES := -miphoneos-version-min=8.0
|
PLATFORM_DEFINES := -miphoneos-version-min=8.0 -DIOS
|
||||||
else
|
else
|
||||||
CC += -miphoneos-version-min=5.0
|
CC += -miphoneos-version-min=5.0
|
||||||
CXX += -miphoneos-version-min=5.0
|
CXX += -miphoneos-version-min=5.0
|
||||||
CC_AS += -miphoneos-version-min=5.0
|
CC_AS += -miphoneos-version-min=5.0
|
||||||
PLATFORM_DEFINES := -miphoneos-version-min=5.0
|
PLATFORM_DEFINES := -miphoneos-version-min=5.0 -DIOS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# tvOS
|
||||||
|
else ifeq ($(platform), tvos-arm64)
|
||||||
|
|
||||||
|
TARGET := $(TARGET_NAME)_libretro_tvos.dylib
|
||||||
|
fpic := -fPIC
|
||||||
|
SHARED := -dynamiclib
|
||||||
|
CFLAGS += -Wno-error=implicit-function-declaration -DHAVE_POSIX_MEMALIGN -DIOS
|
||||||
|
|
||||||
|
ifeq ($(IOSSDK),)
|
||||||
|
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
|
||||||
|
endif
|
||||||
|
|
||||||
# Theos
|
# Theos
|
||||||
else ifeq ($(platform), theos_ios)
|
else ifeq ($(platform), theos_ios)
|
||||||
DEPLOYMENT_IOSVERSION = 5.0
|
DEPLOYMENT_IOSVERSION = 5.0
|
||||||
|
|||||||
@@ -248,7 +248,9 @@
|
|||||||
#define HAVE_STRTOL 1
|
#define HAVE_STRTOL 1
|
||||||
|
|
||||||
/* Define to 1 if you have the `system' function. */
|
/* Define to 1 if you have the `system' function. */
|
||||||
|
#ifndef IOS
|
||||||
#define HAVE_SYSTEM 1
|
#define HAVE_SYSTEM 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
|
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user