2023-01-09 17:24:11 +08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
|
|
|
|
2020-12-27 14:48:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/DirectX-Headers
|
2023-01-09 17:24:11 +08:00
|
|
|
REF v1.608.2b
|
|
|
|
SHA512 d4e82615751d9ee46c456c676bfd6831c47d159ee58634531fc1acd09927f00c4e8d379cb233a1f89e3489a6a30d8edc0552b76945071badaed6a9c8591cbb0c
|
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)
|