aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryintothayang <yintothayang@gmail.com>2017-05-23 23:18:29 +0900
committeryintothayang <yintothayang@gmail.com>2017-05-23 23:18:29 +0900
commit8f230963fbd2675e6c709982fcad68b8471f0a69 (patch)
treea78f62d7ecb37b0352547d6a6a9b150c83916212
parentdfaa7a831c914447cb9413bc82bd3ea2ee72594b (diff)
downloadvcpkg-8f230963fbd2675e6c709982fcad68b8471f0a69.tar.gz
vcpkg-8f230963fbd2675e6c709982fcad68b8471f0a69.zip
new port for RedShell SDK
-rw-r--r--ports/redshell/CONTROL3
-rw-r--r--ports/redshell/portfile.cmake47
2 files changed, 50 insertions, 0 deletions
diff --git a/ports/redshell/CONTROL b/ports/redshell/CONTROL
new file mode 100644
index 000000000..34632b1fc
--- /dev/null
+++ b/ports/redshell/CONTROL
@@ -0,0 +1,3 @@
+Source: redshell
+Version: 1.0.0
+Description: RedShell C++ SDK. Steam attribution tracking, www.redshell.io
diff --git a/ports/redshell/portfile.cmake b/ports/redshell/portfile.cmake
new file mode 100644
index 000000000..89fef684a
--- /dev/null
+++ b/ports/redshell/portfile.cmake
@@ -0,0 +1,47 @@
+include(vcpkg_common_functions)
+
+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
+)