3 # Run this script to regenerate descriptor.pb.{h,cc} after the protocol
4 # compiler changes. Since these files are compiled into the protocol compiler
5 # itself, they cannot be generated automatically by a make rule. "make check"
6 # will fail if these files do not match what the protocol compiler would
9 # HINT: Flags passed to generate_descriptor_proto.sh will be passed directly
10 # to make when building protoc. This is particularly useful for passing
11 # -j4 to run 4 jobs simultaneously.
13 if test ! -e src/google/protobuf/stubs/common.h; then
15 Could not find source code. Make sure you are running this script from the
16 root of the distribution tree.
21 if test ! -e src/Makefile; then
23 Could not find src/Makefile. You must run ./configure (and perhaps
31 ./protoc --cpp_out=dllexport_decl=LIBPROTOBUF_EXPORT:. google/protobuf/descriptor.proto && \
32 ./protoc --cpp_out=dllexport_decl=LIBPROTOC_EXPORT:. google/protobuf/compiler/plugin.proto