Skip to content

Commit

Permalink
Update to nakama-cpp 2.8.0 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Gehorsam authored Jun 28, 2023
1 parent 7a26831 commit cb18156
Show file tree
Hide file tree
Showing 13 changed files with 65 additions and 33 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jobs:
uses: ./.github/workflows/build_android.yml
build_ios:
uses: ./.github/workflows/build_ios.yml
# TODO investigate failures: build_linux:
# TODO investigate failures: uses: ./.github/workflows/build_linux.yml
# TODO FIX build_linux:
# uses: ./.github/workflows/build_linux.yml
build_osx:
uses: ./.github/workflows/build_osx.yml
# TODO investigate failures build_windows:
# TODO investigate failures uses: ./.github/workflows/build_windows.yml
# TODO FIX build_windows:
# uses: ./.github/workflows/build_windows.yml
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ All notable changes to this project are documented below.

The format is based on [keep a changelog](http://keepachangelog.com/) and this project uses [semantic versioning](http://semver.org/).

## [2.6.0] - [2023-02-24]
## [2.7.0] - [2023-06-27]
### Changed
- Updated to Nakama 2.8.0

## [2.6.0] - [2023-02-24]
### Changed
- Updated to use nakama-cpp 2.7.1.
- Remove buggy Cocos adapters. The new adapters are now native to nakama-cpp.
Expand Down
8 changes: 7 additions & 1 deletion triplets/arm-neon-android-release.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
set(VCPKG_TARGET_ARCHITECTURE arm)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)

if (${PORT} MATCHES "nakama-sdk")
set(VCPKG_LIBRARY_LINKAGE dynamic)
else()
set(VCPKG_LIBRARY_LINKAGE static)
endif()

set(VCPKG_CMAKE_SYSTEM_NAME Android)
set(VCPKG_BUILD_TYPE release)
set(ANDROID_ARM_NEON ON)
8 changes: 7 additions & 1 deletion triplets/arm64-android-release.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
set(VCPKG_TARGET_ARCHITECTURE arm64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)

if (${PORT} MATCHES "nakama-sdk")
set(VCPKG_LIBRARY_LINKAGE dynamic)
else()
set(VCPKG_LIBRARY_LINKAGE static)
endif()

set(VCPKG_CMAKE_SYSTEM_NAME Android)

set(VCPKG_BUILD_TYPE release)
Expand Down
7 changes: 6 additions & 1 deletion triplets/arm64-ios-release.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
set(VCPKG_TARGET_ARCHITECTURE arm64)
set(VCPKG_CRT_LINKAGE dynamic)

set(VCPKG_LIBRARY_LINKAGE static)
if (${PORT} MATCHES "nakama-sdk")
set(VCPKG_LIBRARY_LINKAGE dynamic)
else()
set(VCPKG_LIBRARY_LINKAGE static)
endif()

set(VCPKG_CMAKE_SYSTEM_NAME iOS)

# HeroicLabs additions to standard triplets:
Expand Down
6 changes: 5 additions & 1 deletion triplets/arm64-osx-release.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
set(VCPKG_TARGET_ARCHITECTURE arm64)
set(VCPKG_CRT_LINKAGE dynamic)

set(VCPKG_LIBRARY_LINKAGE static)
if (${PORT} MATCHES "nakama-sdk")
set(VCPKG_LIBRARY_LINKAGE dynamic)
else()
set(VCPKG_LIBRARY_LINKAGE static)
endif()

set(VCPKG_BUILD_TYPE release)

Expand Down
8 changes: 7 additions & 1 deletion triplets/x64-android-release.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)

if (${PORT} MATCHES "nakama-sdk")
set(VCPKG_LIBRARY_LINKAGE dynamic)
else()
set(VCPKG_LIBRARY_LINKAGE static)
endif()

set(VCPKG_CMAKE_SYSTEM_NAME Android)

set(VCPKG_BUILD_TYPE release)
Expand Down
2 changes: 1 addition & 1 deletion triplets/x64-iphonesimulator-release.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)

if (${PORT} MATCHES "nakama-sdk")
set(VCPKG_LIBRARY_LINKAGE dynamic) ## nakama can only be built as a shared library
set(VCPKG_LIBRARY_LINKAGE dynamic)
else()
set(VCPKG_LIBRARY_LINKAGE static)
endif()
Expand Down
7 changes: 6 additions & 1 deletion triplets/x64-linux-release.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)

if (${PORT} MATCHES "nakama-sdk")
set(VCPKG_LIBRARY_LINKAGE dynamic)
else()
set(VCPKG_LIBRARY_LINKAGE static)
endif()

set(VCPKG_CMAKE_SYSTEM_NAME Linux)
set(VCPKG_BUILD_TYPE release)
6 changes: 5 additions & 1 deletion triplets/x64-osx-release.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ set(VCPKG_CRT_LINKAGE dynamic)

set(VCPKG_LIBRARY_LINKAGE static)

set(VCPKG_BUILD_TYPE release)
if (${PORT} MATCHES "nakama-sdk")
set(VCPKG_LIBRARY_LINKAGE dynamic)
else()
set(VCPKG_LIBRARY_LINKAGE static)
endif()

set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_OSX_ARCHITECTURES x86_64)
Expand Down
7 changes: 6 additions & 1 deletion triplets/x86-windows-release.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
set(VCPKG_TARGET_ARCHITECTURE x86)
set(VCPKG_CRT_LINKAGE dynamic)

set(VCPKG_LIBRARY_LINKAGE static)
if (${PORT} MATCHES "nakama-sdk")
set(VCPKG_LIBRARY_LINKAGE dynamic)
else()
set(VCPKG_LIBRARY_LINKAGE static)
endif()

set(VCPKG_BUILD_TYPE release)
set(CMAKE_GENERATOR Visual Studio 17 2022)

Expand Down
2 changes: 1 addition & 1 deletion vcpkg-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"kind": "git",
"repository": "https://github.com/heroiclabs/nakama-vcpkg-registry",
"baseline": "b51679d57d32502089c43f4b957995baf8355546",
"baseline": "8a2ffdb6efaa54399ad1124092f5318fa8cc8ad6",
"reference": "master",
"packages": ["nakama-sdk", "wslay"]
}
Expand Down
24 changes: 6 additions & 18 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
{
"name": "nakama-sdk-cocos2d-x",
"version": "2.6.0",
"version": "2.7.0",
"dependencies": [
{
"name": "nakama-sdk",
"version>=": "2.7.1",
"platform": "ios | osx | linux",
"features": ["libhttpclient-http", "wslay", "curl-io"]
},
{
"name": "nakama-sdk",
"version>=": "2.7.1",
"platform": "windows",
"features": ["libhttpclient-ws", "libhttpclient-http"]
},
{
"name": "nakama-sdk",
"version>=": "2.7.1",
"platform": "android",
"version>=": "2.8.0#6",
"features": ["curl-io", "curl-http", "wslay", "logs"]
}
],
"overrides": [
],
"default-features": [],
"builtin-baseline": "62d01b70df227850b728f5050418b917ad6d2b32"
"builtin-baseline": "62d01b70df227850b728f5050418b917ad6d2b32",
"overrides": [
{ "name": "curl", "version": "8.0.1" }
]
}

0 comments on commit cb18156

Please sign in to comment.