OpenXR - Do not allow OPENXR on ARMv7

This commit is contained in:
Lubos Vonasek 2024-03-22 09:44:27 +01:00
parent cd85b4d5e8
commit 75462180df

View File

@ -121,7 +121,7 @@ include(GNUInstallDirs)
add_definitions(-DASSETS_DIR="${CMAKE_INSTALL_FULL_DATADIR}/ppsspp/assets/")
if(OPENXR)
if(OPENXR AND NOT ARMV7_DEVICE)
add_definitions(-DOPENXR)
add_subdirectory(ext/OpenXR-SDK)
message("OpenXR enabled")
@ -241,7 +241,7 @@ include_directories(ext/glslang)
# Anyway, glew will be going away anyway.
include_directories(ext/glew)
if(OPENXR)
if(OPENXR AND NOT ARMV7_DEVICE)
set(OPENGL_LIBRARIES GLESv3 EGL)
elseif(NOT OPENGL_LIBRARIES AND USING_GLES2)
set(OPENGL_LIBRARIES GLESv2 EGL)
@ -1246,7 +1246,7 @@ set(BASISU_LIBRARIES basis_universal)
set(nativeExtra)
set(nativeExtraLibs)
if (OPENXR)
if(OPENXR AND NOT ARMV7_DEVICE)
set(nativeExtraLibs ${nativeExtraLibs} openxr_loader)
endif()