2019-09-17 04:12:04 +08:00
|
|
|
# WinReg - Header-only library
|
2020-04-22 04:17:32 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "linux" "osx")
|
2019-09-17 04:12:04 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO GiovanniDicanio/WinReg
|
2021-11-04 12:45:24 +08:00
|
|
|
REF 2594342b7fe6065430bc377961c37d30614cb4ff #v4.1.2
|
|
|
|
SHA512 924cdb77518c3f0843e95cd7e7d4626d4c0c466444cd79fdfa6943975154a54f4eb0d4bd45b8d37d73c650467b1d2728543176688f356c5100d98810e95c9fe8
|
2019-09-17 04:12:04 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
# Copy the single reusable library header
|
2021-11-04 12:45:24 +08:00
|
|
|
file(COPY "${SOURCE_PATH}/WinReg/WinReg.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
|
2019-09-17 04:12:04 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-11-04 12:45:24 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|