1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-03 00:38:44 +00:00

It's possible to build and run D3D10/11/12 without glslang/spirv-cross -

just no frontend shaders
This commit is contained in:
twinaphex 2019-07-20 21:23:37 +02:00
parent c6c8d03f29
commit 260b06750d
2 changed files with 11 additions and 15 deletions

View File

@ -1264,8 +1264,11 @@ ifeq ($(HAVE_VULKAN), 1)
OBJ += gfx/drivers/vulkan.o \
gfx/common/vulkan_common.o \
$(LIBRETRO_COMM_DIR)/vulkan/vulkan_symbol_wrapper.o \
gfx/drivers_font/vulkan_raster_font.o \
gfx/drivers_shader/shader_vulkan.o
gfx/drivers_font/vulkan_raster_font.o
ifeq ($(HAVE_SLANG), 1)
OBJ += gfx/drivers_shader/shader_vulkan.o
endif
ifeq ($(HAVE_VULKAN_DISPLAY), 1)
OBJ += gfx/drivers_context/khr_display_ctx.o
@ -1281,7 +1284,7 @@ endif
ifeq ($(HAVE_OPENGL_CORE), 1)
OBJ += gfx/drivers/gl_core.o \
gfx/drivers_font/gl_core_raster_font.o \
gfx/drivers_shader/shader_gl_core.o
gfx/drivers_shader/shader_gl_core.o
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_gl_core.o
endif

View File

@ -529,32 +529,25 @@ fi
if [ "$HAVE_SLANG" = 'no' ] ||
[ "$HAVE_GLSLANG" = 'no' ] ||
[ "$HAVE_SPIRV_CROSS" = 'no' ]; then
die : 'Notice: slang/glslang/SPIRV Cross disabled, disabling video drivers:'
if [ "$HAVE_SLANG" != "no" ]; then
die : 'Notice: slang disabled.'
HAVE_SLANG=no
fi
if [ "$HAVE_GLSLANG" != "no" ]; then
die : 'Notice: glslang disabled.'
HAVE_GLSLANG=no
fi
if [ "$HAVE_SPIRV_CROSS" != "no" ]; then
die : 'Notice: SPIRV-Cross disabled.'
HAVE_SPIRV_CROSS=no
fi
if [ "$HAVE_D3D11" != "no" ]; then
die : 'd3d11'
HAVE_D3D11=no
fi
if [ "$HAVE_D3D12" != "no" ]; then
die : 'd3d12'
HAVE_D3D12=no
fi
if [ "$HAVE_OPENGL_CORE" != "no" ]; then
die : 'glcore'
die : 'Notice: glcore disabled.'
HAVE_OPENGL_CORE=no
fi
if [ "$HAVE_VULKAN" != "no" ]; then
die : 'vulkan'
die : 'Notice: vulkan disabled.'
HAVE_VULKAN=no
fi
fi