aboutsummaryrefslogtreecommitdiff
path: root/ports/socket-io-client
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2018-12-04 14:05:12 -0800
committerPhil Christensen <philc@microsoft.com>2018-12-04 14:05:12 -0800
commite712374b2831c4d04fc3b37373ed5cf041a3713e (patch)
tree3c1be3898e52d0e01cfc842be7ea553e8fe0bafb /ports/socket-io-client
parent7f80cbdeb02a126a610f3a3262eaefa9c9f9b938 (diff)
parentf6d32cc644a6f0fb9adb1bb3c3fd4905e8d61e2e (diff)
downloadvcpkg-e712374b2831c4d04fc3b37373ed5cf041a3713e.tar.gz
vcpkg-e712374b2831c4d04fc3b37373ed5cf041a3713e.zip
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/philc/4889
Diffstat (limited to 'ports/socket-io-client')
-rw-r--r--ports/socket-io-client/CONTROL4
-rw-r--r--ports/socket-io-client/portfile.cmake27
2 files changed, 31 insertions, 0 deletions
diff --git a/ports/socket-io-client/CONTROL b/ports/socket-io-client/CONTROL
new file mode 100644
index 000000000..92a5f20c8
--- /dev/null
+++ b/ports/socket-io-client/CONTROL
@@ -0,0 +1,4 @@
+Source: socket-io-client
+Version: 1.6.1
+Description: C++11 implementation of Socket.IO client
+Build-Depends: boost, rapidjson, websocketpp
diff --git a/ports/socket-io-client/portfile.cmake b/ports/socket-io-client/portfile.cmake
new file mode 100644
index 000000000..eed7a4d65
--- /dev/null
+++ b/ports/socket-io-client/portfile.cmake
@@ -0,0 +1,27 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO socketio/socket.io-client-cpp
+ REF 1.6.1
+ SHA512 01c9c172e58a16b25af07c6bde593507792726aca28a9b202ed9531d51cd7e77c7e7d536102e50265d66de96e9708616075902dfdcfc72983758755381bad707
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA # Disable this option if project cannot be built with Ninja
+ # OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
+ # OPTIONS_RELEASE -DOPTIMIZE=1
+ # OPTIONS_DEBUG -DDEBUGGABLE=1
+)
+
+vcpkg_install_cmake()
+
+file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include)
+file(COPY ${SOURCE_PATH}/build/include
+ DESTINATION ${CURRENT_PACKAGES_DIR}/include
+ FILES_MATCHING PATTERN "*.h")
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/socket-io-client/copyright COPYONLY)