Skip to content
Closed
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
21 changes: 21 additions & 0 deletions ports/tofupilot/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO tofupilot/cpp
REF v${VERSION}
SHA512 733ed3489162ca339586a5d2ba069d974e5bbe44f59c6ef135266827386d66d0cf6b98bcca2274752c1b490f95ca4647474236d9a7bbe34a5b8c33572389fd23
HEAD_REF main
)

set(VCPKG_BUILD_TYPE release) # header-only port

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME tofupilot CONFIG_PATH lib/cmake/tofupilot)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
25 changes: 25 additions & 0 deletions ports/tofupilot/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "tofupilot",
"version": "2.0.0",
"description": "Official C++ SDK for TofuPilot test & measurement platform",
"homepage": "https://github.com/tofupilot/cpp",
"license": "MIT",
"supports": "!uwp",
"dependencies": [
{
"name": "cpp-httplib",
"features": [
"openssl"
]
},
"nlohmann-json",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -10120,6 +10120,10 @@
"baseline": "2024-09-10",
"port-version": 0
},
"tofupilot": {
"baseline": "2.0.0",
"port-version": 0
},
"toml11": {
"baseline": "4.4.0",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/t-/tofupilot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "52e9ce2541908fe0fffab30f2aa9d726f476356b",
"version": "2.0.0",
"port-version": 0
}
]
}