aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvin <52727318+AlvinZhangH@users.noreply.github.com>2019-09-17 04:12:04 +0800
committerPhil Christensen <philc@microsoft.com>2019-09-16 13:12:04 -0700
commit9ed35f7c22880566ee391e5f2345686644a21ed5 (patch)
tree962d9bc735b604e1b3e25b8186cf686509d64a3f
parent7fc775a9fa07c6554713f04173879abdea707d40 (diff)
downloadvcpkg-9ed35f7c22880566ee391e5f2345686644a21ed5.tar.gz
vcpkg-9ed35f7c22880566ee391e5f2345686644a21ed5.zip
[winreg] Add new port (#8190)
* [winreg]Add new port. * [winreg]Add judgement message 'winreg only support windows.'
-rw-r--r--ports/winreg/CONTROL4
-rw-r--r--ports/winreg/portfile.cmake21
2 files changed, 25 insertions, 0 deletions
diff --git a/ports/winreg/CONTROL b/ports/winreg/CONTROL
new file mode 100644
index 000000000..665adb1a7
--- /dev/null
+++ b/ports/winreg/CONTROL
@@ -0,0 +1,4 @@
+Source: winreg
+Version: 1.2.1
+Homepage: https://github.com/GiovanniDicanio/WinReg
+Description: High-level C++ wrapper around the Windows Registry C API. \ No newline at end of file
diff --git a/ports/winreg/portfile.cmake b/ports/winreg/portfile.cmake
new file mode 100644
index 000000000..d23410cd0
--- /dev/null
+++ b/ports/winreg/portfile.cmake
@@ -0,0 +1,21 @@
+# WinReg - Header-only library
+
+include(vcpkg_common_functions)
+
+if(NOT VCPKG_TARGET_IS_WINDOWS)
+ message("winreg only support windows.")
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO GiovanniDicanio/WinReg
+ REF v1.2.1
+ SHA512 c919f91bf37b2fd7c30f6463430e07f3b8d1a01b8d4c84591b56299faf9d5b651d7c3b35a2adc22e3b0aa471627060a45e179f98f309242683b17d4d0d81cb7b
+ HEAD_REF master
+)
+
+# Copy the single reusable library header
+file(COPY ${SOURCE_PATH}/WinReg/WinReg/WinReg.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) \ No newline at end of file