2020-12-27 14:48:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/DirectX-Headers
|
2022-08-02 03:53:52 +08:00
|
|
|
REF v1.606.3-r1
|
|
|
|
SHA512 a6a9337446f890bb44872ecc9ae0a6feed8e790331ab5bc861e5eea4c552fbbe06655c20b46b8683a76dadf58aaeb0591430e3a4ac2629a41448f1f32f6edc3f
|
|
|
|
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)
|