2023-01-09 01:24:11 -08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
|
|
|
|
2020-12-26 22:48:07 -08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/DirectX-Headers
|
2023-04-21 15:02:31 -07:00
|
|
|
REF v${VERSION}
|
|
|
|
SHA512 37781f20b533c68d2adacda36936e70d43cf83b108ec76b224b0633760f8e993467618e40b21dd4a71ff314f1b35e3812d7ec85663696bab7132222d1fb5b987
|
2022-08-01 12:53:52 -07:00
|
|
|
HEAD_REF main
|
2020-12-26 22:48:07 -08:00
|
|
|
)
|
|
|
|
|
2022-05-04 16:17:35 -07:00
|
|
|
vcpkg_cmake_configure(
|
2020-12-26 22:48:07 -08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2022-05-04 16:17:35 -07:00
|
|
|
OPTIONS -DDXHEADERS_BUILD_TEST=OFF -DDXHEADERS_BUILD_GOOGLE_TEST=OFF
|
2020-12-26 22:48:07 -08:00
|
|
|
)
|
|
|
|
|
2022-05-04 16:17:35 -07:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/directx-headers/cmake)
|
2020-12-26 22: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)
|