Protocol Buffers - Google's data interchange format (grpc依赖) https://developers.google.com/protocol-buffers/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
496 B

#!/bin/sh
# This script wraps gcc -MM, which unhelpfully strips the directory
# off of the input filename. In other words, if you run:
#
# $ gcc -MM src/upb_parse.c
#
# ...the emitted dependency information looks like:
#
# upb_parse.o: src/upb_parse.h [...]
#
# Since upb_parse.o is actually in src, the dependency information is
# not used. To remedy this, we use the -MT flag (see gcc docs).
rm -f deps
for file in $@; do
gcc -MM $file -MT ${file%.*}.o -Idescriptor -Isrc -I. >> deps
done