Hi,
Yeah, might be a reasonable feature in future.
You can concatenate files in CMake script though.
--
Petteri
> > <
https://groups.google.com/d/msgid/nanopb/a4936dfe-d209-42ab...@googlegroups.com?utm_medium=email&utm_source=footer>
> >
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups "nanopb" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
nanopb+un...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/nanopb/f2313d93-acb3-4e3b-ae4c-11fe652cd85cn%40googlegroups.com.
> Ah, that's a real bummer. It would be neat if the original options file
> was read first, then whatever you specified via '-f' was read after for
> overrides.
>
> /Marco
>
> On Friday, August 30, 2024 at 2:26:07 PM UTC+2 Petteri Aimonen wrote:
>
> Hi,
> Easiest way would be if you can have a separate .options file for
> the one project.
> Then you can specify NANOPB_OPTIONS="-f special_options.options"
> Currently the generator doesn't support reading from more than one
> options file.
> Later lines in the same options file override earlier lines.
> --
> Petteri
> On Fri, Aug 30, 2024 at 05:07:01AM -0700, [1]
denra...@gmail.com
> wrote:
> > Hi
> >
> > We have some products that share a library of Protobuf definition
> files.
> > One message, say OTA, has a field called "path" which is size
> limited in an
> > option file along with the proto file:
> >
> > OTA.path max_size:50
> >
> > We have a need for overriding this value in one of the projects.
> Is it
> > possible to do that via cmake? I assume we should use
> NANOPB_OPTIONS, but I
> > can't quite figure out how it works.
> >
> > Thanks /Marco
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "nanopb" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send an email to [2]
nanopb+un...@googlegroups.com.
> > To view this discussion on the web visit
> [3]
https://groups.google.com/d/msgid/nanopb/a4936dfe-d209-42ab-8bda-
> 58c0be3e6f25n%
40googlegroups.com.
> > Hi
> >
> > We have some products that share a library of Protobuf definition
> > files.
> >
> > One message, say OTA, has a field called "path" which is size
> limited
> > in an option file along with the proto file:
> >
> > OTA.path max_size:50
> >
> > We have a need for overriding this value in one of the projects.
> Is it
> > possible to do that via cmake? I assume we should use
> NANOPB_OPTIONS,
> > but I can't quite figure out how it works.
> >
> > Thanks /Marco
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "nanopb" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to [1][4]
nanopb+un...@googlegroups.com.
> > To view this discussion on the web visit
> >
> [2][5]
https://groups.google.com/d/msgid/nanopb/a4936dfe-d209-42ab-8b
> da-58c
> > 0be3e6f25n%[6]
40googlegroups.com.
> >
> > References
> >
> > 1. mailto:[7]
nanopb+un...@googlegroups.com
> > 2.
> [8]
https://groups.google.com/d/msgid/nanopb/a4936dfe-d209-42ab...@go
>
oglegroups.com?utm_medium=email&utm_source=footer
>
> --
> You received this message because you are subscribed to the Google
> Groups "nanopb" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [9]
nanopb+un...@googlegroups.com.
> To view this discussion on the web visit
> [10]
https://groups.google.com/d/msgid/nanopb/f2313d93-acb3-4e3b-ae4c-11
> fe652cd85cn%
40googlegroups.com.
>
> References
>
> 1. file:///tmp/neomutt.html
> 2. file:///tmp/neomutt.html
> 3.
https://groups.google.com/d/msgid/nanopb/a4936dfe-d209-42ab...@googlegroups.com
> 4. file:///tmp/neomutt.html
> 5.
https://groups.google.com/d/msgid/nanopb/a4936dfe-d209-42ab-8bda-58c
> 6.
http://40googlegroups.com/
> 7. file:///tmp/neomutt.html
> 8.
https://groups.google.com/d/msgid/nanopb/a4936dfe-d209-42ab...@googlegroups.com?utm_medium=email&utm_source=footer
> 9. mailto:
nanopb+un...@googlegroups.com
> 10.
https://groups.google.com/d/msgid/nanopb/f2313d93-acb3-4e3b...@googlegroups.com?utm_medium=email&utm_source=footer