[tinyproto] update to 1.1.1 (#48377)

This commit is contained in:
toge
2025-11-20 02:43:22 +09:00
committed by GitHub
parent 3bbc2809d3
commit bfc6984dcb
5 changed files with 49 additions and 23 deletions

View File

@@ -0,0 +1,19 @@
diff --git a/src/proto/hdlc/low_level/hdlc.h b/src/proto/hdlc/low_level/hdlc.h
index d8e85d7..5e3f574 100644
--- a/src/proto/hdlc/low_level/hdlc.h
+++ b/src/proto/hdlc/low_level/hdlc.h
@@ -218,8 +218,13 @@ extern "C"
* @note TINY_ERR_BUSY and TINY_ERR_INVALID_DATA refer to putting new frame to TX
* hdlc queue.
*/
+#if defined(__GNUC__) || defined(__clang__)
int hdlc_ll_put(hdlc_ll_handle_t handle, const void *data, int len) __attribute__((deprecated));
-
+#elif defined(_MSC_VER)
+ __declspec(deprecated) int hdlc_ll_put(hdlc_ll_handle_t handle, const void *data, int len);
+#else
+ int hdlc_ll_put(hdlc_ll_handle_t handle, const void *data, int len);
+#endif
/**
* Puts next frame for sending.
*

View File

@@ -1,21 +1,23 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO lexus2k/tinyproto
REF 77df8bbde4fa075031014eeef6061f2892c7b084
SHA512 c8b1a19d45fe3527e7e16bd1641842e639e70ad3f33f804b84a3a95719ac328305a4360c9d7f6b6c5a659b01a38a50f75298467dc8c16b4d118a8ee4948ce906
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS "-DCMAKE_CXX_STANDARD=11"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/tinyproto")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO lexus2k/tinyproto
REF v${VERSION}
SHA512 32b21822d5516a46ae931b0a4455a212d9b6b7c5a04f6c20b16fa5ce751707cf93a4478ef62262e0478acb076e1ac627ba62e591c07175b63906d9881df64704
HEAD_REF master
PATCHES
fix-deprecated.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS "-DCMAKE_CXX_STANDARD=11"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/tinyproto")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@@ -1,6 +1,6 @@
{
"name": "tinyproto",
"version": "1.1.0",
"version": "1.1.1",
"description": "Tiny Software Protocol for communication over UART, SPI, etc",
"homepage": "https://github.com/lexus2k/tinyproto",
"license": "GPL-3.0-or-later",

View File

@@ -9789,7 +9789,7 @@
"port-version": 0
},
"tinyproto": {
"baseline": "1.1.0",
"baseline": "1.1.1",
"port-version": 0
},
"tinyspline": {

View File

@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "261e4cf8758d450e72a54e1917a3aff8b7d3e384",
"version": "1.1.1",
"port-version": 0
},
{
"git-tree": "9224f6f9ecbe4dd6ef25c2f90567cf4c9586bb00",
"version": "1.1.0",