aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2018-08-22 07:43:23 +0800
committerRobert Schumacher <roschuma@microsoft.com>2018-08-21 16:43:23 -0700
commitb509ceb48d4a9e36a66df1fab999aef443a26fb0 (patch)
tree0be6b936e2a5072f3e252eddeba32360ce550807
parent093900b22528b6abdd97b59ce1ccb50a46c74844 (diff)
downloadvcpkg-b509ceb48d4a9e36a66df1fab999aef443a26fb0.tar.gz
vcpkg-b509ceb48d4a9e36a66df1fab999aef443a26fb0.zip
[concurrentqueue] Add new package (#4115)
-rw-r--r--ports/concurrentqueue/CONTROL3
-rw-r--r--ports/concurrentqueue/portfile.cmake15
2 files changed, 18 insertions, 0 deletions
diff --git a/ports/concurrentqueue/CONTROL b/ports/concurrentqueue/CONTROL
new file mode 100644
index 000000000..2dea27277
--- /dev/null
+++ b/ports/concurrentqueue/CONTROL
@@ -0,0 +1,3 @@
+Source: concurrentqueue
+Version: 1.0.0-beta
+Description: A fast multi-producer, multi-consumer lock-free concurrent queue for C++11
diff --git a/ports/concurrentqueue/portfile.cmake b/ports/concurrentqueue/portfile.cmake
new file mode 100644
index 000000000..9114d2a26
--- /dev/null
+++ b/ports/concurrentqueue/portfile.cmake
@@ -0,0 +1,15 @@
+# header-only library
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO cameron314/concurrentqueue
+ REF 1d60c7f3004a87eaa9d9cbd647d66361c868558f
+ SHA512 4b435843291f4db5be6d3fb3dd33c38a1c3c0a2e2c22910b819f119cfca2867116c5d01dd5e7d302693d467821688aac5dc7334b4a9ef39275e682f1fb99585c
+ HEAD_REF master
+)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/concurrentqueue RENAME copyright)
+
+file(GLOB HEADER_FILES ${SOURCE_PATH}/*.h)
+file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)