In general, we do not recommend distributing generated code. Doing so 
requires that all users of the code use the same protobuf runtime which can 
cause unexpected errors if the runtimes don't match. Additionally, these 
files will not be updated if the `.proto` file is updated which could cause 
inconsistencies between usages of protobuf.

If you still want to do it, the best way would be to write your own rule or 
manually copy the generated files from running `protoc --cpp_out`.

On Wednesday, June 8, 2022 at 6:48:40 AM UTC-7 [email protected] 
wrote:

> I want to make a static library containing .cc and .h files that are 
> generated from protoc compiler to link with it from other project, I'm 
> using C++
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/eb8bd76a-533f-470c-b075-714db2ca2fbcn%40googlegroups.com.

Reply via email to