2020-12-27 14:48:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/DirectX-Headers
|
2022-10-04 05:03:35 +08:00
|
|
|
REF v1.606.4
|
|
|
|
SHA512 3fb4142f8ceedd8484f5f7dae5804a7a0012951de344936fbf22991d6ae659d4e5093e1627bfe51c3cb0859340b13171c4f6aa68377ec26ac05038acaad8c540
|
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}
|
2022-05-05 07:17:35 +08:00
|
|
|
OPTIONS -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()
|
|
|
|
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")
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|