2019-05-09 03:40:09 +08:00
|
|
|
#header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/wil
|
2023-04-18 10:34:57 +08:00
|
|
|
REF 9db6276dce851dc2b6807fc81bffbec2e27acd0b
|
|
|
|
SHA512 da26905b2665e952c06a42f1b56e7cb6e335cccb592d7dac5e59a11bbf2b10e5d532649383d2feb2313432c9be5068a2cd57b368a309f65899cbff61e866fc10
|
2019-05-09 03:40:09 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
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")
|