mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
st/oxr: Set XR_USE_GRAPHICS_API_VULKAN as a compile define like the others
This commit is contained in:
parent
d7613b9b67
commit
5f421503e9
|
@ -1,4 +1,4 @@
|
||||||
// Copyright 2018-2019, Collabora, Ltd.
|
// Copyright 2018-2022, Collabora, Ltd.
|
||||||
// SPDX-License-Identifier: BSL-1.0
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
/*!
|
/*!
|
||||||
* @file
|
* @file
|
||||||
|
@ -9,15 +9,9 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <xrt/xrt_config_have.h>
|
|
||||||
|
|
||||||
//! @todo Move these to the build system instead.
|
//! @todo Move these to the build system instead.
|
||||||
#define XR_USE_TIMESPEC 1
|
#define XR_USE_TIMESPEC 1
|
||||||
|
|
||||||
#ifdef XRT_HAVE_VULKAN
|
|
||||||
#define XR_USE_GRAPHICS_API_VULKAN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XR_USE_PLATFORM_ANDROID
|
#ifdef XR_USE_PLATFORM_ANDROID
|
||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -42,6 +42,7 @@ add_library(
|
||||||
)
|
)
|
||||||
|
|
||||||
if(XRT_HAVE_VULKAN)
|
if(XRT_HAVE_VULKAN)
|
||||||
|
target_compile_definitions(st_oxr PRIVATE XR_USE_GRAPHICS_API_VULKAN)
|
||||||
target_sources(st_oxr PRIVATE oxr_session_gfx_vk.c oxr_swapchain_vk.c oxr_vulkan.c)
|
target_sources(st_oxr PRIVATE oxr_session_gfx_vk.c oxr_swapchain_vk.c oxr_vulkan.c)
|
||||||
target_link_libraries(st_oxr PUBLIC Vulkan::Vulkan)
|
target_link_libraries(st_oxr PUBLIC Vulkan::Vulkan)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue