-
Notifications
You must be signed in to change notification settings - Fork 16k
Closed
Description
Currently if you have protobuf files in a hierarchical tree and then compile them with something like:
protoc -I proto_subdir --cpp_out outdir proto_subdir/dummy_service.proto
protoc -I proto_subdir --cpp_out outdir proto_subdir/messages/dummy_messages.proto
this results in files
outdir/dummy_service.pb.*
outdir/messages/dummy_messages.pb.*
And inside dummy_service.pb.cc there is this:
#include "messages/dummy_messages2.pb.h"
Besides looking like Java, this forces a directory layout on generated sources which makes integration difficult.
It would be nice to add a flag to the protoc compiler, say --flat-layout which would do the following:
- output all files to
cpp_outsubdir without any extra directory segments - change
#includestatements to not have extra directory segments
Metadata
Metadata
Assignees
Labels
No labels