diff options
| author | Mathis Logemann <mathisloge@gmail.com> | 2020-11-04 05:51:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-03 20:51:18 -0800 |
| commit | 2ccfa2d568ddb9c4c0dffb722cfc7b76a0db0932 (patch) | |
| tree | dfc79bb4f4fa2df286553b93d1fc1ca66b24a2fa /ports/comms | |
| parent | 0b26c1fe58d2f5f3a3ecd8face441724d6f0dd9f (diff) | |
| download | vcpkg-2ccfa2d568ddb9c4c0dffb722cfc7b76a0db0932.tar.gz vcpkg-2ccfa2d568ddb9c4c0dffb722cfc7b76a0db0932.zip | |
[comms] Add new ports (#14195)
Diffstat (limited to 'ports/comms')
| -rw-r--r-- | ports/comms/portfile.cmake | 24 | ||||
| -rw-r--r-- | ports/comms/vcpkg.json | 7 |
2 files changed, 31 insertions, 0 deletions
diff --git a/ports/comms/portfile.cmake b/ports/comms/portfile.cmake new file mode 100644 index 000000000..bca5f8524 --- /dev/null +++ b/ports/comms/portfile.cmake @@ -0,0 +1,24 @@ +#header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mathisloge/comms_champion
+ REF v3.1.1
+ SHA512 167838aec1d42ce60e373aaa1c3b3f0093735e54b80c12229624fa5617b713462609b46585dbe9a1637404e88bd051eda2e619d21bff60056693e79dd9e53878
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DCC_COMMS_LIB_ONLY=ON
+ -DCC_NO_UNIT_TESTS=ON
+)
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
\ No newline at end of file diff --git a/ports/comms/vcpkg.json b/ports/comms/vcpkg.json new file mode 100644 index 000000000..6c3668de0 --- /dev/null +++ b/ports/comms/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "comms", + "version-string": "3.1.1", + "description": "COMMS is the C++(11) headers only, platform independent library, which makes the implementation of a communication protocol to be an easy and relatively quick process.", + "homepage": "https://commschamp.github.io/", + "documentation": "https://github.com/commschamp/comms_champion" +} |
