|
4 | 4 | #include <Babylon/JsRuntime.h> |
5 | 5 | #ifndef BASEKIT_BUILD |
6 | 6 | #include <Babylon/Plugins/NativeCamera.h> |
| 7 | +#if !defined(_MSC_VER) |
7 | 8 | #include <Babylon/Plugins/NativeXr.h> |
8 | 9 | #endif |
| 10 | +#endif |
9 | 11 | #include <Babylon/Plugins/NativeCapture.h> |
10 | 12 | #include <Babylon/Plugins/NativeEngine.h> |
11 | 13 | #include <Babylon/Plugins/NativeInput.h> |
@@ -50,7 +52,7 @@ namespace BabylonNative |
50 | 52 | Babylon::JsRuntime::CreateForJavaScript(m_env, Babylon::CreateJsRuntimeDispatcher(m_env, jsiRuntime, m_jsDispatcher, m_isRunning)); |
51 | 53 |
|
52 | 54 | // Initialize Babylon Native plugins |
53 | | -#ifndef BASEKIT_BUILD |
| 55 | +#if !defined(BASEKIT_BUILD) && !defined(_MSC_VER) |
54 | 56 | m_nativeXr.emplace(Babylon::Plugins::NativeXr::Initialize(m_env)); |
55 | 57 | m_nativeXr->SetSessionStateChangedCallback([isXRActive{ m_isXRActive }](bool isSessionActive) { *isXRActive = isSessionActive; }); |
56 | 58 | Babylon::Plugins::NativeCamera::Initialize(m_env); |
@@ -215,7 +217,7 @@ namespace BabylonNative |
215 | 217 | #if defined(__APPLE__) || defined(ANDROID) |
216 | 218 | void UpdateXRView(WindowType window) |
217 | 219 | { |
218 | | -#ifndef BASEKIT_BUILD |
| 220 | +#if !defined(BASEKIT_BUILD) && !defined(_MSC_VER) |
219 | 221 | m_nativeXr->UpdateWindow(window); |
220 | 222 | #endif |
221 | 223 | } |
@@ -268,7 +270,7 @@ namespace BabylonNative |
268 | 270 | bool m_isRenderingEnabled{}; |
269 | 271 | std::once_flag m_isGraphicsInitialized{}; |
270 | 272 | Babylon::Plugins::NativeInput* m_nativeInput{}; |
271 | | -#ifndef BASEKIT_BUILD |
| 273 | +#if !defined(BASEKIT_BUILD) && !defined(WIN32) |
272 | 274 | std::optional<Babylon::Plugins::NativeXr> m_nativeXr{}; |
273 | 275 | #endif |
274 | 276 | Babylon::Graphics::Configuration m_graphicsConfig{}; |
|
0 commit comments