2020-12-27 14:48:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/DirectX-Headers
|
2023-04-22 06:02:31 +08:00
|
|
|
REF v${VERSION}
|
2024-09-10 11:30:54 +08:00
|
|
|
SHA512 934108052b9aa54b888c301f358a9d5b8f9ce1a5902e33b80c3273c963d10984faa7da167f1fed203462fe016e30443cb5e0d014de63fc9c0a81a674f757a7a9
|
2022-08-02 03:53:52 +08:00
|
|
|
HEAD_REF main
|
2020-12-27 14:48:07 +08:00
|
|
|
)
|
|
|
|
|
2022-05-05 07:17:35 +08:00
|
|
|
vcpkg_cmake_configure(
|
2020-12-27 14:48:07 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2023-12-14 15:18:00 +08:00
|
|
|
OPTIONS -DDXHEADERS_INSTALL=ON -DDXHEADERS_BUILD_TEST=OFF -DDXHEADERS_BUILD_GOOGLE_TEST=OFF
|
2020-12-27 14:48:07 +08:00
|
|
|
)
|
|
|
|
|
2022-05-05 07:17:35 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-12-14 15:18:00 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2022-05-05 07:17:35 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/directx-headers/cmake)
|
2020-12-27 14:48:07 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2023-12-14 15: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")
|