2020-03-03 23:24:39 +00:00
|
|
|
# Copyright 2019-2020, Collabora, Ltd.
|
2019-04-18 12:02:30 +00:00
|
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
|
|
|
|
set(OXR_SOURCE_FILES
|
|
|
|
oxr_api_action.c
|
|
|
|
oxr_api_funcs.h
|
|
|
|
oxr_api_instance.c
|
|
|
|
oxr_api_negotiate.c
|
|
|
|
oxr_api_session.c
|
|
|
|
oxr_api_space.c
|
|
|
|
oxr_api_swapchain.c
|
|
|
|
oxr_api_system.c
|
|
|
|
oxr_api_verify.h
|
2019-09-02 21:04:13 +00:00
|
|
|
oxr_binding.c
|
2019-06-03 19:12:01 +00:00
|
|
|
oxr_chain.h
|
2019-10-08 14:35:16 +00:00
|
|
|
oxr_event.c
|
2019-08-19 17:37:50 +00:00
|
|
|
oxr_extension_support.h
|
2019-04-18 12:02:30 +00:00
|
|
|
oxr_handle_base.c
|
2019-05-07 12:47:18 +00:00
|
|
|
oxr_input.c
|
2019-04-18 12:02:30 +00:00
|
|
|
oxr_instance.c
|
2019-10-08 14:35:16 +00:00
|
|
|
oxr_logger.c
|
2019-04-18 12:02:30 +00:00
|
|
|
oxr_logger.h
|
|
|
|
oxr_objects.h
|
|
|
|
oxr_path.c
|
|
|
|
oxr_session.c
|
|
|
|
oxr_session_vk.c
|
|
|
|
oxr_space.c
|
|
|
|
oxr_swapchain.c
|
|
|
|
oxr_swapchain_vk.c
|
|
|
|
oxr_system.c
|
|
|
|
oxr_two_call.h
|
2019-10-08 14:40:40 +00:00
|
|
|
oxr_verify.c
|
2019-04-18 12:02:30 +00:00
|
|
|
oxr_vulkan.c
|
2019-05-07 12:47:18 +00:00
|
|
|
oxr_xdev.c
|
2019-04-18 12:02:30 +00:00
|
|
|
)
|
|
|
|
|
2019-12-03 23:40:38 +00:00
|
|
|
if(BUILD_WITH_OPENGL)
|
|
|
|
add_definitions(-DXR_USE_GRAPHICS_API_OPENGL -DXR_USE_GRAPHICS_API_OPENGL_ES)
|
2019-12-03 22:33:16 +00:00
|
|
|
list(APPEND OXR_SOURCE_FILES
|
|
|
|
oxr_session_gl.c
|
|
|
|
oxr_swapchain_gl.c
|
|
|
|
)
|
2019-12-03 23:40:38 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(BUILD_WITH_XLIB)
|
|
|
|
add_definitions(-DXR_USE_PLATFORM_XLIB)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(BUILD_WITH_EGL)
|
|
|
|
add_definitions(-DXR_USE_PLATFORM_EGL)
|
2019-12-03 22:33:16 +00:00
|
|
|
list(APPEND OXR_SOURCE_FILES oxr_session_egl.c)
|
2019-12-03 23:40:38 +00:00
|
|
|
endif()
|
|
|
|
|
2020-03-03 23:24:39 +00:00
|
|
|
add_library(st_oxr STATIC ${OXR_SOURCE_FILES})
|
2020-03-31 19:59:02 +00:00
|
|
|
target_link_libraries(st_oxr PRIVATE xrt-interfaces xrt-external-openxr aux_util aux_math Vulkan::Vulkan comp_client)
|