Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gamenetworkingsockets] Add new port #14937

Merged
merged 7 commits into from
Jan 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions ports/gamenetworkingsockets/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ValveSoftware/GameNetworkingSockets
REF v1.2.0
SHA512 d179fd8f221236beb161723ca133c1f7c574f5d8d9364aaa0de27c64c8661b26b17e3395f42f5245276a05a1399146e56e462d3ec1bb23847955225a99f8d2e3
HEAD_REF master
)

set(CRYPTO_BACKEND OpenSSL)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DGAMENETWORKINGSOCKETS_BUILD_TESTS=OFF
-DGAMENETWORKINGSOCKETS_BUILD_EXAMPLES=OFF
-DUSE_CRYPTO=${CRYPTO_BACKEND}
-DUSE_CRYPTO25519=${CRYPTO_BACKEND}
)

vcpkg_install_cmake()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/GameNetworkingSockets" TARGET_PATH "share/GameNetworkingSockets")

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_copy_pdbs()
12 changes: 12 additions & 0 deletions ports/gamenetworkingsockets/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "gamenetworkingsockets",
"version-string": "2020-09-02",
"description": "GameNetworkingSockets is a basic transport layer for games.",
"homepage": "https://github.com/ValveSoftware/GameNetworkingSockets",
"license": "BSD-3-Clause",
"supports": "!(static & windows) & !uwp & !(arm64 & windows)",
"dependencies": [
"openssl",
"protobuf"
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2048,6 +2048,10 @@
"baseline": "0.18.1",
"port-version": 0
},
"gamenetworkingsockets": {
"baseline": "2020-09-02",
"port-version": 0
},
"gamma": {
"baseline": "gamma-2018-01-27",
"port-version": 2
Expand Down
9 changes: 9 additions & 0 deletions versions/g-/gamenetworkingsockets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "42d95ab20685b00bc64cad1500f559d5b185a3a5",
"version-string": "2020-09-02",
"port-version": 0
}
]
}