vcpkg/ports/directx-headers/portfile.cmake
Chuck Walbourn dbb323c091
[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.
2024-03-11 20:33:50 -07:00

22 lines
776 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Microsoft/DirectX-Headers
REF v${VERSION}
SHA512 2a87d52d34720555eaff0e983afe80149649de5c82535411a2c3f61b83f49d9ce27976b20d65f2b348cd9933ec5ed93aa3716f9b831ed664116158418e26fb44
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS -DDXHEADERS_INSTALL=ON -DDXHEADERS_BUILD_TEST=OFF -DDXHEADERS_BUILD_GOOGLE_TEST=OFF
)
vcpkg_cmake_install()
vcpkg_fixup_pkgconfig()
vcpkg_cmake_config_fixup(CONFIG_PATH share/directx-headers/cmake)
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 "${SOURCE_PATH}/LICENSE")