fune/toolkit/components/protobuf/regenerate_cpp_files.sh
Tetsuharu Ohzeki 2eebd6e256 Bug 1732328 - Remove the vestiges of LayerScope. r=gfx-reviewers,jrmuizel
`Layer::GetDisplayListLog()` also still contains the metion to
LayerScope to dump display list.

But this change does not remove it because it's a part of debugging display list.
If we remove it, I think we should open a new bug for it.

Differential Revision: https://phabricator.services.mozilla.com/D126512
2021-09-25 16:22:25 +00:00

29 lines
845 B
Bash
Executable file

#!/usr/bin/env bash
set -e
if which protoc >/dev/null ; then
echo "Using $(which protoc) to regenerate .pb.cc and .pb.h files."
else
echo "protoc not found in your path. Cannot regenerate the .pb.cc and .pb.h files."
exit 1
fi
regenerate() {
DIR="$1"
PROTO="$2"
echo
echo "${DIR}${PROTO}:"
pushd "$DIR" >/dev/null
protoc --cpp_out=. "$PROTO"
popd >/dev/null
}
cd $(dirname $0)
cd ../../.. # Top level.
regenerate devtools/shared/heapsnapshot/ CoreDump.proto
regenerate toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/ csd.proto
regenerate toolkit/components/url-classifier/chromium/ safebrowsing.proto
command cp third_party/rust/viaduct/src/fetch_msg_types.proto toolkit/components/viaduct/fetch_msg_types.proto
regenerate toolkit/components/viaduct/ fetch_msg_types.proto