diff options
| author | myd7349 <myd7349@gmail.com> | 2019-08-14 01:47:47 +0800 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-08-13 10:47:47 -0700 |
| commit | e0989ba7aa0b9aa097b567044fabce4d6ac740a4 (patch) | |
| tree | f55edc07f5bd65b35e4635438085a1bce26bcef9 | |
| parent | d9eeafec4f98c9bda26047f535f71d49950fad66 (diff) | |
| download | vcpkg-e0989ba7aa0b9aa097b567044fabce4d6ac740a4.tar.gz vcpkg-e0989ba7aa0b9aa097b567044fabce4d6ac740a4.zip | |
[nt-wrapper] Add new port (#7633)
| -rw-r--r-- | ports/nt-wrapper/CONTROL | 4 | ||||
| -rw-r--r-- | ports/nt-wrapper/portfile.cmake | 25 |
2 files changed, 29 insertions, 0 deletions
diff --git a/ports/nt-wrapper/CONTROL b/ports/nt-wrapper/CONTROL new file mode 100644 index 000000000..cd16e9541 --- /dev/null +++ b/ports/nt-wrapper/CONTROL @@ -0,0 +1,4 @@ +Source: nt-wrapper +Version: 2019-08-10 +Description: A header only wrapper library around native windows system APIs +Homepage: https://github.com/JustasMasiulis/nt_wrapper diff --git a/ports/nt-wrapper/portfile.cmake b/ports/nt-wrapper/portfile.cmake new file mode 100644 index 000000000..7ed8146ff --- /dev/null +++ b/ports/nt-wrapper/portfile.cmake @@ -0,0 +1,25 @@ +# header-only library + +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO JustasMasiulis/nt_wrapper + REF 6a150292a43f6aea35918a5c5e93a66c334ea301 + SHA512 fb8a1c4c934d3cb48a76a935ba69fd51ec2e6b66f5c265a8da9456691f933c6080057fec9a714f252c39d02525603b993cecd905452598058254ac9318655c4f + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DBUILD_TESTING=OFF +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) + +# Handle copyright +configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) |
