st/oxr: Set XR_USE_GRAPHICS_API_VULKAN as a compile define like the others

This commit is contained in:
Jakob Bornecrantz 2022-05-02 16:27:17 +01:00 committed by Jakob Bornecrantz
parent d7613b9b67
commit 5f421503e9
2 changed files with 2 additions and 7 deletions

View file

@ -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

View file

@ -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()