2019-05-09 03:40:09 +08:00
|
|
|
#header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/wil
|
2023-11-16 07:46:34 +08:00
|
|
|
REF v1.0.231028.1
|
|
|
|
SHA512 c9bbf3ab64ed63f57fc50954b03fa57c24e5399c79d6a53803e66741874bf582646ac886c8adeac09c881a71980ec0624529c06d9c89e8846e17d79cb3f3cc83
|
2019-05-09 03:40:09 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-10-25 00:20:24 +08:00
|
|
|
# WIL is header-only, so we don't need to build it in both modes
|
|
|
|
set(VCPKG_BUILD_TYPE release)
|
|
|
|
|
2021-12-14 03:47:30 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-01-06 04:44:06 +08:00
|
|
|
OPTIONS
|
|
|
|
-DWIL_BUILD_TESTS=OFF
|
|
|
|
-DWIL_BUILD_PACKAGING=ON
|
|
|
|
)
|
|
|
|
|
2021-12-14 03:47:30 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-01-06 04:44:06 +08:00
|
|
|
|
2021-12-14 03:47:30 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/WIL)
|
2021-01-06 04:44:06 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
|
2022-10-15 07:31:24 +08:00
|
|
|
# Install natvis files
|
|
|
|
file(INSTALL "${SOURCE_PATH}/natvis/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/natvis")
|
|
|
|
|
|
|
|
# Install copyright
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|