platformio.ini 855 B

1234567891011121314151617181920212223242526272829303132333435
  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. [env:pio_with_options]
  13. platform = native
  14. lib_deps = Nanopb
  15. src_filter =
  16. +<pio_with_options.c>
  17. ; All path are relative to the `$PROJECT_DIR`
  18. custom_nanopb_protos =
  19. +<proto/pio_with_options.proto>
  20. custom_nanopb_options =
  21. --error-on-unmatched
  22. [env:pio_without_options]
  23. platform = native
  24. lib_deps = Nanopb
  25. src_filter =
  26. +<pio_without_options.c>
  27. ; All path are relative to the `$PROJECT_DIR`
  28. custom_nanopb_protos =
  29. +<proto/pio_without_options.proto>