mirror of
https://github.com/libretro/RetroArch
synced 2025-03-27 23:37:39 +00:00
(qb/Makefile.common) Add checks for GLUI and XMB
This commit is contained in:
parent
deb834a132
commit
224dfb2570
@ -1,3 +1,19 @@
|
|||||||
|
ifeq ($(HAVE_GL_CONTEXT),)
|
||||||
|
HAVE_GL_CONTEXT=0
|
||||||
|
|
||||||
|
ifeq ($(HAVE_OPENGL), 1)
|
||||||
|
HAVE_GL_CONTEXT=1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HAVE_GLES), 1)
|
||||||
|
HAVE_GL_CONTEXT=1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HAVE_GLES3), 1)
|
||||||
|
HAVE_GL_CONTEXT=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_LIBRETRODB),)
|
ifeq ($(HAVE_LIBRETRODB),)
|
||||||
HAVE_LIBRETRODB = 1
|
HAVE_LIBRETRODB = 1
|
||||||
endif
|
endif
|
||||||
@ -45,13 +61,6 @@ CFLAGS += -I./libretro-common/include
|
|||||||
|
|
||||||
# Switches
|
# Switches
|
||||||
|
|
||||||
# Extra menu drivers if GL supported
|
|
||||||
ifeq ($(HAVE_OPENGL), 1)
|
|
||||||
ifeq ($(HAVE_RGUI), 1)
|
|
||||||
HAVE_GLUI = 1
|
|
||||||
HAVE_XMB = 1
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# System
|
# System
|
||||||
|
|
||||||
@ -328,6 +337,20 @@ ifeq ($(HAVE_NEON),1)
|
|||||||
OBJ += audio/audio_utils_neon.o
|
OBJ += audio/audio_utils_neon.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# XMB and GLUI are always enabled if supported and not explicitly disabled
|
||||||
|
ifeq ($(HAVE_RGUI)$(HAVE_GL_CONTEXT), 11)
|
||||||
|
ifeq ($(HAVE_GLUI),)
|
||||||
|
HAVE_GLUI = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HAVE_XMB),)
|
||||||
|
HAVE_XMB = 1
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
HAVE_GLUI = 0
|
||||||
|
HAVE_XMB = 0
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_RGUI), 1)
|
ifeq ($(HAVE_RGUI), 1)
|
||||||
OBJ += menu/drivers/rgui.o
|
OBJ += menu/drivers/rgui.o
|
||||||
DEFINES += -DHAVE_MENU -DHAVE_RGUI
|
DEFINES += -DHAVE_MENU -DHAVE_RGUI
|
||||||
@ -482,21 +505,6 @@ ifeq ($(HAVE_PARPORT), 1)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Video
|
# Video
|
||||||
ifeq ($(HAVE_GL_CONTEXT),)
|
|
||||||
HAVE_GL_CONTEXT=0
|
|
||||||
|
|
||||||
ifeq ($(HAVE_OPENGL), 1)
|
|
||||||
HAVE_GL_CONTEXT=1
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(HAVE_GLES), 1)
|
|
||||||
HAVE_GL_CONTEXT=1
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(HAVE_GLES3), 1)
|
|
||||||
HAVE_GL_CONTEXT=1
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(HAVE_GL_CONTEXT), 1)
|
ifeq ($(HAVE_GL_CONTEXT), 1)
|
||||||
DEFINES += -DHAVE_OPENGL -DHAVE_GLSL
|
DEFINES += -DHAVE_OPENGL -DHAVE_GLSL
|
||||||
|
@ -386,6 +386,18 @@ check_lib MMAP "$CLIB" mmap
|
|||||||
|
|
||||||
check_pkgconf PYTHON python3
|
check_pkgconf PYTHON python3
|
||||||
|
|
||||||
|
if [ "$HAVE_GLUI" != 'no' ] || [ "$HAVE_XMB" != 'no' ]; then
|
||||||
|
if [ "$HAVE_RGUI" = 'no' ]; then
|
||||||
|
HAVE_GLUI=no
|
||||||
|
HAVE_XMB=no
|
||||||
|
echo "Notice: RGUI not available, GLUI and XMB will be disabled."
|
||||||
|
elif [ "$HAVE_OPENGL" = 'no' ] && [ "$HAVE_GLES" = 'no' ]; then
|
||||||
|
HAVE_GLUI=no
|
||||||
|
HAVE_XMB=no
|
||||||
|
echo "Notice: GL/GLES not available, XMB and GLUI will be disabled."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
check_macro NEON __ARM_NEON__
|
check_macro NEON __ARM_NEON__
|
||||||
|
|
||||||
add_define_make OS "$OS"
|
add_define_make OS "$OS"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
HAVE_LIBRETRODB=yes # Disable libretrodb
|
HAVE_LIBRETRODB=yes # Disable libretrodb
|
||||||
HAVE_RGUI=yes # Disable RGUI
|
HAVE_RGUI=yes # Disable RGUI
|
||||||
HAVE_GLUI=no # Enable GLUI menu
|
HAVE_GLUI=auto # Enable GLUI menu
|
||||||
HAVE_XMB=no # Enable XMB menu
|
HAVE_XMB=auto # Enable XMB menu
|
||||||
HAVE_DYNAMIC=yes # Disable dynamic loading of libretro library
|
HAVE_DYNAMIC=yes # Disable dynamic loading of libretro library
|
||||||
HAVE_SDL=auto # SDL support
|
HAVE_SDL=auto # SDL support
|
||||||
HAVE_SDL2=auto # SDL2 support (disables SDL 1.x)
|
HAVE_SDL2=auto # SDL2 support (disables SDL 1.x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user