Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-08-08Remove pkg_resources import (#887)dev_remove_pkg_resourcesPetteri Aimonen
These were needed by old versions of pyinstaller.
2023-07-12Allow substitutions in custom_nanopb_protosJoseph Duchesne
Allows building protos found in libraries by using ${PIOENV} substitutions like so: `custom_nanopb_protos = +<.pio/libdeps/${PIOENV}/some_library/proto/*.proto>`
2023-07-06Bump grpcio from 1.51.3 to 1.53.0 in /extradependabot[bot]
Bumps [grpcio](https://github.com/grpc/grpc) from 1.51.3 to 1.53.0. - [Release notes](https://github.com/grpc/grpc/releases) - [Changelog](https://github.com/grpc/grpc/blob/master/doc/grpc_release_schedule.md) - [Commits](https://github.com/grpc/grpc/compare/v1.51.3...v1.53.0) --- updated-dependencies: - dependency-name: grpcio dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2023-06-26Test cases: fix broken version check for libprotoc 23.1.Petteri Aimonen
Protoc version number seems to have dropped the last number, match only first two in the regexp.
2023-06-12Add migration documentation for int_size option for enum fieldsjheaff1
2023-06-12Add unit test for int_size option for enumsjheaff1
2023-06-12Add ability to specify size of generated enumsjheaff1
2023-05-17CMakeLists: Minimum version 3.14Petteri Aimonen
Needed for NAME_WLE (see commit 9cdc4cf2104ba1592). Thanks for Ilya Maykov for noticing.
2023-05-15Add nanopb_PYTHON_INSTDIR_OVERRIDE to CMakeLists.txtNick St.Pierre
2023-05-11add "call" under Windows upon generator callphilippe44
2023-05-09GitHub workflow: update bazel mac image versionPetteri Aimonen
2023-04-25ref |> Modified The generated code uses utf-8 encoding by default.Jerry.Chen
2023-04-11Update Python2 CI workflow to Ubuntu 20.04Petteri Aimonen
GitHub no longer offers the Ubuntu 18.04 runner.
2023-02-24bazel: update grpcio-tools to fix mac build on armIsaac Torres
Fixes the bazel build when using a standalone python interpreter on arm macs. The previous version of grpcio-tools is not available as a prebuilt wheel for darwin-aarch64, leading to a source build. Unfortunately the standalone python interpreters often have issues building packages that contain native dependencies. See https://github.com/bazelbuild/rules_python/issues/646 for more context.
2023-01-23Fix platformio build failure in examplePetteri Aimonen
2023-01-03Ensure generator files are updated when cachedHans Binderup
When bumping Nanopb, while having the previous version cached, the generator files are not correctly copied during build. CMake copy_directory does not seem to copy the content if the directory does already exist. By specifying that we want to copy the content of the directory we can avoid this issue. Review: Add comment
2022-12-27Bump setuptools from 60.2.0 to 65.5.1 in /extradependabot[bot]
Bumps [setuptools](https://github.com/pypa/setuptools) from 60.2.0 to 65.5.1. - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/main/CHANGES.rst) - [Commits](https://github.com/pypa/setuptools/compare/v60.2.0...v65.5.1) --- updated-dependencies: - dependency-name: setuptools dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2022-12-23Use static_assert keyword on MSVC in C89 mode (#843)Petteri Aimonen
2022-12-16CMakeLists: Add missing __init__.py to generator install (#841)Petteri Aimonen
2022-12-11Setting version to 0.4.8-devPetteri Aimonen
2022-12-11Publishing nanopb-0.4.7nanopb-0.4.70.4.7Petteri Aimonen
2022-12-11Update changelog and authorsPetteri Aimonen
2022-12-09Add option NANOPB_PB2_TEMP_DIR to store nanopb_pb2.py in a temporary ↵dev_dynamic_nanopb_pb2_2Petteri Aimonen
directory (#601) When environment variable NANOPB_PB2_TEMP_DIR is defined, the generator will store the autogenerated nanopb_pb2.py in a temporary directory. This can be the value of the environment variable, if it is valid directory, or otherwise system-wide temp directory is used. This avoids polluting the source code folder with autogenerated file, and may avoid some version incompatibility issues. By default the old behavior of storing nanopb_pb2.py under proto folder is preserved.
2022-12-08Improve PlatformIO generatorValerii Koval
- This commit mainly fixes #834 by placing path arguments of the Nanopb generator in the array separately to avoid possible issues if paths contain spaces - Other minor improvements
2022-12-07Fix subprocess.run call on platformio_generator.pyPavel Sokolov
2022-12-07platformio: Expand PYTHONEXE prior to constructing the action (#834)Petteri Aimonen
2022-12-05Fix test failure on AVR (C++ vs. the app_main() test run wrapper)Petteri Aimonen
2022-11-30Add regression test for enum_to_string with C++ (#838)Petteri Aimonen
2022-11-30Move C externSean
Move extern up to accommodate enum functions
2022-11-26Adding a simple Conan+CMake example (#837)Christopher Hughes
2022-11-25Allow using = instead of : with generator option -sPetteri Aimonen
Relevant only for very old protoc versions where --nanopb_opt= cannot be used, and --nanopb_out= parsing fails on colon. I'm adding this just to be able to keep the regression test suite running with protoc 3.0.0 also.
2022-11-25Revert "Test case runner: fix passing of spaces in NANOPBFLAGS"Petteri Aimonen
This reverts commit b945553bb3bf5098c2cb6260f113c53158937442. --nanopb_opt isn't compatible with protoc 3.0, which is still being supported and covered by CI tests.
2022-11-25Fix generator error when using M_STRIP_PACKAGE without package name (#795)Petteri Aimonen
2022-11-25Test case runner: fix passing of spaces in NANOPBFLAGSPetteri Aimonen
2022-11-25CMakeLists: use protoc wrapper script by default (#769)Petteri Aimonen
CMake build needs protoc for generating the nanopb_pb2.py file for the generator. Previously it would look only in system path. With this change, the wrapper script in generator directory is preferred.
2022-11-25Add --protoc-opt to nanopb_generator.py (#628)Petteri Aimonen
Allows passing flags to protoc when using it through nanopb_generator.py.
2022-11-25Always include pb_release() as function, instead of macro. (#802)Petteri Aimonen
This fixes a problem with cmock, and additionally ensures that pb_release() doesn't accidentally end up as no-op if user code is compiled with wrong flags.
2022-11-25Allow specifying include format without special characters (#810)Petteri Aimonen
On various platforms, passing a format string containing # and "" is difficult for the --library-include-format generator argument. This commit allows specifying the most common styles with the names "bracket" and "quote". Also unified the option parsing between protoc plugin and direct invocation modes.
2022-11-25Fix handling of spaces in arguments passed through protoc (#810)Petteri Aimonen
Nanopb has traditionally supported spaces as separator in command line arguments. Protoc uses comma as the separator. There is automatic detection that tries to handle this, but previously it got tripped on any space character in the arguments. Changed the detection so that only space followed by dash is taken as a space-separated argument. Preferred usage through protoc is: protoc --nanopb_out=outdir [--nanopb_opt=option] ['--nanopb_opt=option with spaces'] file.proto
2022-11-25Automatically add -lm to test builds on platforms that have libm (#792)Petteri Aimonen
Most tests don't need it, but on FreeBSD isnan() comes from libm.
2022-11-25Adjust testing workflow triggersPetteri Aimonen
Run packaging system tests when files related to them change, or always once a week. This avoids unnecessarily long testing for each pull request. Scheduled runs make sure that any breakage due to external dependency updates gets caught.
2022-11-25Fix space characters when using platformio build rules (#808, #809)Petteri Aimonen
Instead of going through protoc, let nanopb_generator.py handle it. Instead of constructing a string, create a list of arguments to avoid need for escaping.
2022-11-24Create canonical name mapping also for overridden package name (#820)Petteri Aimonen
2022-11-24Add __repr__() to generator types to ease debuggingPetteri Aimonen
2022-11-24Add reverse mapping when mangle_names is used (#783)Petteri Aimonen
Should help for many cases where other files do not know what name mangling option an included file might be using.
2022-11-24Safeguard substraction in pb_read() (#697)Petteri Aimonen
Previously a custom stream callback could modify bytes_left, causing the substraction to wrap.
2022-11-23Sanitize /* */ inside .proto file commentPetteri Aimonen
Otherwise ends up as a nested C comment, which does not compile.
2022-11-23Simplify and fix some corner cases of message sorting in previous commit.Petteri Aimonen
2022-11-23Generator: keep order of messages when possiblePetteri Aimonen
Previous toposort2() implementation unnecessarily reordered message definitions even when there were no dependencies between them.
2022-11-23Fix compilation error with fixed size array and FT_POINTER (#630)Petteri Aimonen
Wrong order of conditions in generator caused the fixed size constraint to be ignored in data type declaration. Fixed and added unit test coverage.