2020-12-27 14:48:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/DirectX-Headers
|
2022-05-05 07:17:35 +08:00
|
|
|
REF v1.602.0
|
|
|
|
SHA512 75d81191e3e0b60bc901f04fcb9cf53f0faae7f0c196a1b04f2b9199c72243d4dddaeacad29d82ca7ccb209b16d07b4f1b71a58368fccad13c4d8421e0c9f0d9
|
2020-12-27 14:48:07 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
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)
|