aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/winreg
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/winreg')
-rw-r--r--vcpkg/ports/winreg/portfile.cmake15
-rw-r--r--vcpkg/ports/winreg/vcpkg.json8
2 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/winreg/portfile.cmake b/vcpkg/ports/winreg/portfile.cmake
new file mode 100644
index 0000000..38933f3
--- /dev/null
+++ b/vcpkg/ports/winreg/portfile.cmake
@@ -0,0 +1,15 @@
+# WinReg - Header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO GiovanniDicanio/WinReg
+ REF "v${VERSION}"
+ SHA512 174d5ff3c08825990663159e91b9150f5a792591a4ee9e7f08facde124e212456df8b52c3fb50239363a2a2b43986678fde3880ca81e19c4c51e0f2ebddfef8c
+ HEAD_REF master
+)
+
+# Copy the single reusable library header
+file(COPY "${SOURCE_PATH}/WinReg/WinReg.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
+
+# Handle copyright
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/winreg/vcpkg.json b/vcpkg/ports/winreg/vcpkg.json
new file mode 100644
index 0000000..0bf00c0
--- /dev/null
+++ b/vcpkg/ports/winreg/vcpkg.json
@@ -0,0 +1,8 @@
+{
+ "name": "winreg",
+ "version": "6.3.2",
+ "description": "High-level C++ wrapper around the Windows Registry C API.",
+ "homepage": "https://github.com/GiovanniDicanio/WinReg",
+ "license": "MIT",
+ "supports": "windows | uwp"
+}