1.. _module-pw_third_party_nanopb: 2 3====== 4Nanopb 5====== 6 7The ``$dir_pw_third_party/nanopb/`` module contains Nanopb, a tiny protobuf 8library. It is used by :ref:`module-pw_protobuf_compiler`. 9 10---------------- 11GN Build Support 12---------------- 13This module provides support to compile Nanopb with GN. 14 15Follow the documentation on :ref:`module-pw_protobuf_compiler` for general 16help on how to use this. 17 18Enabling ``PB_NO_ERRMSG=1`` 19--------------------------- 20 21In your toolchain configuration, you can use the following: 22 23.. code-block:: 24 25 pw_third_party_nanopb_CONFIG = "$dir_pw_third_party/nanopb:disable_error_messages" 26 27 28This will add ``-DPB_NO_ERRMSG=1`` to the build, which disables error messages 29as strings and may save some code space at the expense of ease of debugging. 30