use 32BPP flag on modern platforms
This commit is contained in:
@@ -66,6 +66,7 @@ LIBS :=
|
||||
ifeq ($(platform), unix)
|
||||
TARGET := $(TARGET_NAME)_libretro.so
|
||||
fpic := -fPIC
|
||||
WANT_32BPP := 1
|
||||
ifneq ($(findstring SunOS,$(shell uname -a)),)
|
||||
CC = gcc
|
||||
SHARED := -shared -z defs
|
||||
@@ -85,6 +86,8 @@ else ifeq ($(platform), osx)
|
||||
SHARED := -dynamiclib
|
||||
ifeq ($(arch),ppc)
|
||||
ENDIANNESS_DEFINES += -DMSB_FIRST -DHAVE_NO_LANGEXTRA
|
||||
else
|
||||
WANT_32BPP := 1
|
||||
endif
|
||||
ifeq ($(CROSS_COMPILE),1)
|
||||
TARGET_RULE = -target $(LIBRETRO_APPLE_PLATFORM) -isysroot $(LIBRETRO_APPLE_ISYSROOT)
|
||||
@@ -107,6 +110,7 @@ else ifneq (,$(findstring ios,$(platform)))
|
||||
|
||||
TARGET := $(TARGET_NAME)_libretro_ios.dylib
|
||||
fpic := -fPIC
|
||||
WANT_32BPP := 1
|
||||
SHARED := -dynamiclib
|
||||
CFLAGS += -DIOS
|
||||
ifeq ($(IOSSDK),)
|
||||
@@ -130,6 +134,7 @@ endif
|
||||
else ifeq ($(platform), tvos-arm64)
|
||||
TARGET := $(TARGET_NAME)_libretro_tvos.dylib
|
||||
fpic := -fPIC
|
||||
WANT_32BPP := 1
|
||||
SHARED := -dynamiclib
|
||||
CFLAGS += -DIOS
|
||||
ifeq ($(IOSSDK),)
|
||||
@@ -142,6 +147,7 @@ else ifeq ($(platform), tvos-arm64)
|
||||
else ifeq ($(platform), theos_ios)
|
||||
DEPLOYMENT_IOSVERSION = 5.0
|
||||
TARGET = iphone:latest:$(DEPLOYMENT_IOSVERSION)
|
||||
WANT_32BPP := 1
|
||||
ARCHS = armv7 armv7s
|
||||
TARGET_IPHONEOS_DEPLOYMENT_VERSION=$(DEPLOYMENT_IOSVERSION)
|
||||
THEOS_BUILD_DIR := objs
|
||||
@@ -245,6 +251,7 @@ else ifeq ($(platform), rpi3)
|
||||
else ifeq ($(platform), rpi3_64)
|
||||
TARGET := $(TARGET_NAME)_libretro.so
|
||||
fpic := -fPIC
|
||||
WANT_32BPP := 1
|
||||
SHARED := -shared -Wl,--version-script=src/drivers/libretro/link.T -Wl,-no-undefined
|
||||
CFLAGS += -mcpu=cortex-a53 -mtune=cortex-a53 -funsafe-math-optimizations
|
||||
CFLAGS += -fomit-frame-pointer -fstrict-aliasing -ffast-math
|
||||
@@ -253,6 +260,7 @@ else ifeq ($(platform), rpi3_64)
|
||||
else ifneq (,$(findstring rpi4,$(platform)))
|
||||
TARGET := $(TARGET_NAME)_libretro.so
|
||||
fpic := -fPIC
|
||||
WANT_32BPP := 1
|
||||
SHARED := -shared -Wl,--version-script=src/drivers/libretro/link.T -Wl,-no-undefined
|
||||
CFLAGS += -mcpu=cortex-a72 -mtune=cortex-a72 -funsafe-math-optimizations
|
||||
CFLAGS += -fomit-frame-pointer -fstrict-aliasing -ffast-math
|
||||
@@ -321,6 +329,7 @@ else ifeq ($(platform), wiiu)
|
||||
# Nintendo Switch (libtransistor)
|
||||
else ifeq ($(platform), switch)
|
||||
EXT=so
|
||||
WANT_32BPP := 1
|
||||
TARGET := $(TARGET_NAME)_libretro_$(platform).$(EXT)
|
||||
include $(LIBTRANSISTOR_HOME)/libtransistor.mk
|
||||
LDFLAGS = $(LD_SHARED_LIBRARY_FLAGS) -ltransistor.lib.nro $(LIBTRANSISTOR_LIB_LDFLAGS) -E
|
||||
@@ -330,6 +339,7 @@ else ifeq ($(platform), switch)
|
||||
else ifeq ($(platform), libnx)
|
||||
include $(DEVKITPRO)/libnx/switch_rules
|
||||
EXT=a
|
||||
WANT_32BPP := 1
|
||||
TARGET := $(TARGET_NAME)_libretro_$(platform).$(EXT)
|
||||
DEFINES := -DSWITCH=1 -U__linux__ -U__linux -DRARCH_INTERNAL
|
||||
CFLAGS := $(DEFINES) -g \
|
||||
@@ -430,6 +440,7 @@ else ifeq ($(platform), emscripten)
|
||||
TARGET := $(TARGET_NAME)_libretro_$(platform).bc
|
||||
STATIC_LINKING=1
|
||||
EXTERNAL_ZLIB=1
|
||||
WANT_32BPP := 1
|
||||
|
||||
# GCW0
|
||||
else ifeq ($(platform), gcw0)
|
||||
@@ -463,6 +474,7 @@ else ifeq ($(platform), miyoo)
|
||||
SHARED := -shared -Wl,--version-script=src/drivers/libretro/link.T -Wl,-no-undefined
|
||||
PLATFORM_DEFINES += -fomit-frame-pointer -ffast-math -mcpu=arm926ej-s
|
||||
EXTERNAL_ZLIB = 1
|
||||
WANT_32BPP := 1
|
||||
|
||||
# Windows MSVC 2017 all architectures
|
||||
else ifneq (,$(findstring windows_msvc2017,$(platform)))
|
||||
@@ -699,6 +711,7 @@ else
|
||||
TARGET := $(TARGET_NAME)_libretro.dll
|
||||
CC ?= gcc
|
||||
SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=src/drivers/libretro/link.T
|
||||
WANT_32BPP := 1
|
||||
endif
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
|
||||
Reference in New Issue
Block a user