mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +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
|
||||
/*!
|
||||
* @file
|
||||
|
@ -9,15 +9,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <xrt/xrt_config_have.h>
|
||||
|
||||
//! @todo Move these to the build system instead.
|
||||
#define XR_USE_TIMESPEC 1
|
||||
|
||||
#ifdef XRT_HAVE_VULKAN
|
||||
#define XR_USE_GRAPHICS_API_VULKAN
|
||||
#endif
|
||||
|
||||
#ifdef XR_USE_PLATFORM_ANDROID
|
||||
#include <jni.h>
|
||||
#endif
|
||||
|
|
|
@ -42,6 +42,7 @@ add_library(
|
|||
)
|
||||
|
||||
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_link_libraries(st_oxr PUBLIC Vulkan::Vulkan)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue