[openxr-loader] update to 1.0.31 (#34901)

This commit is contained in:
Bradley Austin Davis 2023-12-01 02:15:12 -08:00 committed by GitHub
parent efe9c8a3e3
commit 7771a37ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 34 additions and 36 deletions

View File

@ -1,16 +0,0 @@
diff --git a/scripts/hpp_genxr.py b/scripts/hpp_genxr.py
index 6b95fe4..3a19058 100755
--- a/scripts/hpp_genxr.py
+++ b/scripts/hpp_genxr.py
@@ -80,6 +80,11 @@ def genTarget(args):
"XR_MSFT_controller_model",
# Projection of static string fails
"XR_MSFT_spatial_graph_bridge",
+ "XR_MSFT_spatial_anchor_persistence",
+ "XR_MSFT_holographic_window_attachment",
+ # Projection of UuidMSFT fails
+ "XR_MSFT_scene_understanding",
+ "XR_MSFT_scene_understanding_serialization",
))
# Turn lists of names/patterns into matching regular expressions

View File

@ -2,8 +2,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KhronosGroup/OpenXR-SDK
REF release-1.0.22
SHA512 fe3c393c2d11981b42355acd8dbc337727120bcd0ff595abac1975c4ce5f68bb74a9a1b4c959e64e9a847ae5d504100d31979ffd7d9702c55b2dbd889de17d3e
REF "release-${VERSION}"
SHA512 6efc7596e707f95366dbcdbac9bd7d0c20735a2175b4edf56a9e8a112cf0ab8b664069fe942313164a37119032ddbf5671bc88ab5f276005dd36e4a4dabba1c7
HEAD_REF master
PATCHES
fix-openxr-sdk-jsoncpp.patch
@ -12,8 +12,8 @@ vcpkg_from_github(
vcpkg_from_github(
OUT_SOURCE_PATH SDK_SOURCE_PATH
REPO KhronosGroup/OpenXR-SDK-Source
REF release-1.0.22
SHA512 92802d57a45ca1d697d3cea1b3f5619af4ba36156cb28c2c39b2295a74ebc45907caf371c916c54ec3be44a2f3ae447ffc1cd62f54b7b24f7a081408328c7651
REF "release-${VERSION}"
SHA512 04bdb0f16078209b5edd175a3396f70e1ceb8cfa382c65b8fda388e565480e3844daf68e0d987e72ed8c21d3148af0b41a2170911ec1660565887e0e5ae6d2bf
HEAD_REF master
PATCHES
fix-openxr-sdk-jsoncpp.patch
@ -23,11 +23,11 @@ vcpkg_from_github(
vcpkg_from_github(
OUT_SOURCE_PATH HPP_SOURCE_PATH
REPO KhronosGroup/OpenXR-hpp
REF release-1.0.21
SHA512 cda111f20392a64d5f4de6bd71f1fe7fe39d688bb2376c6b1841763459e32fd6d03b9552804b5ee464ba84cd4c05cfdaa1a6e8a8e5da3eae6b94c7797c65cb36
REF 63db9919822f8af6f7bf7416ba6a015d4617202e
SHA512 9e768f485d1631f8e74f35f028a64e2d64e33d362c53ae1c54427a10786e3befdd24089927319aa1a4b4c3e010247bd6cb3394bcee460c467c637ab6bc7bec90
HEAD_REF master
PATCHES
002-fix-hpp-gen.patch
python3_8_compatibility.patch
)
# Weird behavior inside the OpenXR loader. On Windows they force shared libraries to use static crt, and
@ -57,16 +57,13 @@ vcpkg_cmake_configure(
vcpkg_cmake_install()
# Generate the OpenXR C++ bindings
# Generate the OpenXR C++ bindings
set(ENV{OPENXR_REPO} "${SDK_SOURCE_PATH}")
file(STRINGS "${HPP_SOURCE_PATH}/headers.txt" HEADER_LIST REGEX "^openxr.*")
foreach(HEADER ${HEADER_LIST})
vcpkg_execute_required_process(
COMMAND ${PYTHON3} "${HPP_SOURCE_PATH}/scripts/hpp_genxr.py" -registry "${SDK_SOURCE_PATH}/specification/registry/xr.xml" -o "${CURRENT_PACKAGES_DIR}/include/openxr" ${HEADER}
WORKING_DIRECTORY "${HPP_SOURCE_PATH}"
LOGNAME openxrhpp
)
endforeach()
vcpkg_execute_required_process(
COMMAND ${PYTHON3} "${HPP_SOURCE_PATH}/scripts/hpp_genxr.py" -quiet -registry "${SDK_SOURCE_PATH}/specification/registry/xr.xml" -o "${CURRENT_PACKAGES_DIR}/include/openxr"
WORKING_DIRECTORY "${HPP_SOURCE_PATH}"
LOGNAME "openxr-hpp"
)
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_cmake_config_fixup(PACKAGE_NAME OpenXR CONFIG_PATH cmake)

View File

@ -0,0 +1,13 @@
diff --git a/scripts/hpp_genxr.py b/scripts/hpp_genxr.py
index ce419b0..23e1d3d 100644
--- a/scripts/hpp_genxr.py
+++ b/scripts/hpp_genxr.py
@@ -36,7 +36,7 @@ from xrconventions import OpenXRConventions
from data import EXCLUDED_EXTENSIONS
-def makeREstring(strings: Iterable[str], default: typing.Optional[str] = None) -> str:
+def makeREstring(strings, default: typing.Optional[str] = None) -> str:
"""Turn a list of strings into a regexp string matching exactly those strings."""
if strings or default is None:
return f"^({'|'.join(re.escape(s) for s in strings)})$"

View File

@ -1,7 +1,6 @@
{
"name": "openxr-loader",
"version": "1.0.22",
"port-version": 3,
"version": "1.0.31",
"description": "A royalty-free, open standard that provides high-performance access to Augmented Reality (AR) and Virtual Reality (VR)—collectively known as XR—platforms and devices",
"homepage": "https://github.com/KhronosGroup/OpenXR-SDK",
"license": "Apache-2.0",

View File

@ -6377,8 +6377,8 @@
"port-version": 0
},
"openxr-loader": {
"baseline": "1.0.22",
"port-version": 3
"baseline": "1.0.31",
"port-version": 0
},
"optimus-cpp": {
"baseline": "0.3.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "a8275bf000597b3d7cd12109347f21552bcd39cc",
"version": "1.0.31",
"port-version": 0
},
{
"git-tree": "e26b91f539cbbba23cc6ccd2eb9106322ba1c81c",
"version": "1.0.22",