Skip to content

Commit bfc6984

Browse files
authored
[tinyproto] update to 1.1.1 (microsoft#48377)
1 parent 3bbc280 commit bfc6984

File tree

5 files changed

+49
-23
lines changed

5 files changed

+49
-23
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
diff --git a/src/proto/hdlc/low_level/hdlc.h b/src/proto/hdlc/low_level/hdlc.h
2+
index d8e85d7..5e3f574 100644
3+
--- a/src/proto/hdlc/low_level/hdlc.h
4+
+++ b/src/proto/hdlc/low_level/hdlc.h
5+
@@ -218,8 +218,13 @@ extern "C"
6+
* @note TINY_ERR_BUSY and TINY_ERR_INVALID_DATA refer to putting new frame to TX
7+
* hdlc queue.
8+
*/
9+
+#if defined(__GNUC__) || defined(__clang__)
10+
int hdlc_ll_put(hdlc_ll_handle_t handle, const void *data, int len) __attribute__((deprecated));
11+
-
12+
+#elif defined(_MSC_VER)
13+
+ __declspec(deprecated) int hdlc_ll_put(hdlc_ll_handle_t handle, const void *data, int len);
14+
+#else
15+
+ int hdlc_ll_put(hdlc_ll_handle_t handle, const void *data, int len);
16+
+#endif
17+
/**
18+
* Puts next frame for sending.
19+
*

ports/tinyproto/portfile.cmake

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
1-
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2-
3-
vcpkg_from_github(
4-
OUT_SOURCE_PATH SOURCE_PATH
5-
REPO lexus2k/tinyproto
6-
REF 77df8bbde4fa075031014eeef6061f2892c7b084
7-
SHA512 c8b1a19d45fe3527e7e16bd1641842e639e70ad3f33f804b84a3a95719ac328305a4360c9d7f6b6c5a659b01a38a50f75298467dc8c16b4d118a8ee4948ce906
8-
HEAD_REF master
9-
)
10-
11-
vcpkg_cmake_configure(
12-
SOURCE_PATH "${SOURCE_PATH}"
13-
OPTIONS "-DCMAKE_CXX_STANDARD=11"
14-
)
15-
vcpkg_cmake_install()
16-
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/tinyproto")
17-
18-
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
19-
20-
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
21-
1+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2+
3+
vcpkg_from_github(
4+
OUT_SOURCE_PATH SOURCE_PATH
5+
REPO lexus2k/tinyproto
6+
REF v${VERSION}
7+
SHA512 32b21822d5516a46ae931b0a4455a212d9b6b7c5a04f6c20b16fa5ce751707cf93a4478ef62262e0478acb076e1ac627ba62e591c07175b63906d9881df64704
8+
HEAD_REF master
9+
PATCHES
10+
fix-deprecated.patch
11+
)
12+
13+
vcpkg_cmake_configure(
14+
SOURCE_PATH "${SOURCE_PATH}"
15+
OPTIONS "-DCMAKE_CXX_STANDARD=11"
16+
)
17+
vcpkg_cmake_install()
18+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/tinyproto")
19+
20+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
21+
22+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
23+

ports/tinyproto/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tinyproto",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Tiny Software Protocol for communication over UART, SPI, etc",
55
"homepage": "https://github.com/lexus2k/tinyproto",
66
"license": "GPL-3.0-or-later",

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9789,7 +9789,7 @@
97899789
"port-version": 0
97909790
},
97919791
"tinyproto": {
9792-
"baseline": "1.1.0",
9792+
"baseline": "1.1.1",
97939793
"port-version": 0
97949794
},
97959795
"tinyspline": {

versions/t-/tinyproto.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "261e4cf8758d450e72a54e1917a3aff8b7d3e384",
5+
"version": "1.1.1",
6+
"port-version": 0
7+
},
38
{
49
"git-tree": "9224f6f9ecbe4dd6ef25c2f90567cf4c9586bb00",
510
"version": "1.1.0",

0 commit comments

Comments
 (0)