Skip to content

Commit

Permalink
[nanopb] update to 0.4.9 (#41469)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayuehua authored Oct 11, 2024
1 parent db093c9 commit 68304c9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
13 changes: 7 additions & 6 deletions ports/nanopb/fix-cmakelist.patch
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 273a841..02fb40c 100644
index 301501d..c7e8e42 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,11 +16,6 @@ option(nanopb_MSVC_STATIC_RUNTIME "Link static runtime libraries" ON)
@@ -16,12 +16,6 @@ option(nanopb_MSVC_STATIC_RUNTIME "Link static runtime libraries" ON)

set(nanopb_PYTHON_INSTDIR_OVERRIDE "" CACHE PATH "Override the default python installation directory with the given path")

-find_program(nanopb_PROTOC_PATH protoc HINTS generator-bin generator)
-find_program(nanopb_PROTOC_PATH protoc PATHS generator-bin generator NO_DEFAULT_PATH)
-find_program(nanopb_PROTOC_PATH protoc)
-if(NOT EXISTS ${nanopb_PROTOC_PATH})
- message(FATAL_ERROR "protoc compiler not found")
-endif()
-
if(NOT DEFINED CMAKE_DEBUG_POSTFIX)
set(CMAKE_DEBUG_POSTFIX "d")
endif()
@@ -43,7 +38,6 @@ endif()
@@ -44,7 +38,6 @@ endif()

# Determine Python module installation path
if (NOT nanopb_PYTHON_INSTDIR_OVERRIDE)
- find_package(Python REQUIRED COMPONENTS Interpreter)
file(TO_CMAKE_PATH "${Python_SITELIB}" PYTHON_INSTDIR)
else()
set(PYTHON_INSTDIR ${nanopb_PYTHON_INSTDIR_OVERRIDE})
@@ -53,6 +47,10 @@ message(STATUS "Python install dir: ${PYTHON_INSTDIR}")
@@ -54,6 +47,10 @@ message(STATUS "Python install dir: ${PYTHON_INSTDIR}")
# Package nanopb generator as Python module 'nanopb'
if(nanopb_BUILD_GENERATOR)
# Copy Python code files related to the generator
Expand All @@ -33,7 +34,7 @@ index 273a841..02fb40c 100644
add_custom_target(nanopb_generator ALL
COMMAND ${CMAKE_COMMAND} -E make_directory
${PROJECT_BINARY_DIR}/nanopb/generator/proto
@@ -82,24 +80,14 @@ if(nanopb_BUILD_GENERATOR)
@@ -83,24 +80,14 @@ if(nanopb_BUILD_GENERATOR)

# Install Python module files
install(
Expand Down
2 changes: 1 addition & 1 deletion ports/nanopb/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO nanopb/nanopb
REF ${VERSION}
SHA512 635577498dfbfb46fd64b8ec83b2a4a9b03b57c665f3c9f67d35c272810c0330b0e9011d7c0e43623e9da74d6ee3a4c1f012878e2bff7e1a7e57fb7c0857ad42
SHA512 13b395e5bd5a356119a0139a5b3cb13aa821f9077a311714b88b71bd12b9b633f4158b09b5628eda39c90e52d3b78bf51314f16bc0e15621e43b09392049a284
HEAD_REF master
PATCHES
fix-cmakelist.patch
Expand Down
3 changes: 1 addition & 2 deletions ports/nanopb/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "nanopb",
"version-semver": "0.4.8",
"port-version": 1,
"version-semver": "0.4.9",
"description": "A small code-size Protocol Buffers implementation in ANSI C.",
"homepage": "https://jpa.kapsi.fi/nanopb/",
"license": "Zlib",
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6193,8 +6193,8 @@
"port-version": 2
},
"nanopb": {
"baseline": "0.4.8",
"port-version": 1
"baseline": "0.4.9",
"port-version": 0
},
"nanoprintf": {
"baseline": "0.3.4",
Expand Down
5 changes: 5 additions & 0 deletions versions/n-/nanopb.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "1f5737c00d41a894367cab2acb6ef934043fcd8e",
"version-semver": "0.4.9",
"port-version": 0
},
{
"git-tree": "08dcb204cd192ab2022b8d2f1f84cf480db0fb44",
"version-semver": "0.4.8",
Expand Down

0 comments on commit 68304c9

Please sign in to comment.