make: protobuf -- Order .c files generation
This patch introduce dependencies on .c files generation parsing import keywords in .proto files. In particular, the core.proto file refers to core-x86.proto which means we need to generate .[c|h] files from core-x86.proto earlier than handlig of core.proto. A positive side effect of this patch is that the compilation is independent now of order the proto files are declated in the make file. Instead of currently present manual order PROTO_FILES += core-x86.proto PROTO_FILES += core-arm.proto PROTO_FILES += core.proto one can write it in any arrangement, say PROTO_FILES += core.proto PROTO_FILES += core-arm.proto PROTO_FILES += core-x86.proto and it still be resolved correctly. BUT beware of circular import directives, we can't handle them now. Signed-off-by:Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
Showing
Please
register
or
sign in
to comment