st/oxr: Add gfx to session gfx files

This commit is contained in:
Jakob Bornecrantz 2021-06-20 14:53:40 +01:00
parent 7bd1dba1d8
commit b8d88113c2
7 changed files with 10 additions and 7 deletions

View file

@ -0,0 +1 @@
OpenXR: Add prefix to gfx related session functions to improve sorting.

View file

@ -39,7 +39,7 @@ set(OXR_SOURCE_FILES
if(XRT_HAVE_VULKAN) if(XRT_HAVE_VULKAN)
list(APPEND OXR_SOURCE_FILES list(APPEND OXR_SOURCE_FILES
oxr_session_vk.c oxr_session_gfx_vk.c
oxr_swapchain_vk.c oxr_swapchain_vk.c
oxr_vulkan.c oxr_vulkan.c
) )
@ -54,7 +54,7 @@ endif()
if(XRT_HAVE_OPENGL OR XRT_HAVE_OPENGLES) if(XRT_HAVE_OPENGL OR XRT_HAVE_OPENGLES)
list(APPEND OXR_SOURCE_FILES list(APPEND OXR_SOURCE_FILES
oxr_session_gl.c oxr_session_gfx_gl.c
oxr_swapchain_gl.c oxr_swapchain_gl.c
) )
endif() endif()
@ -65,14 +65,16 @@ endif()
if(XRT_HAVE_EGL) if(XRT_HAVE_EGL)
add_definitions(-DXR_USE_PLATFORM_EGL) add_definitions(-DXR_USE_PLATFORM_EGL)
list(APPEND OXR_SOURCE_FILES oxr_session_egl.c) list(APPEND OXR_SOURCE_FILES
oxr_session_gfx_egl.c
)
endif() endif()
if(ANDROID) if(ANDROID)
add_definitions(-DXR_USE_PLATFORM_ANDROID) add_definitions(-DXR_USE_PLATFORM_ANDROID)
list(APPEND OXR_SOURCE_FILES list(APPEND OXR_SOURCE_FILES
oxr_session_gles_android.c oxr_session_gfx_gles_android.c
) )
endif() endif()

View file

@ -48,9 +48,9 @@ lib_st_oxr = static_library(
'oxr_objects.h', 'oxr_objects.h',
'oxr_path.c', 'oxr_path.c',
'oxr_session.c', 'oxr_session.c',
'oxr_session_gl.c', 'oxr_session_gfx_gl.c',
'oxr_session_egl.c', 'oxr_session_gfx_egl.c',
'oxr_session_vk.c', 'oxr_session_gfx_vk.c',
'oxr_space.c', 'oxr_space.c',
'oxr_swapchain.c', 'oxr_swapchain.c',
'oxr_swapchain_gl.c', 'oxr_swapchain_gl.c',