Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/ghost/CMakeLists.txt')
-rw-r--r--intern/ghost/CMakeLists.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/intern/ghost/CMakeLists.txt b/intern/ghost/CMakeLists.txt
index b096fecced8..93a8871c32f 100644
--- a/intern/ghost/CMakeLists.txt
+++ b/intern/ghost/CMakeLists.txt
@@ -270,11 +270,13 @@ elseif(WIN32)
)
list(APPEND SRC
+ intern/GHOST_ContextD3D.cpp
intern/GHOST_DisplayManagerWin32.cpp
intern/GHOST_DropTargetWin32.cpp
intern/GHOST_SystemWin32.cpp
intern/GHOST_WindowWin32.cpp
+ intern/GHOST_ContextD3D.h
intern/GHOST_DisplayManagerWin32.h
intern/GHOST_DropTargetWin32.h
intern/GHOST_SystemWin32.h
@@ -345,6 +347,43 @@ elseif(WIN32)
endif()
+if(WITH_OPENXR)
+ list(APPEND SRC
+ intern/GHOST_Xr.cpp
+ intern/GHOST_XrContext.cpp
+ intern/GHOST_XrEvent.cpp
+ intern/GHOST_XrGraphicsBinding.cpp
+ intern/GHOST_XrSession.cpp
+
+ GHOST_IXrContext.h
+ intern/GHOST_Xr_intern.h
+ intern/GHOST_Xr_openxr_includes.h
+ intern/GHOST_XrContext.h
+ intern/GHOST_IXrGraphicsBinding.h
+ intern/GHOST_XrSession.h
+ )
+ list(APPEND INC
+ )
+ list(APPEND INC_SYS
+ ${OPENXR_SDK_INCLUDES}
+ )
+
+ include(xr_platform_defines)
+
+ if(OPENXR_USE_BUNDLED_SRC)
+ if(WIN32)
+ set(OPENXR_LOADER_NAME openxr_loader-1_0)
+ else()
+ set(OPENXR_LOADER_NAME openxr_loader)
+ endif()
+
+ list(APPEND LIB ${OPENXR_LOADER_NAME})
+ list(APPEND INC ../../extern/openxr/include)
+ endif()
+
+ add_definitions(-DWITH_OPENXR)
+endif()
+
add_definitions(${GL_DEFINITIONS})
blender_add_lib(bf_intern_ghost "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")