[directx-dxc, directx-headers] Update for March 2024 release (#37382)

Updates the DXC complier and DirectX 12 Headers for the *DirectX 12
Agility SDK* release for GDC 2024.
This commit is contained in:
Chuck Walbourn 2024-03-11 20:33:50 -07:00 коммит произвёл GitHub
Родитель 65bd24dc94
Коммит dbb323c091
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
8 изменённых файлов: 31 добавлений и 14 удалений

Просмотреть файл

@ -1,7 +1,7 @@
set(VCPKG_POLICY_DLLS_IN_STATIC_LIBRARY enabled)
set(DIRECTX_DXC_TAG v1.7.2308)
set(DIRECTX_DXC_VERSION 2023_08_14)
set(DIRECTX_DXC_TAG v1.8.2403)
set(DIRECTX_DXC_VERSION 2024_03_07)
if (NOT VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
message(STATUS "Note: ${PORT} always requires dynamic library linkage at runtime.")
@ -11,13 +11,13 @@ if (VCPKG_TARGET_IS_LINUX)
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/microsoft/DirectXShaderCompiler/releases/download/${DIRECTX_DXC_TAG}/linux_dxc_${DIRECTX_DXC_VERSION}.x86_64.tar.gz"
FILENAME "linux_dxc_${DIRECTX_DXC_VERSION}.tar.gz"
SHA512 7f1fb252b27fb00b9ffeadafb47921757c5e4d7df806283fe7629b866d2873896d7a7d599032aa2389f047d9791a447aabb22e3e8e7e1f3f76142675d831b738
SHA512 8212b31dd1f10b9896ab7cacc6230a8c1685a7dac8953e6adc85885e6305f39e2eb539119f3716de57c9ff3ebdb70fd746200bd390b341062a1aefae867d796c
)
else()
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/microsoft/DirectXShaderCompiler/releases/download/${DIRECTX_DXC_TAG}/dxc_${DIRECTX_DXC_VERSION}.zip"
FILENAME "dxc_${DIRECTX_DXC_VERSION}.zip"
SHA512 3bc49f77b55f58de88002a75b38e5acdb8600b0b73729320a25a27af08f1f21d0b4aec92ee9d736eb30bae42f4e0f2f32d25d6635fa71aedcaf82440e6d2433e
SHA512 a0a8ec523d5937f545261dd3ad30d55c222444ba1872a0a8c6f0c869d809537afbc57cb605b7cf156650ca38fc12ec8c1add3ffc18b65dd7fe785afe6a7f85f2
)
endif()
@ -25,7 +25,7 @@ vcpkg_download_distfile(
LICENSE_TXT
URLS "https://raw.githubusercontent.com/microsoft/DirectXShaderCompiler/${DIRECTX_DXC_TAG}/LICENSE.TXT"
FILENAME "LICENSE.${DIRECTX_DXC_VERSION}"
SHA512 7589f152ebc3296dca1c73609a2a23a911b8fc0029731268a6151710014d82005a868c85c8249219f060f64ab1ddecdddff5ed6ea34ff509f63ea3e42bbbf47e
SHA512 9feaa85ca6d42d5a2d6fe773706bbab8241e78390a9d61ea9061c8f0eeb5a3e380ff07c222e02fbf61af7f2b2f6dd31c5fc87247a94dae275dc0a20cdfcc8c9d
)
vcpkg_extract_source_archive(
@ -104,10 +104,11 @@ else()
set(tool_path "tools/directx-dxc/dxc.exe")
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${LICENSE_TXT}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
configure_file("${CMAKE_CURRENT_LIST_DIR}/directx-dxc-config.cmake.in"
"${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake"
@ONLY)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${LICENSE_TXT}")

6
ports/directx-dxc/usage Normal file
Просмотреть файл

@ -0,0 +1,6 @@
The DirectX Shader Compiler package provides CMake targets:
find_package(directx-dxc CONFIG REQUIRED)
target_link_libraries(main PRIVATE Microsoft::DirectXShaderCompiler)
The CMake variable DIRECTX_DXC_TOOL is also set to point to the appropriate DXC command-line tool.

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "directx-dxc",
"version-date": "2023-08-14",
"version-date": "2024-03-07",
"description": "DirectX Shader Compiler (LLVM/Clang)",
"homepage": "https://github.com/microsoft/DirectXShaderCompiler",
"documentation": "https://github.com/microsoft/DirectXShaderCompiler/wiki",

Просмотреть файл

@ -2,7 +2,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Microsoft/DirectX-Headers
REF v${VERSION}
SHA512 717ed37f6404d67a032f50358a17bcab6c6258eff321287e4a26cef203738d4e5c930a53afc43d8175637634d71dfbb7c25f13eedaa35a4626cb402fa5e56abc
SHA512 2a87d52d34720555eaff0e983afe80149649de5c82535411a2c3f61b83f49d9ce27976b20d65f2b348cd9933ec5ed93aa3716f9b831ed664116158418e26fb44
HEAD_REF main
)

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "directx-headers",
"version": "1.611.0",
"version": "1.613.0",
"description": "Official DirectX 12 Headers",
"homepage": "https://devblogs.microsoft.com/directx/",
"documentation": "https://devblogs.microsoft.com/directx/gettingstarted-dx12agility/",

Просмотреть файл

@ -2205,11 +2205,11 @@
"port-version": 0
},
"directx-dxc": {
"baseline": "2023-08-14",
"baseline": "2024-03-07",
"port-version": 0
},
"directx-headers": {
"baseline": "1.611.0",
"baseline": "1.613.0",
"port-version": 0
},
"directxmath": {

Просмотреть файл

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "353096a360b10503e2e749b99155ba4ed6751340",
"version-date": "2024-03-07",
"port-version": 0
},
{
"git-tree": "24aa8f49b169cce15400a6b90aec8f20b609ea24",
"version-date": "2023-08-14",

Просмотреть файл

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6c085ed2008d4a006b606d30ce989efde86e145e",
"version": "1.613.0",
"port-version": 0
},
{
"git-tree": "fb40a4684c1b18daa80a09fc344d94622a275161",
"version": "1.611.0",