Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[directxtex] Update for March 2024 release #37233

Merged
merged 9 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions ports/directxtex/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
set(DIRECTXTEX_TAG feb2024)
set(DIRECTXTEX_TAG mar2024)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Microsoft/DirectXTex
REF ${DIRECTXTEX_TAG}
SHA512 d82e722746409fccb831cdb85c28403b5e3bb9b60bdc6f80366096998265e009c13868bba9cf187ee10a09df3d6a1426777a1f181d733b61dfe0dffe72b56601
SHA512 313e66597a101675c9c32032577421ae574229d27defe718a94690446e9c562507209b5912ac48c6dc4d84124b059c9c061e094f44b0b9dbc90ede50d8a2c230
HEAD_REF main
)

Expand All @@ -15,9 +15,13 @@ vcpkg_check_features(
FEATURES
dx11 BUILD_DX11
dx12 BUILD_DX12
jpeg ENABLE_LIBJPEG_SUPPORT
openexr ENABLE_OPENEXR_SUPPORT
png ENABLE_LIBPNG_SUPPORT
spectre ENABLE_SPECTRE_MITIGATION
tools BUILD_TOOLS
xboxone BUILD_XBOX_EXTS_XBOXONE
xboxseriesx BUILD_XBOX_EXTS_SCARLETT
)

set(EXTRA_OPTIONS -DBUILD_SAMPLE=OFF)
Expand All @@ -30,6 +34,10 @@ if(VCPKG_TARGET_IS_MINGW AND ("dx11" IN_LIST FEATURES))
message(NOTICE "Building ${PORT} for MinGW requires the HLSL Compiler fxc.exe also be in the PATH. See https://aka.ms/windowssdk.")
endif()

if(("xboxone" IN_LIST FEATURES) AND ("xboxseriesx" IN_LIST FEATURES))
message(FATAL_ERROR "${PORT} can only support one of Xbox One or Xbox Series X|S at a time.")
endif()
walbourn marked this conversation as resolved.
Show resolved Hide resolved

if (VCPKG_HOST_IS_LINUX)
message(WARNING "Build ${PORT} requires GCC version 9 or later")
endif()
Expand All @@ -47,7 +55,8 @@ if("tools" IN_LIST FEATURES)

file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/directxtex/")

if((VCPKG_TARGET_ARCHITECTURE STREQUAL x64) AND (NOT ("openexr" IN_LIST FEATURES)))
if((VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
AND (NOT (("openexr" IN_LIST FEATURES) OR ("xboxone" IN_LIST FEATURES) OR ("xboxseriesx" IN_LIST FEATURES))))

vcpkg_download_distfile(
TEXASSEMBLE_EXE
Expand Down
30 changes: 29 additions & 1 deletion ports/directxtex/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "directxtex",
"version-date": "2024-02-21",
"version-date": "2024-03-06",
"description": "DirectXTex texture processing library",
"homepage": "https://github.com/Microsoft/DirectXTex",
"documentation": "https://github.com/microsoft/DirectXTex/wiki",
Expand Down Expand Up @@ -41,18 +41,46 @@
}
]
},
"jpeg": {
"description": "Add the JPEG auxiliary functions",
"supports": "linux",
"dependencies": [
"libjpeg-turbo"
]
},
"openexr": {
"description": "Enable OpenEXR support",
"dependencies": [
"openexr"
]
},
"png": {
"description": "Add the PNG auxiliary functions",
"supports": "linux",
"dependencies": [
"libpng"
]
},
"spectre": {
"description": "Build Spectre-mitigated library"
},
"tools": {
"description": "texture command-line tools",
"supports": "windows & !uwp & !xbox"
},
"xboxone": {
"description": "Adds Xbox One specific extensions to the library",
"supports": "windows & x64 & !uwp & !xbox",
"dependencies": [
"ms-gdkx"
]
},
"xboxseriesx": {
"description": "Adds Xbox Series X|S specific extensions to the library",
"supports": "windows & x64 & !uwp & !xbox",
"dependencies": [
"ms-gdkx"
]
}
}
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2225,7 +2225,7 @@
"port-version": 8
},
"directxtex": {
"baseline": "2024-02-21",
"baseline": "2024-03-06",
"port-version": 0
},
"directxtk": {
Expand Down
5 changes: 5 additions & 0 deletions versions/d-/directxtex.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "a861b0333d8ee67db55bca07856ad389f995451c",
"version-date": "2024-03-06",
"port-version": 0
},
{
"git-tree": "a2d746ba7bfd95fe762b07329b0cc6f05aea1808",
"version-date": "2024-02-21",
Expand Down