diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-05-25 16:12:46 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-25 16:12:46 -0700 |
| commit | d794a6287ac816ea10888fe86fdb51d17e13cc2e (patch) | |
| tree | 533ccdae28ea179e8f646b51fc23e78e4434ca02 | |
| parent | 174a9a34648782992d22899a2d62478a21ca6788 (diff) | |
| parent | 341d606e6013787c8b6e9fa5e5bdbcb57450c166 (diff) | |
| download | vcpkg-d794a6287ac816ea10888fe86fdb51d17e13cc2e.tar.gz vcpkg-d794a6287ac816ea10888fe86fdb51d17e13cc2e.zip | |
Merge pull request #1148 from Innervate/redshell-port
Addition of a new port for the RedShell SDK
| -rw-r--r-- | ports/redshell/CONTROL | 4 | ||||
| -rw-r--r-- | ports/redshell/portfile.cmake | 55 |
2 files changed, 59 insertions, 0 deletions
diff --git a/ports/redshell/CONTROL b/ports/redshell/CONTROL new file mode 100644 index 000000000..54d211498 --- /dev/null +++ b/ports/redshell/CONTROL @@ -0,0 +1,4 @@ +Source: redshell +Version: 1.0.0 +Description: RedShell C++ SDK. Steam attribution tracking, www.redshell.io +# Built-Using: openssl (= 1.0.2k-2), cpprestsdk (= 2.9.0-2), boost (= 1.64-4), websocketpp (= 0.7.0), zlib (= 1.2.11), bzip2 (= 1.0.6-1) diff --git a/ports/redshell/portfile.cmake b/ports/redshell/portfile.cmake new file mode 100644 index 000000000..c394d7013 --- /dev/null +++ b/ports/redshell/portfile.cmake @@ -0,0 +1,55 @@ +include(vcpkg_common_functions) + +if(VCPKG_TARGET_ARCHITECTURE STREQUAL arm) + message(FATAL_ERROR "Error: redshell does not support the ARM architecture.") +endif() + +if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore) + message(FATAL_ERROR "Error: redshell does not support UWP builds.") +endif() + +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/redshell) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Innervate/red-shell-cpp + REF 1.0.0 + SHA512 00c79a09e92131e4ee0f46b14a2280bdb4e8c5970876dba99e8edd2294813f1b602eb0c9c8e24c9fd363a5c276dfa3daaf71f6ba2774842a8b565c803b3ff08c + HEAD_REF master +) + +# Header .h +file(COPY + "${SOURCE_PATH}/include/RedShell.h" + DESTINATION ${CURRENT_PACKAGES_DIR}/include/redshell +) + +# Debug .lib +file(COPY + "${SOURCE_PATH}/lib/${VCPKG_TARGET_ARCHITECTURE}/debug/RedShell.lib" + DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib +) + +# Release .lib +file(COPY + "${SOURCE_PATH}/lib/${VCPKG_TARGET_ARCHITECTURE}/RedShell.lib" + DESTINATION ${CURRENT_PACKAGES_DIR}/lib +) + +# Debug .dll +file(COPY + "${SOURCE_PATH}/bin/${VCPKG_TARGET_ARCHITECTURE}/debug/RedShell.dll" + DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin +) + +# Release .dll +file(COPY + "${SOURCE_PATH}/bin/${VCPKG_TARGET_ARCHITECTURE}/RedShell.dll" + DESTINATION ${CURRENT_PACKAGES_DIR}/bin +) + +# Copyright +file(COPY + "${SOURCE_PATH}/LICENSE.txt" + DESTINATION ${CURRENT_PACKAGES_DIR}/share/redshell/copyright +) |
