123456789101112131415161718192021 |
- ### @usage: EXPORT_YMAPS_PROTO() # maps-specific
- ###
- ### Maps-specific .proto handling: IMPORT_YMAPS_PROTO() + maps protobuf namespace.
- macro EXPORT_YMAPS_PROTO() {
- PROTO_NAMESPACE(GLOBAL maps/doc/proto)
- }
- macro _YMAPS_GENERATE_SPROTO_HEADER(File) {
- .CMD=${cwd;rootdir;input:File} ${tool:"maps/libs/sproto/sprotoc"} -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE -I=$ARCADIA_BUILD_ROOT -I=$PROTOBUF_PATH --sproto_out=$ARCADIA_BUILD_ROOT/$PROTO_NAMESPACE ${input;rootrel:File} ${output;hide;norel;nopath;noext:File.sproto.h} ${kv;hide:"p PB"} ${kv;hide:"pc yellow"}
- .PEERDIR=maps/libs/sproto
- }
- ### @usage: YMAPS_SPROTO(ProtoFiles...) # maps-specific
- ###
- ### Maps-specific .proto handling: generate .sproto.h files using maps/libs/sproto/sprotoc.
- macro YMAPS_SPROTO(FILES...) {
- SET(PROTO_HEADER_EXTS .pb.h .sproto.h)
- foreach (FILE : $FILES) {
- [.proto]=$_YMAPS_GENERATE_SPROTO_HEADER($FILE)
- }
- }
|