From 0c2b69c78e92b4207bcdd83c21967925924889c3 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 00:03:12 -0700 Subject: [PATCH 01/15] [directxmesh, directxex, directxtk, uvatlas] Update for October 2024 release --- ports/directxmesh/portfile.cmake | 8 ++++---- ports/directxmesh/vcpkg.json | 2 +- ports/directxtex/portfile.cmake | 16 ++++++++-------- ports/directxtex/vcpkg.json | 2 +- ports/directxtk/portfile.cmake | 11 ++++++----- ports/directxtk/vcpkg.json | 9 ++++++++- ports/directxtk12/portfile.cmake | 11 ++++++----- ports/directxtk12/vcpkg.json | 9 ++++++++- ports/uvatlas/portfile.cmake | 6 +++--- ports/uvatlas/vcpkg.json | 2 +- 10 files changed, 46 insertions(+), 30 deletions(-) diff --git a/ports/directxmesh/portfile.cmake b/ports/directxmesh/portfile.cmake index 5536ac6fffee60..bdf5d05cba7ca6 100644 --- a/ports/directxmesh/portfile.cmake +++ b/ports/directxmesh/portfile.cmake @@ -1,4 +1,4 @@ -set(DIRECTXMESH_TAG sep2024) +set(DIRECTXMESH_TAG oct2024) vcpkg_check_linkage(ONLY_STATIC_LIBRARY) @@ -6,7 +6,7 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO Microsoft/DirectXMesh REF ${DIRECTXMESH_TAG} - SHA512 ea0f39c14613e60e967eaea2735f73730a1c79f9fdd9b3d799b6c765843804dd7c002dedac8f566989bac99dc41dfa9b1a9a14e141a0917f888d3e3c6ecf47cb + SHA512 a7d6eca75315a8f24fdc7753fd0e0b26b1b170ef0ffa1954065164f5da567ba09d1605c45cae91cf73dccc04f52162c3ad62f6a83eddf33c076e6ffb4723276d HEAD_REF main ) @@ -41,7 +41,7 @@ if("tools" IN_LIST FEATURES) MESHCONVERT_EXE URLS "https://github.com/Microsoft/DirectXMesh/releases/download/${DIRECTXMESH_TAG}/meshconvert.exe" FILENAME "meshconvert-${DIRECTXMESH_TAG}.exe" - SHA512 f7cfd5d89d92bfe9e6b58691444b9b49e42b88b721f52abe40af4a090f3ff45476727116131fae2d4bbb74e81ff7d998ccbdb01bb037391d743e44823c490786 + SHA512 6b437004ee3b8a44d475db51f01558d777bf3c65b1ea132606b9b682ab6310dbdf0c939ecdf7b621255b6130a424de6db368dd73b8d22393bd932342fd3f45e0 ) file(INSTALL @@ -56,7 +56,7 @@ if("tools" IN_LIST FEATURES) MESHCONVERT_EXE URLS "https://github.com/Microsoft/DirectXMesh/releases/download/${DIRECTXMESH_TAG}/meshconvert_arm64.exe" FILENAME "meshconvert-${DIRECTXMESH_TAG}-arm64.exe" - SHA512 71d677b95fa964dc3a6d3e3804fa86fb86ec0a5165045baeb42fa4e025c68806edf4cb737906f1f4287e877d5443eda9e5c38e51a9aa62c76ba84f68ba48c69e + SHA512 e4f9eb983ea6cfbf18c342d5f1a52210d933ca6bbe7fe5dbca4fee516106f02ac4936804ab222c337ac42eb809c16f06132d51ffa44fb67315c2f28f282afdf3 ) file(INSTALL diff --git a/ports/directxmesh/vcpkg.json b/ports/directxmesh/vcpkg.json index 95d8d6bd3e9a03..89d0d4cf187317 100644 --- a/ports/directxmesh/vcpkg.json +++ b/ports/directxmesh/vcpkg.json @@ -1,6 +1,6 @@ { "name": "directxmesh", - "version-date": "2024-09-04", + "version-date": "2024-10-28", "description": "DirectXMesh geometry processing library", "homepage": "https://github.com/Microsoft/DirectXMesh", "documentation": "https://github.com/microsoft/DirectXMesh/wiki", diff --git a/ports/directxtex/portfile.cmake b/ports/directxtex/portfile.cmake index 81c00c044265d5..140aa313004dcc 100644 --- a/ports/directxtex/portfile.cmake +++ b/ports/directxtex/portfile.cmake @@ -1,4 +1,4 @@ -set(DIRECTXTEX_TAG sep2024) +set(DIRECTXTEX_TAG oct2024) vcpkg_check_linkage(ONLY_STATIC_LIBRARY) @@ -6,7 +6,7 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO Microsoft/DirectXTex REF ${DIRECTXTEX_TAG} - SHA512 c76c6d33f6a06e28e27c36be0f56b2c880cdd221b12680cc390f6f05a2c80169266cce9f0ac1803e7160d098f02f25a358ea73a116fd4186f4e0de17aba81ab7 + SHA512 4ac9307ab6e36aa727afa5bd5bb945fb431c89fa01c9c8283eebf512707acfb15a0d7cd84f72349d4271b0eef2e13bca38a38226c1afafd8f1e36b38c1c4b07f HEAD_REF main ) @@ -67,21 +67,21 @@ if("tools" IN_LIST FEATURES) TEXASSEMBLE_EXE URLS "https://github.com/Microsoft/DirectXTex/releases/download/${DIRECTXTEX_TAG}/texassemble.exe" FILENAME "texassemble-${DIRECTXTEX_TAG}.exe" - SHA512 17ae3ce91135e6c442c6127b77a4407ee5e029f1239cdc9066f34ddae9a3982de67d5314b5f03fde77802525e770be49f719fb6ddeb4d5316f440fb4ab24113a + SHA512 bb3c45d35305a56b80035bd7c076cd0000461cb37a5cd9495ac8f8a1647967fb6ecb02245336356674829f179ef05330d5aa9e768637e93b9db587d7eb684dfe ) vcpkg_download_distfile( TEXCONV_EXE URLS "https://github.com/Microsoft/DirectXTex/releases/download/${DIRECTXTEX_TAG}/texconv.exe" FILENAME "texconv-${DIRECTXTEX_TAG}.exe" - SHA512 856648b04c9d9eab5a63b1abf226eac8509b400a2087dae32fddcc61ea6d7d8426b07d710f765a01ab1bacbd8a9731684c42a72e2bd4f7f3477f379cec39c409 + SHA512 6376ee91dca0b53c043e1e86ec56f418029591885dd9fd49f8e932aa635e6668d430aeb30b497daa4e8c1f02ac42f7dc901ebec107d8bc1e611c9a0ec8747029 ) vcpkg_download_distfile( TEXDIAG_EXE URLS "https://github.com/Microsoft/DirectXTex/releases/download/${DIRECTXTEX_TAG}/texdiag.exe" FILENAME "texdiag-${DIRECTXTEX_TAG}.exe" - SHA512 38f083bbcf80b30b7d36312e824e03e25396f8801d8c13f6d4029731226415a3596e61863c7f8fd54f71afd6770e6e08bfc4118d65b48a977613b81f221e08d8 + SHA512 31261ceefc17ce30c7f21dff961bfe03b2dc65619f60c64891a5fc56847cd7468a6629c36b1fcbf4c6f967232ad88eb85cf5c2ea874084dfe0d8da4ffabc12c8 ) file(INSTALL @@ -100,21 +100,21 @@ if("tools" IN_LIST FEATURES) TEXASSEMBLE_EXE URLS "https://github.com/Microsoft/DirectXTex/releases/download/${DIRECTXTEX_TAG}/texassemble_arm64.exe" FILENAME "texassemble-${DIRECTXTEX_TAG}-arm64.exe" - SHA512 4026647c8e18fc54a28fdec31e9b5c26dba4d6141e2fee53dc94c84bc1bdfb446b40c31a0f4babbaf1eda2a25589486ae5898210f2a5644bc29959ddbe88a475 + SHA512 48b629b7aead482c0dc96c2fcfb28d534076d62dc77ce94256ad52df48596c1993645900873bf0dfd3d888087b423c350ba3f420b1305ef2ed7a43eafecfb523 ) vcpkg_download_distfile( TEXCONV_EXE URLS "https://github.com/Microsoft/DirectXTex/releases/download/${DIRECTXTEX_TAG}/texconv_arm64.exe" FILENAME "texconv-${DIRECTXTEX_TAG}-arm64.exe" - SHA512 2556604381e5c45aa137bf868db27013bee4bec1860df25f991f104a4c606bfde90e0eba8a347e5a5fc145c6a6a0b28529c6c7edd9cec0a5310dcec50d295b50 + SHA512 53f319be7e739d9e3addc2e86648022ec802315a94c600eb6886a4474232aa25de0c9fb8d72868d2871d29eb36ee1dd6a186094edb6d9ab8f249b4eb4849a10c ) vcpkg_download_distfile( TEXDIAG_EXE URLS "https://github.com/Microsoft/DirectXTex/releases/download/${DIRECTXTEX_TAG}/texdiag_arm64.exe" FILENAME "texdiag-${DIRECTXTEX_TAG}-arm64.exe" - SHA512 dfa8d2046cc18541998b719ace66b6807e59ea480febf41852b5973eb60aea20cb66702cab578d6e4474ecd782c03c061f363deb8e1bcb6a4c8f5002a521fe88 + SHA512 638b6b8443767ca390efdfdb8e4e8a655f0cc370a81b946678414481a6c3fc0c431a7082d08206fa86bc4ccf9c8b0027a427d483474a8c3d1ff0a030011779f7 ) file(INSTALL diff --git a/ports/directxtex/vcpkg.json b/ports/directxtex/vcpkg.json index b552174c13f15a..50c8d71f153222 100644 --- a/ports/directxtex/vcpkg.json +++ b/ports/directxtex/vcpkg.json @@ -1,6 +1,6 @@ { "name": "directxtex", - "version-date": "2024-09-04", + "version-date": "2024-10-28", "description": "DirectXTex texture processing library", "homepage": "https://github.com/Microsoft/DirectXTex", "documentation": "https://github.com/microsoft/DirectXTex/wiki", diff --git a/ports/directxtk/portfile.cmake b/ports/directxtk/portfile.cmake index dcb794ec9e49ce..be1be87a9ab651 100644 --- a/ports/directxtk/portfile.cmake +++ b/ports/directxtk/portfile.cmake @@ -1,4 +1,4 @@ -set(DIRECTXTK_TAG sep2024) +set(DIRECTXTK_TAG oct2024) vcpkg_check_linkage(ONLY_STATIC_LIBRARY) @@ -10,13 +10,14 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO Microsoft/DirectXTK REF ${DIRECTXTK_TAG} - SHA512 82a47ea210bf7878fdb33960ce38b0d797e8d782ac92d69e82fefa31377b4ba52a4d65d40bb4f136015d65648e42898adf9edb6dbc203885c6718e2db9a6587d + SHA512 a0c51fbbb9e639ba73dcdfcb2de0b8a859720bba4bd9273a40c4cc2cb949927815ab291e676a676ebd437c473f8548a7b323e7e349ff5a06d04af97d3edc2866 HEAD_REF main ) vcpkg_check_features( OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES + gameinput BUILD_GAMEINPUT spectre ENABLE_SPECTRE_MITIGATION tools BUILD_TOOLS xaudio2-9 BUILD_XAUDIO_WIN10 @@ -39,7 +40,7 @@ if("tools" IN_LIST FEATURES) MAKESPRITEFONT_EXE URLS "https://github.com/Microsoft/DirectXTK/releases/download/${DIRECTXTK_TAG}/MakeSpriteFont.exe" FILENAME "makespritefont-${DIRECTXTK_TAG}.exe" - SHA512 15ba6d2b17a43335782cd0f34c017085a747d3308a73f2ae48423873c7e2e3a22bae292c2dc812b67077f96faa41ba81cca4f8a3a36f497f7f6517e24f41474b + SHA512 b7cc8a4b1920d85a0b826a4aac6053f0f0e7411dd115d3afc5fb5d2542661d47de11e81cc94830059ca29b0511f585913479fdba24da7f5bff03627a8117a60d ) file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/directxtk/") @@ -54,7 +55,7 @@ if("tools" IN_LIST FEATURES) XWBTOOL_EXE URLS "https://github.com/Microsoft/DirectXTK/releases/download/${DIRECTXTK_TAG}/XWBTool.exe" FILENAME "xwbtool-${DIRECTXTK_TAG}.exe" - SHA512 33413514de463d771950caab415cd1ae499dd9ab8f7b2580e7de6e7a49e413f35cd44f8f0a561a1f99f331e5375d91f81b2d47184c4ab30d326feab2c49a82bc + SHA512 b08f61e7a6190f779ebecd25ec6d8c95c86ed231582b7567e83ededd5c8e0f7497f1c962535e29b204b897e0734f69d7eef78637a77bb9b401e6d1e66821e98b ) file(INSTALL "${XWBTOOL_EXE}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxtk/") @@ -67,7 +68,7 @@ if("tools" IN_LIST FEATURES) XWBTOOL_EXE URLS "https://github.com/Microsoft/DirectXTK/releases/download/${DIRECTXTK_TAG}/XWBTool_arm64.exe" FILENAME "xwbtool-${DIRECTXTK_TAG}-arm64.exe" - SHA512 90af7b04ee0b152e3f08891f85cf970330d2ff16e6f7ac2269f4a5803dddb891e0cca186c56ef38d2b64f40c86889e31f0c4b017845decf3e6660c9654a0eea8 + SHA512 b25000552c74081b0da117b4b762b98eb68c5de6f6b65a8208811900316f8138f717e6050a30dcb7c71e3e2c01cba12b8dc6d4a9ade45da39abfd2fc3ef679e3 ) file(INSTALL "${XWBTOOL_EXE}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxtk/") diff --git a/ports/directxtk/vcpkg.json b/ports/directxtk/vcpkg.json index 390737e6adb961..a87334d617c2c2 100644 --- a/ports/directxtk/vcpkg.json +++ b/ports/directxtk/vcpkg.json @@ -1,6 +1,6 @@ { "name": "directxtk", - "version-date": "2024-09-04", + "version-date": "2024-10-28", "description": "A collection of helper classes for writing DirectX 11.x code in C++.", "homepage": "https://github.com/Microsoft/DirectXTK", "documentation": "https://github.com/microsoft/DirectXTK/wiki", @@ -18,6 +18,13 @@ } ], "features": { + "gameinput": { + "description": "Build using GameInput API for input processing", + "supports": "windows & x64 & !uwp", + "dependencies": [ + "gameinput" + ] + }, "spectre": { "description": "Build Spectre-mitigated library" }, diff --git a/ports/directxtk12/portfile.cmake b/ports/directxtk12/portfile.cmake index dc64058fe15e72..57ede521fa3dd7 100644 --- a/ports/directxtk12/portfile.cmake +++ b/ports/directxtk12/portfile.cmake @@ -1,4 +1,4 @@ -set(DIRECTXTK_TAG sep2024) +set(DIRECTXTK_TAG oct2024) vcpkg_check_linkage(ONLY_STATIC_LIBRARY) @@ -6,13 +6,14 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO Microsoft/DirectXTK12 REF ${DIRECTXTK_TAG} - SHA512 902f2ee19953cb36e5982930f3f2cdd7915fadc0e2e97388e44ce677dd9598ccd588b9157179edd2348cef48af7061944083ada1398a47a6805c5d7c1c4c73d3 + SHA512 bfa254615395f464a7ec1fe544dbb3ef9cf2c755e6902ec9b472fe4e3d6848381cf476435665309c27dbacebceb2a745e865f42eb7b037364dab9fc8eb74d21f HEAD_REF main ) vcpkg_check_features( OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES + gameinput BUILD_GAMEINPUT spectre ENABLE_SPECTRE_MITIGATION xaudio2-9 BUILD_XAUDIO_WIN10 xaudio2redist BUILD_XAUDIO_REDIST @@ -40,7 +41,7 @@ if("tools" IN_LIST FEATURES) MAKESPRITEFONT_EXE URLS "https://github.com/Microsoft/DirectXTK12/releases/download/${DIRECTXTK_TAG}/MakeSpriteFont.exe" FILENAME "makespritefont-${DIRECTXTK_TAG}.exe" - SHA512 15ba6d2b17a43335782cd0f34c017085a747d3308a73f2ae48423873c7e2e3a22bae292c2dc812b67077f96faa41ba81cca4f8a3a36f497f7f6517e24f41474b + SHA512 b7cc8a4b1920d85a0b826a4aac6053f0f0e7411dd115d3afc5fb5d2542661d47de11e81cc94830059ca29b0511f585913479fdba24da7f5bff03627a8117a60d ) file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/directxtk12/") @@ -55,7 +56,7 @@ if("tools" IN_LIST FEATURES) XWBTOOL_EXE URLS "https://github.com/Microsoft/DirectXTK12/releases/download/${DIRECTXTK_TAG}/XWBTool.exe" FILENAME "xwbtool-${DIRECTXTK_TAG}.exe" - SHA512 33413514de463d771950caab415cd1ae499dd9ab8f7b2580e7de6e7a49e413f35cd44f8f0a561a1f99f331e5375d91f81b2d47184c4ab30d326feab2c49a82bc + SHA512 b08f61e7a6190f779ebecd25ec6d8c95c86ed231582b7567e83ededd5c8e0f7497f1c962535e29b204b897e0734f69d7eef78637a77bb9b401e6d1e66821e98b ) file(INSTALL "${XWBTOOL_EXE}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxtk12/") @@ -68,7 +69,7 @@ if("tools" IN_LIST FEATURES) XWBTOOL_EXE URLS "https://github.com/Microsoft/DirectXTK12/releases/download/${DIRECTXTK_TAG}/XWBTool_arm64.exe" FILENAME "xwbtool-${DIRECTXTK_TAG}-arm64.exe" - SHA512 90af7b04ee0b152e3f08891f85cf970330d2ff16e6f7ac2269f4a5803dddb891e0cca186c56ef38d2b64f40c86889e31f0c4b017845decf3e6660c9654a0eea8 + SHA512 b25000552c74081b0da117b4b762b98eb68c5de6f6b65a8208811900316f8138f717e6050a30dcb7c71e3e2c01cba12b8dc6d4a9ade45da39abfd2fc3ef679e3 ) file(INSTALL "${XWBTOOL_EXE}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxtk12/") diff --git a/ports/directxtk12/vcpkg.json b/ports/directxtk12/vcpkg.json index 1a7f2d32db83d4..34f8ec33e43748 100644 --- a/ports/directxtk12/vcpkg.json +++ b/ports/directxtk12/vcpkg.json @@ -1,6 +1,6 @@ { "name": "directxtk12", - "version-date": "2024-09-04", + "version-date": "2024-10-28", "description": "A collection of helper classes for writing DirectX 12 code in C++.", "homepage": "https://github.com/Microsoft/DirectXTK12", "documentation": "https://github.com/microsoft/DirectXTK12/wiki", @@ -34,6 +34,13 @@ "xaudio2-9" ], "features": { + "gameinput": { + "description": "Build using GameInput API for input processing", + "supports": "windows & x64 & !uwp", + "dependencies": [ + "gameinput" + ] + }, "spectre": { "description": "Build Spectre-mitigated library" }, diff --git a/ports/uvatlas/portfile.cmake b/ports/uvatlas/portfile.cmake index 2689e75cf489e8..3d783b7c74ca36 100644 --- a/ports/uvatlas/portfile.cmake +++ b/ports/uvatlas/portfile.cmake @@ -1,4 +1,4 @@ -set(UVATLAS_TAG sep2024) +set(UVATLAS_TAG oct2024) vcpkg_check_linkage(ONLY_STATIC_LIBRARY) @@ -6,7 +6,7 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO Microsoft/UVAtlas REF ${UVATLAS_TAG} - SHA512 89807b52a3802f3147415d1d42dda279c04c17c5fa23e2516f6f1e72f00205f5a45842970d06ddfc86c0aae0d7c432c440a7650d94dc786b5bdc62db809e9498 + SHA512 0ff09914445344eac748e7e6cfddebb062a0c7f36dc79d1591f5337b6600e69430aafc6f8a4cf5e3c343aea990feac4afa4cf4cf5f1e2d0865746008583bcf3d HEAD_REF main ) @@ -41,7 +41,7 @@ if("tools" IN_LIST FEATURES) UVATLASTOOL_EXE URLS "https://github.com/Microsoft/UVAtlas/releases/download/${UVATLAS_TAG}/uvatlastool.exe" FILENAME "uvatlastool-${UVATLAS_TAG}.exe" - SHA512 7e747fd8ae93f00d2691af748d6d7c9c42773a704132d5e9cc3230dfaff93490bf3e7273a08af5c2a92cd5344d881255d0788df3f13f288767b11789d8775da0 + SHA512 e4b08d355b311481cabb11afb2c0da745b033b4f9c09461a07da2f265944e84e4730e38f4f5f3ff7f1438b8f066f714876bdccc4d26d7dfb82a21646e509389b ) file(INSTALL diff --git a/ports/uvatlas/vcpkg.json b/ports/uvatlas/vcpkg.json index bf4e64824db5ff..4168ac3f83a9c4 100644 --- a/ports/uvatlas/vcpkg.json +++ b/ports/uvatlas/vcpkg.json @@ -1,6 +1,6 @@ { "name": "uvatlas", - "version-date": "2024-09-04", + "version-date": "2024-10-29", "description": "UVAtlas isochart texture atlas", "homepage": "https://github.com/Microsoft/UVAtlas", "documentation": "https://github.com/Microsoft/UVAtlas/wiki", From 62c79c32d4aa8abb1738b666c6b855ce20c8e413 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 00:04:46 -0700 Subject: [PATCH 02/15] Update baseline --- versions/baseline.json | 10 +++++----- versions/d-/directxmesh.json | 5 +++++ versions/d-/directxtex.json | 5 +++++ versions/d-/directxtk.json | 5 +++++ versions/d-/directxtk12.json | 5 +++++ versions/u-/uvatlas.json | 5 +++++ 6 files changed, 30 insertions(+), 5 deletions(-) diff --git a/versions/baseline.json b/versions/baseline.json index 00b37c584e0f71..83a3ad07f93f8c 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2301,7 +2301,7 @@ "port-version": 0 }, "directxmesh": { - "baseline": "2024-09-04", + "baseline": "2024-10-28", "port-version": 0 }, "directxsdk": { @@ -2309,15 +2309,15 @@ "port-version": 8 }, "directxtex": { - "baseline": "2024-09-04", + "baseline": "2024-10-28", "port-version": 0 }, "directxtk": { - "baseline": "2024-09-04", + "baseline": "2024-10-28", "port-version": 0 }, "directxtk12": { - "baseline": "2024-09-04", + "baseline": "2024-10-28", "port-version": 0 }, "dirent": { @@ -9249,7 +9249,7 @@ "port-version": 1 }, "uvatlas": { - "baseline": "2024-09-04", + "baseline": "2024-10-29", "port-version": 0 }, "uvw": { diff --git a/versions/d-/directxmesh.json b/versions/d-/directxmesh.json index cca827f3d0bbb7..2daef5c8ebfb36 100644 --- a/versions/d-/directxmesh.json +++ b/versions/d-/directxmesh.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "bf34ce542e4e55ddd839cb50381cb0207c94b3d7", + "version-date": "2024-10-28", + "port-version": 0 + }, { "git-tree": "b78a6fc9cca45bce5e15011fc0022a140d480ac1", "version-date": "2024-09-04", diff --git a/versions/d-/directxtex.json b/versions/d-/directxtex.json index d893ce2dd631f4..e724bac255b9b3 100644 --- a/versions/d-/directxtex.json +++ b/versions/d-/directxtex.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "f3b79f262977599d83cdb3e64f8691d048ff9522", + "version-date": "2024-10-28", + "port-version": 0 + }, { "git-tree": "bf509ba95b00e84e46e805c9b607f4e5b9cc8e01", "version-date": "2024-09-04", diff --git a/versions/d-/directxtk.json b/versions/d-/directxtk.json index 41b44632885094..15c5c27f61dc93 100644 --- a/versions/d-/directxtk.json +++ b/versions/d-/directxtk.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "633c6ef2a57d96b7a5b0d206cd4d77db8e9d8d88", + "version-date": "2024-10-28", + "port-version": 0 + }, { "git-tree": "a7ecae1b4319528b67d6cc9aa66e5e2a58f21008", "version-date": "2024-09-04", diff --git a/versions/d-/directxtk12.json b/versions/d-/directxtk12.json index b0db0cdf24268a..c3945f598345d6 100644 --- a/versions/d-/directxtk12.json +++ b/versions/d-/directxtk12.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "93f061b596529d6b084a068953bea28c9aae05a1", + "version-date": "2024-10-28", + "port-version": 0 + }, { "git-tree": "cdddbfa0d0b483bb76aafbc6f6d601d171770a17", "version-date": "2024-09-04", diff --git a/versions/u-/uvatlas.json b/versions/u-/uvatlas.json index d4351782329443..821cda1aa13005 100644 --- a/versions/u-/uvatlas.json +++ b/versions/u-/uvatlas.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "9cc843c49d0fa081d2302aacfa1485e63b02ca8d", + "version-date": "2024-10-29", + "port-version": 0 + }, { "git-tree": "1e1cf99e5b991e2c335ba171022ac5861c50b23e", "version-date": "2024-09-04", From a79136b4fd1c15ed1cec64bea2fcb4d8fa751977 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 16:11:18 -0700 Subject: [PATCH 03/15] Fixed regression in rsm-bsa port --- .../Support-using-C-17-std-byte.patch | 300 ++++++++++++++++++ ports/directxtex/portfile.cmake | 2 + ports/rsm-bsa/DirectXTexUint8Byte.patch | 16 + ports/rsm-bsa/portfile.cmake | 2 + ports/rsm-bsa/vcpkg.json | 1 + 5 files changed, 321 insertions(+) create mode 100644 ports/directxtex/Support-using-C-17-std-byte.patch create mode 100644 ports/rsm-bsa/DirectXTexUint8Byte.patch diff --git a/ports/directxtex/Support-using-C-17-std-byte.patch b/ports/directxtex/Support-using-C-17-std-byte.patch new file mode 100644 index 00000000000000..31852288d1f2e6 --- /dev/null +++ b/ports/directxtex/Support-using-C-17-std-byte.patch @@ -0,0 +1,300 @@ +diff --git a/Auxiliary/DirectXTexXbox.h b/Auxiliary/DirectXTexXbox.h +index 0829c8f..9f75866 100644 +--- a/Auxiliary/DirectXTexXbox.h ++++ b/Auxiliary/DirectXTexXbox.h +@@ -132,6 +132,39 @@ namespace Xbox + HRESULT __cdecl SaveToDDSMemory(_In_ const XboxImage& xbox, _Out_ DirectX::Blob& blob); + HRESULT __cdecl SaveToDDSFile(_In_ const XboxImage& xbox, _In_z_ const wchar_t* szFile); + ++#ifdef __cpp_lib_byte ++ inline HRESULT __cdecl GetMetadataFromDDSMemory( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _Out_ DirectX::TexMetadata& metadata, _Out_ bool& isXbox) ++ { ++ return GetMetadataFromDDSMemory(reinterpret_cast(pSource), size, metadata, isXbox); ++ } ++ ++ inline HRESULT __cdecl GetMetadataFromDDSMemoryEx( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _Out_ DirectX::TexMetadata& metadata, _Out_ bool& isXbox, ++ _Out_opt_ DirectX::DDSMetaData* ddPixelFormat) ++ { ++ return GetMetadataFromDDSMemoryEx(reinterpret_cast(pSource), size, metadata, isXbox, ddPixelFormat); ++ } ++ ++ inline HRESULT __cdecl LoadFromDDSMemory( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _Out_opt_ DirectX::TexMetadata* metadata, _Out_ XboxImage& image) ++ { ++ return LoadFromDDSMemory(reinterpret_cast(pSource), size, metadata, image); ++ } ++ ++ inline HRESULT __cdecl LoadFromDDSMemoryEx( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _Out_opt_ DirectX::TexMetadata* metadata, ++ _Out_opt_ DirectX::DDSMetaData* ddPixelFormat, ++ _Out_ XboxImage& image) ++ { ++ return LoadFromDDSMemoryEx(reinterpret_cast(pSource), size, metadata, ddPixelFormat, image); ++ } ++#endif // __cpp_lib_byte ++ + //--------------------------------------------------------------------------------- + // Xbox Texture Tiling / Detiling (requires XG DLL to be present at runtime) + +@@ -178,4 +211,20 @@ namespace Xbox + const XboxImage& xbox, + _Out_writes_bytes_(maxsize) uint8_t* pDestination, _In_ size_t maxsize) noexcept; + ++#ifdef __cpp_lib_byte ++ inline HRESULT __cdecl EncodeDDSHeader( ++ const XboxImage& xbox, ++ _Out_writes_bytes_(maxsize) std::byte* pDestination, _In_ size_t maxsize) noexcept ++ { ++ return EncodeDDSHeader(xbox, reinterpret_cast(pDestination), maxsize); ++ } ++ ++ inline HRESULT __cdecl EncodeDDSHeader( ++ const XboxImage& xbox, ++ _Reserved_ std::nullptr_t, _In_ size_t maxsize) noexcept ++ { ++ return EncodeDDSHeader(xbox, static_cast(nullptr), maxsize); ++ } ++#endif ++ + } // namespace +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cffe5ca..ec26d0b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -319,13 +319,13 @@ endif() + + if(directxmath_FOUND) + message(STATUS "Using DirectXMath package") +- target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath) ++ target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectXMath) + endif() + + if(directx-headers_FOUND) + message(STATUS "Using DirectX-Headers package") +- target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers) +- target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS) ++ target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectX-Headers) ++ target_compile_definitions(${PROJECT_NAME} PRIVATE USING_DIRECTX_HEADERS) + target_compile_options(${PROJECT_NAME} PRIVATE $<$:/wd4062> $<$:-Wno-switch-enum>) + endif() + +diff --git a/DirectXTex/DirectXTex.h b/DirectXTex/DirectXTex.h +index e24142c..4dc36c8 100644 +--- a/DirectXTex/DirectXTex.h ++++ b/DirectXTex/DirectXTex.h +@@ -382,6 +382,34 @@ namespace DirectX + _In_z_ const wchar_t* szFile, + _Out_ TexMetadata& metadata) noexcept; + ++#ifdef __cpp_lib_byte ++ HRESULT __cdecl GetMetadataFromDDSMemory( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _In_ DDS_FLAGS flags, ++ _Out_ TexMetadata& metadata) noexcept; ++ HRESULT __cdecl GetMetadataFromDDSMemoryEx( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _In_ DDS_FLAGS flags, ++ _Out_ TexMetadata& metadata, ++ _Out_opt_ DDSMetaData* ddPixelFormat) noexcept; ++ HRESULT __cdecl GetMetadataFromHDRMemory( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _Out_ TexMetadata& metadata) noexcept; ++ HRESULT __cdecl GetMetadataFromTGAMemory( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _In_ TGA_FLAGS flags, ++ _Out_ TexMetadata& metadata) noexcept; ++ ++#ifdef _WIN32 ++ HRESULT __cdecl GetMetadataFromWICMemory( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _In_ WIC_FLAGS flags, ++ _Out_ TexMetadata& metadata, ++ _In_ std::function getMQR = nullptr); ++#endif ++#endif // __cpp_lib_byte ++ ++ + //--------------------------------------------------------------------------------- + // Bitmap image container + struct Image +@@ -590,6 +618,34 @@ namespace DirectX + HRESULT __cdecl SaveToTGAMemory(_In_ const Image& image, _Out_ Blob& blob, _In_opt_ const TexMetadata* metadata = nullptr) noexcept; + HRESULT __cdecl SaveToTGAFile(_In_ const Image& image, _In_z_ const wchar_t* szFile, _In_opt_ const TexMetadata* metadata = nullptr) noexcept; + ++#ifdef __cpp_lib_byte ++ HRESULT __cdecl LoadFromDDSMemory( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _In_ DDS_FLAGS flags, ++ _Out_opt_ TexMetadata* metadata, _Out_ ScratchImage& image) noexcept; ++ HRESULT __cdecl LoadFromDDSMemoryEx( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _In_ DDS_FLAGS flags, ++ _Out_opt_ TexMetadata* metadata, ++ _Out_opt_ DDSMetaData* ddPixelFormat, ++ _Out_ ScratchImage& image) noexcept; ++ HRESULT __cdecl LoadFromHDRMemory( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _Out_opt_ TexMetadata* metadata, _Out_ ScratchImage& image) noexcept; ++ HRESULT __cdecl LoadFromTGAMemory( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _In_ TGA_FLAGS flags, ++ _Out_opt_ TexMetadata* metadata, _Out_ ScratchImage& image) noexcept; ++ ++#ifdef _WIN32 ++ HRESULT __cdecl LoadFromWICMemory( ++ _In_reads_bytes_(size) const std::byte* pSource, _In_ size_t size, ++ _In_ WIC_FLAGS flags, ++ _Out_opt_ TexMetadata* metadata, _Out_ ScratchImage& image, ++ _In_ std::function getMQR = nullptr); ++#endif ++#endif // __cpp_lib_byte ++ + //--------------------------------------------------------------------------------- + // Texture conversion, resizing, mipmap generation, and block compression + +@@ -959,6 +1015,18 @@ namespace DirectX + _Out_writes_bytes_to_opt_(maxsize, required) uint8_t* pDestination, _In_ size_t maxsize, + _Out_ size_t& required) noexcept; + ++#ifdef __cpp_lib_byte ++ HRESULT __cdecl EncodeDDSHeader( ++ _In_ const TexMetadata& metadata, DDS_FLAGS flags, ++ _Out_writes_bytes_to_opt_(maxsize, required) std::byte* pDestination, _In_ size_t maxsize, ++ _Out_ size_t& required) noexcept; ++ ++ HRESULT __cdecl EncodeDDSHeader( ++ _In_ const TexMetadata& metadata, DDS_FLAGS flags, ++ _Reserved_ std::nullptr_t, _In_ size_t maxsize, ++ _Out_ size_t& required) noexcept; ++#endif ++ + //--------------------------------------------------------------------------------- + // Direct3D interop + +diff --git a/DirectXTex/DirectXTex.inl b/DirectXTex/DirectXTex.inl +index 49745ae..d20f41e 100644 +--- a/DirectXTex/DirectXTex.inl ++++ b/DirectXTex/DirectXTex.inl +@@ -190,3 +190,85 @@ inline HRESULT __cdecl SaveToTGAFile(const Image& image, const wchar_t* szFile, + { + return SaveToTGAFile(image, TGA_FLAGS_NONE, szFile, metadata); + } ++ ++ ++//===================================================================================== ++// C++17 helpers ++//===================================================================================== ++#ifdef __cpp_lib_byte ++ ++_Use_decl_annotations_ ++inline HRESULT __cdecl GetMetadataFromDDSMemory(const std::byte* pSource, size_t size, DDS_FLAGS flags, TexMetadata& metadata) noexcept ++{ ++ return GetMetadataFromDDSMemory(reinterpret_cast(pSource), size, flags, metadata); ++} ++ ++_Use_decl_annotations_ ++inline HRESULT __cdecl LoadFromDDSMemory(const std::byte* pSource, size_t size, DDS_FLAGS flags, TexMetadata* metadata, ScratchImage& image) noexcept ++{ ++ return LoadFromDDSMemory(reinterpret_cast(pSource), size, flags, metadata, image); ++} ++ ++_Use_decl_annotations_ ++inline HRESULT __cdecl GetMetadataFromDDSMemoryEx(const std::byte* pSource, size_t size, DDS_FLAGS flags, TexMetadata& metadata, DDSMetaData* ddPixelFormat) noexcept ++{ ++ return GetMetadataFromDDSMemoryEx(reinterpret_cast(pSource), size, flags, metadata, ddPixelFormat); ++} ++ ++_Use_decl_annotations_ ++inline HRESULT __cdecl LoadFromDDSMemoryEx(const std::byte* pSource, size_t size, DDS_FLAGS flags, TexMetadata* metadata, DDSMetaData* ddPixelFormat, ScratchImage& image) noexcept ++{ ++ return LoadFromDDSMemoryEx(reinterpret_cast(pSource), size, flags, metadata, ddPixelFormat, image); ++} ++ ++_Use_decl_annotations_ ++inline HRESULT __cdecl GetMetadataFromHDRMemory(const std::byte* pSource, size_t size, TexMetadata& metadata) noexcept ++{ ++ return GetMetadataFromHDRMemory(reinterpret_cast(pSource), size, metadata); ++} ++ ++_Use_decl_annotations_ ++inline HRESULT __cdecl LoadFromHDRMemory(const std::byte* pSource, size_t size, TexMetadata* metadata, ScratchImage& image) noexcept ++{ ++ return LoadFromHDRMemory(reinterpret_cast(pSource), size, metadata, image); ++} ++ ++_Use_decl_annotations_ ++inline HRESULT __cdecl GetMetadataFromTGAMemory(const std::byte* pSource, size_t size, TGA_FLAGS flags, TexMetadata& metadata) noexcept ++{ ++ return GetMetadataFromTGAMemory(reinterpret_cast(pSource), size, flags, metadata); ++} ++ ++_Use_decl_annotations_ ++inline HRESULT __cdecl LoadFromTGAMemory(const std::byte* pSource, size_t size, TGA_FLAGS flags, TexMetadata* metadata, ScratchImage& image) noexcept ++{ ++ return LoadFromTGAMemory(reinterpret_cast(pSource), size, flags, metadata, image); ++} ++ ++_Use_decl_annotations_ ++inline HRESULT __cdecl EncodeDDSHeader(const TexMetadata& metadata, DDS_FLAGS flags, std::byte* pDestination, size_t maxsize, size_t& required) noexcept ++{ ++ return EncodeDDSHeader(metadata, flags, reinterpret_cast(pDestination), maxsize, required); ++} ++ ++_Use_decl_annotations_ ++inline HRESULT __cdecl EncodeDDSHeader(const TexMetadata& metadata, DDS_FLAGS flags, std::nullptr_t, size_t maxsize, size_t& required) noexcept ++{ ++ return EncodeDDSHeader(metadata, flags, static_cast(nullptr), maxsize, required); ++} ++ ++#ifdef _WIN32 ++_Use_decl_annotations_ ++inline HRESULT __cdecl GetMetadataFromWICMemory(const std::byte* pSource, size_t size, WIC_FLAGS flags, TexMetadata& metadata, std::function getMQR) ++{ ++ return GetMetadataFromWICMemory(reinterpret_cast(pSource), size, flags, metadata, getMQR); ++} ++ ++_Use_decl_annotations_ ++inline HRESULT __cdecl LoadFromWICMemory(const std::byte* pSource, size_t size, WIC_FLAGS flags, TexMetadata* metadata, ScratchImage& image, std::function getMQR) ++{ ++ return LoadFromWICMemory(reinterpret_cast(pSource), size, flags, metadata, image, getMQR); ++} ++#endif // _WIN32 ++ ++#endif // __cpp_lib_byte +diff --git a/ScreenGrab/ScreenGrab12.cpp b/ScreenGrab/ScreenGrab12.cpp +index 7c19630..b8cd697 100644 +--- a/ScreenGrab/ScreenGrab12.cpp ++++ b/ScreenGrab/ScreenGrab12.cpp +@@ -853,7 +853,11 @@ namespace + + hr = commandList->Close(); + if (FAILED(hr)) ++ { ++ (*pStaging)->Release(); ++ *pStaging = nullptr; + return hr; ++ } + + // Execute the command list + pCommandQ->ExecuteCommandLists(1, CommandListCast(commandList.GetAddressOf())); +@@ -861,7 +865,11 @@ namespace + // Signal the fence + hr = pCommandQ->Signal(fence.Get(), 1); + if (FAILED(hr)) ++ { ++ (*pStaging)->Release(); ++ *pStaging = nullptr; + return hr; ++ } + + // Block until the copy is complete + while (fence->GetCompletedValue() < 1) +-- +2.47.0.windows.1 + diff --git a/ports/directxtex/portfile.cmake b/ports/directxtex/portfile.cmake index 140aa313004dcc..7a194892aa53e6 100644 --- a/ports/directxtex/portfile.cmake +++ b/ports/directxtex/portfile.cmake @@ -8,6 +8,8 @@ vcpkg_from_github( REF ${DIRECTXTEX_TAG} SHA512 4ac9307ab6e36aa727afa5bd5bb945fb431c89fa01c9c8283eebf512707acfb15a0d7cd84f72349d4271b0eef2e13bca38a38226c1afafd8f1e36b38c1c4b07f HEAD_REF main + PATCHES + Support-using-C-17-std-byte.patch ) vcpkg_check_features( diff --git a/ports/rsm-bsa/DirectXTexUint8Byte.patch b/ports/rsm-bsa/DirectXTexUint8Byte.patch new file mode 100644 index 00000000000000..586c0d55f0aadb --- /dev/null +++ b/ports/rsm-bsa/DirectXTexUint8Byte.patch @@ -0,0 +1,16 @@ +diff --git a/src/bsa/fo4.cpp b/src/bsa/fo4.cpp +index 5484f13..2d9bbf3 100644 +--- a/src/bsa/fo4.cpp ++++ b/src/bsa/fo4.cpp +@@ -677,7 +677,7 @@ namespace bsa::fo4 + } + + a_out.write_bytes({ // +- static_cast(blob.GetBufferPointer()), ++ reinterpret_cast(blob.GetBufferPointer()), + blob.GetBufferSize() }); + std::vector buffer; + for (const auto& chunk : *this) { +-- +2.47.0.windows.1 + diff --git a/ports/rsm-bsa/portfile.cmake b/ports/rsm-bsa/portfile.cmake index d832085181abd5..26685db96b6839 100644 --- a/ports/rsm-bsa/portfile.cmake +++ b/ports/rsm-bsa/portfile.cmake @@ -5,6 +5,8 @@ vcpkg_from_github( REF 4.1.0 SHA512 c488a4f7cffa59064baafd429cf118a8f8a7b5594a0bd49a0ed468572b37af2e7428a83ad83cc7b13b556744a444cb7b8a4591c7018e49cadb1c5d42ae780f51 HEAD_REF master + PATCHES + DirectXTexUint8Byte.patch ) if (VCPKG_TARGET_IS_LINUX) diff --git a/ports/rsm-bsa/vcpkg.json b/ports/rsm-bsa/vcpkg.json index d27b67918837c0..9851c2648d6f9d 100644 --- a/ports/rsm-bsa/vcpkg.json +++ b/ports/rsm-bsa/vcpkg.json @@ -1,6 +1,7 @@ { "name": "rsm-bsa", "version-semver": "4.1.0", + "port-version": 1, "description": "A C++ library for working with the Bethesda archive file format", "homepage": "https://github.com/Ryan-rsm-McKenzie/bsa", "documentation": "https://ryan-rsm-mckenzie.github.io/bsa/", From 8d787196f8106937a323d913ff9044c7978d5bfa Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 16:24:21 -0700 Subject: [PATCH 04/15] Minor uvatlas patch to help open3d port --- ports/uvatlas/CMakeHeadersPrivate.patch | 47 +++++++++++++++++++++++++ ports/uvatlas/portfile.cmake | 2 ++ 2 files changed, 49 insertions(+) create mode 100644 ports/uvatlas/CMakeHeadersPrivate.patch diff --git a/ports/uvatlas/CMakeHeadersPrivate.patch b/ports/uvatlas/CMakeHeadersPrivate.patch new file mode 100644 index 00000000000000..01dda8b27c0059 --- /dev/null +++ b/ports/uvatlas/CMakeHeadersPrivate.patch @@ -0,0 +1,47 @@ +From a46adfa669d22a778ff59ae8a8f5660642ebbf86 Mon Sep 17 00:00:00 2001 +From: Chuck Walbourn +Date: Thu, 31 Oct 2024 16:15:46 -0700 +Subject: [PATCH] CMake code review feedback (#193) + +--- + CMakeLists.txt | 6 +++--- + UVAtlasTool/UVAtlas.cpp | 2 +- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9be54f3..ae19481 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -147,13 +147,13 @@ endif() + + if(directxmath_FOUND) + message(STATUS "Using DirectXMath package") +- target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath) ++ target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectXMath) + endif() + + if(directx-headers_FOUND) + message(STATUS "Using DirectX-Headers package") +- target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers) +- target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS) ++ target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectX-Headers) ++ target_compile_definitions(${PROJECT_NAME} PRIVATE USING_DIRECTX_HEADERS) + endif() + + if(ENABLE_USE_EIGEN) +diff --git a/UVAtlasTool/UVAtlas.cpp b/UVAtlasTool/UVAtlas.cpp +index b5b0239..a692baa 100644 +--- a/UVAtlasTool/UVAtlas.cpp ++++ b/UVAtlasTool/UVAtlas.cpp +@@ -1072,7 +1072,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[]) + hr = inMesh->ComputeNormals(flags); + if (FAILED(hr)) + { +- wprintf(L"\nERROR: Failed computing normals (flags:%lX, %08X%ls)\n", flags, ++ wprintf(L"\nERROR: Failed computing normals (flags:%X, %08X%ls)\n", static_cast(flags), + static_cast(hr), GetErrorDesc(hr)); + return 1; + } +-- +2.47.0.windows.1 + diff --git a/ports/uvatlas/portfile.cmake b/ports/uvatlas/portfile.cmake index 3d783b7c74ca36..79a6e3e8866726 100644 --- a/ports/uvatlas/portfile.cmake +++ b/ports/uvatlas/portfile.cmake @@ -8,6 +8,8 @@ vcpkg_from_github( REF ${UVATLAS_TAG} SHA512 0ff09914445344eac748e7e6cfddebb062a0c7f36dc79d1591f5337b6600e69430aafc6f8a4cf5e3c343aea990feac4afa4cf4cf5f1e2d0865746008583bcf3d HEAD_REF main + PATCHES + CMakeHeadersPrivate.patch ) vcpkg_check_features( From ce85322635f6890229fbd760deec65bf2bd95ddc Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 16:25:59 -0700 Subject: [PATCH 05/15] Update baseline --- versions/baseline.json | 2 +- versions/d-/directxtex.json | 2 +- versions/r-/rsm-bsa.json | 5 +++++ versions/u-/uvatlas.json | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/versions/baseline.json b/versions/baseline.json index 83a3ad07f93f8c..07ca34bae3d5fa 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -7986,7 +7986,7 @@ }, "rsm-bsa": { "baseline": "4.1.0", - "port-version": 0 + "port-version": 1 }, "rsm-mmio": { "baseline": "2.0.0", diff --git a/versions/d-/directxtex.json b/versions/d-/directxtex.json index e724bac255b9b3..05bdff00a1a0fd 100644 --- a/versions/d-/directxtex.json +++ b/versions/d-/directxtex.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "f3b79f262977599d83cdb3e64f8691d048ff9522", + "git-tree": "3e665daa802f65ea9dfa6d1367860edfe594d38b", "version-date": "2024-10-28", "port-version": 0 }, diff --git a/versions/r-/rsm-bsa.json b/versions/r-/rsm-bsa.json index efcfde9a11b5dd..c3b9695671281c 100644 --- a/versions/r-/rsm-bsa.json +++ b/versions/r-/rsm-bsa.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "1cd731f50095336045c52135640ccab426741366", + "version-semver": "4.1.0", + "port-version": 1 + }, { "git-tree": "56763c1c1befe44030f14704e1be0c05424f039e", "version-semver": "4.1.0", diff --git a/versions/u-/uvatlas.json b/versions/u-/uvatlas.json index 821cda1aa13005..cb8361e50b4ae3 100644 --- a/versions/u-/uvatlas.json +++ b/versions/u-/uvatlas.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "9cc843c49d0fa081d2302aacfa1485e63b02ca8d", + "git-tree": "1e94451a266f0b9f2cbf9cd3e08507afd5762a99", "version-date": "2024-10-29", "port-version": 0 }, From 3e1d55dc96de2f629fb98c212f730ff70086fe69 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 18:07:28 -0700 Subject: [PATCH 06/15] One more patch --- ports/directxtex/Fix-for-CMake-on-WSL.patch | 24 +++++++++++++++++++++ ports/directxtex/portfile.cmake | 1 + 2 files changed, 25 insertions(+) create mode 100644 ports/directxtex/Fix-for-CMake-on-WSL.patch diff --git a/ports/directxtex/Fix-for-CMake-on-WSL.patch b/ports/directxtex/Fix-for-CMake-on-WSL.patch new file mode 100644 index 00000000000000..9171414b59e327 --- /dev/null +++ b/ports/directxtex/Fix-for-CMake-on-WSL.patch @@ -0,0 +1,24 @@ +From f82fde430a9fdeb6a534a8f8ada0c2bfadaf2979 Mon Sep 17 00:00:00 2001 +From: Chuck Walbourn +Date: Thu, 31 Oct 2024 18:04:36 -0700 +Subject: [PATCH] Fix for CMake on WSL + +--- + CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ec26d0b..f2c279c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -312,6 +312,7 @@ endif() + if(MINGW OR (NOT WIN32)) + find_package(directxmath CONFIG REQUIRED) + find_package(directx-headers CONFIG REQUIRED) ++ target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS) + else() + find_package(directxmath CONFIG QUIET) + find_package(directx-headers CONFIG QUIET) +-- +2.47.0.windows.1 + diff --git a/ports/directxtex/portfile.cmake b/ports/directxtex/portfile.cmake index 7a194892aa53e6..4bb11c98a0ec98 100644 --- a/ports/directxtex/portfile.cmake +++ b/ports/directxtex/portfile.cmake @@ -10,6 +10,7 @@ vcpkg_from_github( HEAD_REF main PATCHES Support-using-C-17-std-byte.patch + Fix-for-CMake-on-WSL.patch ) vcpkg_check_features( From cd2cd44fc284e2322a661278977fbe5c6c4cc6d6 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 18:07:52 -0700 Subject: [PATCH 07/15] update baseline --- versions/d-/directxtex.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/d-/directxtex.json b/versions/d-/directxtex.json index 05bdff00a1a0fd..a741e4181a17e2 100644 --- a/versions/d-/directxtex.json +++ b/versions/d-/directxtex.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "3e665daa802f65ea9dfa6d1367860edfe594d38b", + "git-tree": "50157869dc330c9f922550d5f360b670b494b3db", "version-date": "2024-10-28", "port-version": 0 }, From a244a7218fd7f1de3c6b031aa5cba6df7d6f1e46 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 18:17:08 -0700 Subject: [PATCH 08/15] Try to fix linux again --- ports/directxtex/Fix-for-CMake-on-WSL.patch | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/ports/directxtex/Fix-for-CMake-on-WSL.patch b/ports/directxtex/Fix-for-CMake-on-WSL.patch index 9171414b59e327..a853f32bfa4b6a 100644 --- a/ports/directxtex/Fix-for-CMake-on-WSL.patch +++ b/ports/directxtex/Fix-for-CMake-on-WSL.patch @@ -1,20 +1,12 @@ -From f82fde430a9fdeb6a534a8f8ada0c2bfadaf2979 Mon Sep 17 00:00:00 2001 -From: Chuck Walbourn -Date: Thu, 31 Oct 2024 18:04:36 -0700 -Subject: [PATCH] Fix for CMake on WSL - ---- - CMakeLists.txt | 1 + - 1 file changed, 1 insertion(+) - diff --git a/CMakeLists.txt b/CMakeLists.txt -index ec26d0b..f2c279c 100644 +index ec26d0b..e7fe41d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -312,6 +312,7 @@ endif() +@@ -312,6 +312,8 @@ endif() if(MINGW OR (NOT WIN32)) find_package(directxmath CONFIG REQUIRED) find_package(directx-headers CONFIG REQUIRED) ++ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers) + target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS) else() find_package(directxmath CONFIG QUIET) From c66c36cbf301aec32563060b446d257309f61deb Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 18:17:52 -0700 Subject: [PATCH 09/15] Update baseline --- versions/d-/directxtex.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/d-/directxtex.json b/versions/d-/directxtex.json index a741e4181a17e2..91ee6171c6c9cb 100644 --- a/versions/d-/directxtex.json +++ b/versions/d-/directxtex.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "50157869dc330c9f922550d5f360b670b494b3db", + "git-tree": "0d352d3ffbfdfa8a5da50796469288479ce3b823", "version-date": "2024-10-28", "port-version": 0 }, From 99da09a36fcbe3d53073a31c43d56f90716f833c Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 18:23:50 -0700 Subject: [PATCH 10/15] Try, try, try again --- ports/directxtex/Fix-for-CMake-on-WSL.patch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ports/directxtex/Fix-for-CMake-on-WSL.patch b/ports/directxtex/Fix-for-CMake-on-WSL.patch index a853f32bfa4b6a..a4f3adb95273dd 100644 --- a/ports/directxtex/Fix-for-CMake-on-WSL.patch +++ b/ports/directxtex/Fix-for-CMake-on-WSL.patch @@ -1,10 +1,13 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt -index ec26d0b..e7fe41d 100644 +index ec26d0b..e26b5a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -312,6 +312,8 @@ endif() +@@ -311,7 +311,11 @@ endif() + if(MINGW OR (NOT WIN32)) find_package(directxmath CONFIG REQUIRED) ++ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath) ++ find_package(directx-headers CONFIG REQUIRED) + target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers) + target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS) From 0f17a006ad1a435c8f82eaf36bbcc27ac19f3fa1 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 18:24:08 -0700 Subject: [PATCH 11/15] Update baseline --- versions/d-/directxtex.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/d-/directxtex.json b/versions/d-/directxtex.json index 91ee6171c6c9cb..7f2a375cdeae91 100644 --- a/versions/d-/directxtex.json +++ b/versions/d-/directxtex.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "0d352d3ffbfdfa8a5da50796469288479ce3b823", + "git-tree": "c93b054cd1a6f0e875eab530b3443ec1b1e000e5", "version-date": "2024-10-28", "port-version": 0 }, From 3645633da3847d9df081a8b18f17937ebdcc2516 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 20:34:27 -0700 Subject: [PATCH 12/15] Linux fix --- ports/uvatlas/Fix-for-CMake-on-WSL.patch | 28 ++++++++++++++++++++++++ ports/uvatlas/portfile.cmake | 1 + 2 files changed, 29 insertions(+) create mode 100644 ports/uvatlas/Fix-for-CMake-on-WSL.patch diff --git a/ports/uvatlas/Fix-for-CMake-on-WSL.patch b/ports/uvatlas/Fix-for-CMake-on-WSL.patch new file mode 100644 index 00000000000000..34c4f8c7a3c0ca --- /dev/null +++ b/ports/uvatlas/Fix-for-CMake-on-WSL.patch @@ -0,0 +1,28 @@ +From ef9fcbcce828b777fd22e00b4092b525a2dc3b17 Mon Sep 17 00:00:00 2001 +From: Chuck Walbourn +Date: Thu, 31 Oct 2024 18:29:06 -0700 +Subject: [PATCH] Fix for CMake on WSL + +--- + CMakeLists.txt | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ae19481..5656d03 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -139,7 +139,11 @@ endif() + + if(MINGW OR (NOT WIN32)) + find_package(directxmath CONFIG REQUIRED) ++ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath) ++ + find_package(directx-headers CONFIG REQUIRED) ++ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers) ++ target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS) + else() + find_package(directxmath CONFIG QUIET) + find_package(directx-headers CONFIG QUIET) +-- +2.47.0.windows.1 + diff --git a/ports/uvatlas/portfile.cmake b/ports/uvatlas/portfile.cmake index 79a6e3e8866726..12bb4f25c3df92 100644 --- a/ports/uvatlas/portfile.cmake +++ b/ports/uvatlas/portfile.cmake @@ -10,6 +10,7 @@ vcpkg_from_github( HEAD_REF main PATCHES CMakeHeadersPrivate.patch + Fix-for-CMake-on-WSL.patch ) vcpkg_check_features( From 735002220cc4a40bd118f2e82ed22d0c18c96fe7 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 20:34:43 -0700 Subject: [PATCH 13/15] Update baseline --- versions/u-/uvatlas.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/u-/uvatlas.json b/versions/u-/uvatlas.json index cb8361e50b4ae3..244b0670a33aa8 100644 --- a/versions/u-/uvatlas.json +++ b/versions/u-/uvatlas.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "1e94451a266f0b9f2cbf9cd3e08507afd5762a99", + "git-tree": "a314b3e59a6c45d3be58e1aece12d752773f78bf", "version-date": "2024-10-29", "port-version": 0 }, From 8a51e4ffc442417f4e76641c6505fa87a46b883e Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Fri, 1 Nov 2024 14:15:15 -0700 Subject: [PATCH 14/15] Merged patches for minimal file size --- ports/directxtex/Fix-for-CMake-on-WSL.patch | 19 -------- ...td-byte.patch => FixStdByteAndCMake.patch} | 46 ++++++------------ ports/directxtex/portfile.cmake | 3 +- ports/uvatlas/CMakeHeadersPrivate.patch | 47 ------------------- ports/uvatlas/Fix-for-CMake-on-WSL.patch | 28 ----------- ports/uvatlas/FixCMake.patch | 36 ++++++++++++++ ports/uvatlas/portfile.cmake | 3 +- 7 files changed, 53 insertions(+), 129 deletions(-) delete mode 100644 ports/directxtex/Fix-for-CMake-on-WSL.patch rename ports/directxtex/{Support-using-C-17-std-byte.patch => FixStdByteAndCMake.patch} (92%) delete mode 100644 ports/uvatlas/CMakeHeadersPrivate.patch delete mode 100644 ports/uvatlas/Fix-for-CMake-on-WSL.patch create mode 100644 ports/uvatlas/FixCMake.patch diff --git a/ports/directxtex/Fix-for-CMake-on-WSL.patch b/ports/directxtex/Fix-for-CMake-on-WSL.patch deleted file mode 100644 index a4f3adb95273dd..00000000000000 --- a/ports/directxtex/Fix-for-CMake-on-WSL.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index ec26d0b..e26b5a1 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -311,7 +311,11 @@ endif() - - if(MINGW OR (NOT WIN32)) - find_package(directxmath CONFIG REQUIRED) -+ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath) -+ - find_package(directx-headers CONFIG REQUIRED) -+ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers) -+ target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS) - else() - find_package(directxmath CONFIG QUIET) - find_package(directx-headers CONFIG QUIET) --- -2.47.0.windows.1 - diff --git a/ports/directxtex/Support-using-C-17-std-byte.patch b/ports/directxtex/FixStdByteAndCMake.patch similarity index 92% rename from ports/directxtex/Support-using-C-17-std-byte.patch rename to ports/directxtex/FixStdByteAndCMake.patch index 31852288d1f2e6..f1aa25537ddba1 100644 --- a/ports/directxtex/Support-using-C-17-std-byte.patch +++ b/ports/directxtex/FixStdByteAndCMake.patch @@ -64,10 +64,22 @@ index 0829c8f..9f75866 100644 + } // namespace diff --git a/CMakeLists.txt b/CMakeLists.txt -index cffe5ca..ec26d0b 100644 +index cffe5ca..e26b5a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -319,13 +319,13 @@ endif() +@@ -311,7 +311,11 @@ endif() + + if(MINGW OR (NOT WIN32)) + find_package(directxmath CONFIG REQUIRED) ++ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath) ++ + find_package(directx-headers CONFIG REQUIRED) ++ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers) ++ target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS) + else() + find_package(directxmath CONFIG QUIET) + find_package(directx-headers CONFIG QUIET) +@@ -319,13 +323,13 @@ endif() if(directxmath_FOUND) message(STATUS "Using DirectXMath package") @@ -267,34 +279,6 @@ index 49745ae..d20f41e 100644 +#endif // _WIN32 + +#endif // __cpp_lib_byte -diff --git a/ScreenGrab/ScreenGrab12.cpp b/ScreenGrab/ScreenGrab12.cpp -index 7c19630..b8cd697 100644 ---- a/ScreenGrab/ScreenGrab12.cpp -+++ b/ScreenGrab/ScreenGrab12.cpp -@@ -853,7 +853,11 @@ namespace - - hr = commandList->Close(); - if (FAILED(hr)) -+ { -+ (*pStaging)->Release(); -+ *pStaging = nullptr; - return hr; -+ } - - // Execute the command list - pCommandQ->ExecuteCommandLists(1, CommandListCast(commandList.GetAddressOf())); -@@ -861,7 +865,11 @@ namespace - // Signal the fence - hr = pCommandQ->Signal(fence.Get(), 1); - if (FAILED(hr)) -+ { -+ (*pStaging)->Release(); -+ *pStaging = nullptr; - return hr; -+ } - - // Block until the copy is complete - while (fence->GetCompletedValue() < 1) -- -2.47.0.windows.1 +2.47.0.vfs.0.3 diff --git a/ports/directxtex/portfile.cmake b/ports/directxtex/portfile.cmake index 4bb11c98a0ec98..18dd8a20dddb74 100644 --- a/ports/directxtex/portfile.cmake +++ b/ports/directxtex/portfile.cmake @@ -9,8 +9,7 @@ vcpkg_from_github( SHA512 4ac9307ab6e36aa727afa5bd5bb945fb431c89fa01c9c8283eebf512707acfb15a0d7cd84f72349d4271b0eef2e13bca38a38226c1afafd8f1e36b38c1c4b07f HEAD_REF main PATCHES - Support-using-C-17-std-byte.patch - Fix-for-CMake-on-WSL.patch + FixStdByteAndCMake.patch ) vcpkg_check_features( diff --git a/ports/uvatlas/CMakeHeadersPrivate.patch b/ports/uvatlas/CMakeHeadersPrivate.patch deleted file mode 100644 index 01dda8b27c0059..00000000000000 --- a/ports/uvatlas/CMakeHeadersPrivate.patch +++ /dev/null @@ -1,47 +0,0 @@ -From a46adfa669d22a778ff59ae8a8f5660642ebbf86 Mon Sep 17 00:00:00 2001 -From: Chuck Walbourn -Date: Thu, 31 Oct 2024 16:15:46 -0700 -Subject: [PATCH] CMake code review feedback (#193) - ---- - CMakeLists.txt | 6 +++--- - UVAtlasTool/UVAtlas.cpp | 2 +- - 2 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 9be54f3..ae19481 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -147,13 +147,13 @@ endif() - - if(directxmath_FOUND) - message(STATUS "Using DirectXMath package") -- target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath) -+ target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectXMath) - endif() - - if(directx-headers_FOUND) - message(STATUS "Using DirectX-Headers package") -- target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers) -- target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS) -+ target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectX-Headers) -+ target_compile_definitions(${PROJECT_NAME} PRIVATE USING_DIRECTX_HEADERS) - endif() - - if(ENABLE_USE_EIGEN) -diff --git a/UVAtlasTool/UVAtlas.cpp b/UVAtlasTool/UVAtlas.cpp -index b5b0239..a692baa 100644 ---- a/UVAtlasTool/UVAtlas.cpp -+++ b/UVAtlasTool/UVAtlas.cpp -@@ -1072,7 +1072,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[]) - hr = inMesh->ComputeNormals(flags); - if (FAILED(hr)) - { -- wprintf(L"\nERROR: Failed computing normals (flags:%lX, %08X%ls)\n", flags, -+ wprintf(L"\nERROR: Failed computing normals (flags:%X, %08X%ls)\n", static_cast(flags), - static_cast(hr), GetErrorDesc(hr)); - return 1; - } --- -2.47.0.windows.1 - diff --git a/ports/uvatlas/Fix-for-CMake-on-WSL.patch b/ports/uvatlas/Fix-for-CMake-on-WSL.patch deleted file mode 100644 index 34c4f8c7a3c0ca..00000000000000 --- a/ports/uvatlas/Fix-for-CMake-on-WSL.patch +++ /dev/null @@ -1,28 +0,0 @@ -From ef9fcbcce828b777fd22e00b4092b525a2dc3b17 Mon Sep 17 00:00:00 2001 -From: Chuck Walbourn -Date: Thu, 31 Oct 2024 18:29:06 -0700 -Subject: [PATCH] Fix for CMake on WSL - ---- - CMakeLists.txt | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index ae19481..5656d03 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -139,7 +139,11 @@ endif() - - if(MINGW OR (NOT WIN32)) - find_package(directxmath CONFIG REQUIRED) -+ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath) -+ - find_package(directx-headers CONFIG REQUIRED) -+ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers) -+ target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS) - else() - find_package(directxmath CONFIG QUIET) - find_package(directx-headers CONFIG QUIET) --- -2.47.0.windows.1 - diff --git a/ports/uvatlas/FixCMake.patch b/ports/uvatlas/FixCMake.patch new file mode 100644 index 00000000000000..ad5f81448e9d74 --- /dev/null +++ b/ports/uvatlas/FixCMake.patch @@ -0,0 +1,36 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9be54f3..5656d03 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -139,7 +139,11 @@ endif() + + if(MINGW OR (NOT WIN32)) + find_package(directxmath CONFIG REQUIRED) ++ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath) ++ + find_package(directx-headers CONFIG REQUIRED) ++ target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers) ++ target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS) + else() + find_package(directxmath CONFIG QUIET) + find_package(directx-headers CONFIG QUIET) +@@ -147,13 +151,13 @@ endif() + + if(directxmath_FOUND) + message(STATUS "Using DirectXMath package") +- target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath) ++ target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectXMath) + endif() + + if(directx-headers_FOUND) + message(STATUS "Using DirectX-Headers package") +- target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers) +- target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS) ++ target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectX-Headers) ++ target_compile_definitions(${PROJECT_NAME} PRIVATE USING_DIRECTX_HEADERS) + endif() + + if(ENABLE_USE_EIGEN) +-- +2.47.0.vfs.0.3 + diff --git a/ports/uvatlas/portfile.cmake b/ports/uvatlas/portfile.cmake index 12bb4f25c3df92..2a911866e518c7 100644 --- a/ports/uvatlas/portfile.cmake +++ b/ports/uvatlas/portfile.cmake @@ -9,8 +9,7 @@ vcpkg_from_github( SHA512 0ff09914445344eac748e7e6cfddebb062a0c7f36dc79d1591f5337b6600e69430aafc6f8a4cf5e3c343aea990feac4afa4cf4cf5f1e2d0865746008583bcf3d HEAD_REF main PATCHES - CMakeHeadersPrivate.patch - Fix-for-CMake-on-WSL.patch + FixCMake.patch ) vcpkg_check_features( From be8c46a1b4accb4655a9858b0c396cac6f7235ff Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Fri, 1 Nov 2024 14:15:35 -0700 Subject: [PATCH 15/15] Update baseline --- versions/d-/directxtex.json | 2 +- versions/u-/uvatlas.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/versions/d-/directxtex.json b/versions/d-/directxtex.json index 7f2a375cdeae91..2c461354249f8e 100644 --- a/versions/d-/directxtex.json +++ b/versions/d-/directxtex.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "c93b054cd1a6f0e875eab530b3443ec1b1e000e5", + "git-tree": "5ba303f8b50e8237cef6809bbf8a891adea2203d", "version-date": "2024-10-28", "port-version": 0 }, diff --git a/versions/u-/uvatlas.json b/versions/u-/uvatlas.json index 244b0670a33aa8..876de4fd18be63 100644 --- a/versions/u-/uvatlas.json +++ b/versions/u-/uvatlas.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "a314b3e59a6c45d3be58e1aece12d752773f78bf", + "git-tree": "2059b1fac30299fb988bee51c78964d8aa42b30e", "version-date": "2024-10-29", "port-version": 0 },