2020-12-26 22:48:07 -08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/DirectX-Headers
|
2023-04-21 15:02:31 -07:00
|
|
|
REF v${VERSION}
|
2024-06-19 05:00:30 +10:00
|
|
|
SHA512 5f78c8d47d02c1620b4ef4b379f0598e000c7aef367d694d37f796978019383911d0778434bff5a635f8d1c688595896337dbd31dacdca3e37af91b51be98b08
|
2022-08-01 12:53:52 -07:00
|
|
|
HEAD_REF main
|
2020-12-26 22:48:07 -08:00
|
|
|
)
|
|
|
|
|
2022-05-04 16:17:35 -07:00
|
|
|
vcpkg_cmake_configure(
|
2020-12-26 22:48:07 -08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2023-12-13 23:18:00 -08:00
|
|
|
OPTIONS -DDXHEADERS_INSTALL=ON -DDXHEADERS_BUILD_TEST=OFF -DDXHEADERS_BUILD_GOOGLE_TEST=OFF
|
2020-12-26 22:48:07 -08:00
|
|
|
)
|
|
|
|
|
2022-05-04 16:17:35 -07:00
|
|
|
vcpkg_cmake_install()
|
2023-12-13 23:18:00 -08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2022-05-04 16:17:35 -07:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/directx-headers/cmake)
|
2020-12-26 22:48:07 -08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2023-12-13 23:18:00 -08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|