2019-05-09 03:40:09 +08:00
|
|
|
#header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/wil
|
2021-08-05 18:03:51 +08:00
|
|
|
REF 5a21cac10640f54b7ef886031f4d9ed427bef4c5
|
|
|
|
SHA512 b1a6703dd75eee66f81c54bb5c01bc9acc7354c113fd556afb2dd95361db7e9f94c9e958d9a0b897359084c9c08cb725bbe214fdaccf2e662c1ca4aa73c3345a
|
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)
|
|
|
|
# Remove this line in the next update
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/WIL-config.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/wilConfig.cmake")
|
2021-01-06 04:44:06 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
|
2021-03-11 03:29:45 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|