aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/plf-nanotimer
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/plf-nanotimer')
-rw-r--r--vcpkg/ports/plf-nanotimer/portfile.cmake14
-rw-r--r--vcpkg/ports/plf-nanotimer/vcpkg.json7
2 files changed, 21 insertions, 0 deletions
diff --git a/vcpkg/ports/plf-nanotimer/portfile.cmake b/vcpkg/ports/plf-nanotimer/portfile.cmake
new file mode 100644
index 0000000..c02495d
--- /dev/null
+++ b/vcpkg/ports/plf-nanotimer/portfile.cmake
@@ -0,0 +1,14 @@
+# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mattreecebentley/plf_nanotimer
+ REF bc8b44d2befc4395f63701c923ece89835d8415c
+ SHA512 ec816e82ab855dd7029b03931ffb1e945d3e77f7bb446c4985c4a8404afe20e9de8fac02f64459c47c34e31c06fa8838dba310263197d309e39ec1b0b5da0b6d
+ HEAD_REF master
+)
+
+file(COPY ${SOURCE_PATH}/plf_nanotimer.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
diff --git a/vcpkg/ports/plf-nanotimer/vcpkg.json b/vcpkg/ports/plf-nanotimer/vcpkg.json
new file mode 100644
index 0000000..8d4b15c
--- /dev/null
+++ b/vcpkg/ports/plf-nanotimer/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "plf-nanotimer",
+ "version-date": "2019-08-10",
+ "port-version": 2,
+ "description": "A simple C++ 03/11/etc timer class for ~microsecond-precision cross-platform benchmarking",
+ "homepage": "https://www.plflib.org/"
+}