protocolbuffers / protobuf

Protocol Buffers - Google's data interchange format
http://protobuf.dev
Other
65.37k stars 15.46k forks source link

Introduce CMake flags for each supported language #15174

Open ligurio opened 9 months ago

ligurio commented 9 months ago

What language does this apply to?

Describe the problem you are trying to solve.

I'm using protobuf as a serialization format in LibProtobufMutator (LPM). Grammar is described in Protobuf format, LPM generates random grammar and then fuzzing test serialize random grammar to a text input. Building LPM along with Protobuf requires a lot of time, each time protobuf lib builds files related to all supported languages (https://github.com/protocolbuffers/protobuf#protobuf-runtime-installation)

Describe the solution you'd like

I propose to introduce CMake flags that allows to put Protobuf building under control and disable parts of protobuf library that is not needed.

Describe alternatives you've considered

Actually, I don't know any other alternatives.

Additional context

None.

github-actions[bot] commented 3 months ago

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago.

ligurio commented 3 months ago

It is still relevant. By default, protobuf builds support for all languages, and it is a time-consuming task,

github-actions[bot] commented 1 day ago

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago. This issue will be closed and archived after 14 additional days without activity.