1;
2; You can setup `custom_nanopb_protos` `nanopb_options` vars to generate code from proto files
3;
4; Generator will use next folders:
5;
6;   `$BUILD_DIR/nanopb/generated-src` - `*.pb.h` and `*.pb.c` files
7;   `$BUILD_DIR/nanopb/md5` - MD5 files to track changes in source .proto/.options
8;
9; Compiled `.pb.o` files will be located under `$BUILD_DIR/nanopb/generated-build`
10;
11; Example:
12
13[env:pio_with_options]
14platform = native
15lib_deps = Nanopb
16
17src_filter =
18    +<pio_with_options.c>
19
20; All path are relative to the `$PROJECT_DIR`
21custom_nanopb_protos =
22    +<proto/pio_with_options.proto>
23custom_nanopb_options =
24    --error-on-unmatched
25
26[env:pio_without_options]
27platform = native
28lib_deps = Nanopb
29
30src_filter =
31    +<pio_without_options.c>
32
33; All path are relative to the `$PROJECT_DIR`
34custom_nanopb_protos =
35    +<proto/pio_without_options.proto>
36
37
38[env:pio_esp32_idf]
39platform = espressif32
40board = firebeetle32
41framework = espidf
42lib_deps = Nanopb
43
44; Warning: the 'src_filter' option cannot be used with ESP-IDF. Select source files to build in the project CMakeLists.txt file.
45; So, we specified source files in src/CMakeLists.txt
46
47custom_nanopb_protos =
48    +<proto/pio_without_options.proto>
49