Skip to content
Snippets Groups Projects
Commit 1ca8eca5 authored by Alexy Pellegrini's avatar Alexy Pellegrini
Browse files

Enable OpenXR on Windows CI wheel build

parent 77f2bdd5
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,11 @@ set(VTK_MODULE_ENABLE_VTK_InfovisBoost NO CACHE STRING "") # Boost ...@@ -58,7 +58,11 @@ set(VTK_MODULE_ENABLE_VTK_InfovisBoost NO CACHE STRING "") # Boost
set(VTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms NO CACHE STRING "") # Boost set(VTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms NO CACHE STRING "") # Boost
set(VTK_MODULE_ENABLE_VTK_RenderingFreeTypeFontConfig NO CACHE STRING "") # fontconfig set(VTK_MODULE_ENABLE_VTK_RenderingFreeTypeFontConfig NO CACHE STRING "") # fontconfig
set(VTK_MODULE_ENABLE_VTK_RenderingOpenVR NO CACHE STRING "") # OpenVR set(VTK_MODULE_ENABLE_VTK_RenderingOpenVR NO CACHE STRING "") # OpenVR
set(VTK_MODULE_ENABLE_VTK_RenderingOpenXR NO CACHE STRING "") # OpenXR
if(NOT WIN32)
set(VTK_MODULE_ENABLE_VTK_RenderingOpenXR NO CACHE STRING "") # OpenXR disable on every system except Windows
endif()
set(VTK_MODULE_ENABLE_VTK_RenderingRayTracing NO CACHE STRING "") # OSPRay set(VTK_MODULE_ENABLE_VTK_RenderingRayTracing NO CACHE STRING "") # OSPRay
set(VTK_MODULE_ENABLE_VTK_RenderingZSpace NO CACHE STRING "") # zSpace set(VTK_MODULE_ENABLE_VTK_RenderingZSpace NO CACHE STRING "") # zSpace
set(VTK_MODULE_ENABLE_VTK_fides NO CACHE STRING "") # ADIOS2 set(VTK_MODULE_ENABLE_VTK_fides NO CACHE STRING "") # ADIOS2
......
...@@ -251,17 +251,19 @@ ...@@ -251,17 +251,19 @@
- git submodule sync --recursive - git submodule sync --recursive
- git submodule update --init --recursive - git submodule update --init --recursive
.before_script_windows_openxr_deps: &before_script_windows_openxr_deps
- cmake -P .gitlab/ci/download_openxr.cmake
- Set-Item -Force -Path "env:CMAKE_PREFIX_PATH" -Value "$pwdpath\.gitlab\openxr;$env:CMAKE_PREFIX_PATH"
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\openxr\x64\bin;$env:PATH"
- cmake -P .gitlab/ci/download_openxrremoting.cmake
- Set-Item -Force -Path "env:CMAKE_PREFIX_PATH" -Value "$pwdpath\.gitlab\openxrremoting\build\native;$env:CMAKE_PREFIX_PATH"
.before_script_windows_deps: &before_script_windows_deps .before_script_windows_deps: &before_script_windows_deps
- cmake -P .gitlab/ci/download_qt.cmake - cmake -P .gitlab/ci/download_qt.cmake
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\qt\bin;$env:PATH" - Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\qt\bin;$env:PATH"
- cmake -P .gitlab/ci/download_python.cmake - cmake -P .gitlab/ci/download_python.cmake
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\python;$env:PATH" - Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\python;$env:PATH"
- Set-Item -Force -Path "env:PYTHONHOME" -Value "$pwdpath\.gitlab\python" - Set-Item -Force -Path "env:PYTHONHOME" -Value "$pwdpath\.gitlab\python"
- cmake -P .gitlab/ci/download_openxr.cmake
- Set-Item -Force -Path "env:CMAKE_PREFIX_PATH" -Value "$pwdpath\.gitlab\openxr;$env:CMAKE_PREFIX_PATH"
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\openxr\x64\bin;$env:PATH"
- cmake -P .gitlab/ci/download_openxrremoting.cmake
- Set-Item -Force -Path "env:CMAKE_PREFIX_PATH" -Value "$pwdpath\.gitlab\openxrremoting\build\native;$env:CMAKE_PREFIX_PATH"
- cmake -P .gitlab/ci/download_tbb.cmake - cmake -P .gitlab/ci/download_tbb.cmake
- Set-Item -Force -Path "env:CMAKE_PREFIX_PATH" -Value "$pwdpath\.gitlab\tbb;$env:CMAKE_PREFIX_PATH" - Set-Item -Force -Path "env:CMAKE_PREFIX_PATH" -Value "$pwdpath\.gitlab\tbb;$env:CMAKE_PREFIX_PATH"
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\tbb\redist\$env:TBB_REDIST_DIR;$env:PATH" - Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\tbb\redist\$env:TBB_REDIST_DIR;$env:PATH"
...@@ -299,6 +301,7 @@ ...@@ -299,6 +301,7 @@
script: script:
- *before_script_windows - *before_script_windows
- *before_script_windows_deps - *before_script_windows_deps
- *before_script_windows_openxr_deps
- *script_windows - *script_windows
interruptible: true interruptible: true
...@@ -308,6 +311,7 @@ ...@@ -308,6 +311,7 @@
script: script:
- *before_script_windows - *before_script_windows
- *before_script_windows_deps - *before_script_windows_deps
- *before_script_windows_openxr_deps
# Reuse the venv from the build step (avoids version changes between # Reuse the venv from the build step (avoids version changes between
# build and testing). This is set up manually because Activate.ps1 # build and testing). This is set up manually because Activate.ps1
# doesn't seem to work for our extracted Python tarball. # doesn't seem to work for our extracted Python tarball.
...@@ -325,6 +329,7 @@ ...@@ -325,6 +329,7 @@
script: script:
- *before_script_windows - *before_script_windows
- *before_script_windows_deps - *before_script_windows_deps
- *before_script_windows_openxr_deps
# Reuse the venv from the build step (avoids version changes between # Reuse the venv from the build step (avoids version changes between
# build and testing). This is set up manually because Activate.ps1 # build and testing). This is set up manually because Activate.ps1
# doesn't seem to work for our extracted Python tarball. # doesn't seem to work for our extracted Python tarball.
...@@ -343,6 +348,7 @@ ...@@ -343,6 +348,7 @@
script: script:
- *before_script_windows - *before_script_windows
- *before_script_windows_openxr_deps
- cmake -P .gitlab/ci/download_wheel_python.cmake - cmake -P .gitlab/ci/download_wheel_python.cmake
- Set-Item -Force -Path "env:PYTHON_PREFIX" -Value "$pwdpath\.gitlab\python" - Set-Item -Force -Path "env:PYTHON_PREFIX" -Value "$pwdpath\.gitlab\python"
- Invoke-Expression -Command .gitlab/ci/buildcache.ps1 - Invoke-Expression -Command .gitlab/ci/buildcache.ps1
...@@ -376,6 +382,7 @@ ...@@ -376,6 +382,7 @@
script: script:
- *before_script_windows - *before_script_windows
- *before_script_windows_openxr_deps
- cmake -P .gitlab/ci/download_osmesa_windows.cmake - cmake -P .gitlab/ci/download_osmesa_windows.cmake
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\osmesa\bin;$env:PATH" - Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\osmesa\bin;$env:PATH"
- cmake -P .gitlab/ci/download_wheel_python.cmake - cmake -P .gitlab/ci/download_wheel_python.cmake
...@@ -453,5 +460,6 @@ ...@@ -453,5 +460,6 @@
script: script:
- *before_script_windows - *before_script_windows
- *before_script_windows_deps - *before_script_windows_deps
- *before_script_windows_openxr_deps
- *before_script_java_windows - *before_script_java_windows
- *script_windows - *script_windows
## OpenXR and OpenXRRemoting modules are now wrapped in Python and shipped in Windows VTK wheels!
OpenXR loader is shipped with the wheel, but OpenXR runtimes have to be installed by end user for their specific devices!
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment