Adapted from Chromium.
Steps to upgrade to a new version of GRPC, all relative to this directory:
curl -sfSL \ https://chromium.googlesource.com/chromium/src/+/main/third_party/grpc/template/BUILD.chromium.gn.template?format=TEXT | \ base64 --decode | sed -E "s/([\"'])src/\1./g" > template/BUILD.fuchsia.gn.template
patch -d $FUCHSIA_DIR -p1 --merge < template/fuchsia.patch
git diff -R template/BUILD.fuchsia.gn.template > template/fuchsia.patch
git checkout template/BUILD.fuchsia.gn.template
$FUCHSIA_DIR/integration/fuchsia/third_party/flower
to reference a new GRPC revision.sudo apt install python3-mako`
BUILD.gn
:git -C $FUCHSIA_DIR/third_party/grpc submodule update --init cp template/BUILD.fuchsia.gn.template $FUCHSIA_DIR/third_party/grpc/templates (cd $FUCHSIA_DIR/third_party/grpc && tools/buildgen/generate_projects.sh) rm $FUCHSIA_DIR/third_party/grpc/templates/BUILD.fuchsia.gn.template mv $FUCHSIA_DIR/third_party/grpc/BUILD.fuchsia.gn BUILD.gn fx gn format --in-place BUILD.gn git -C $FUCHSIA_DIR/third_party/grpc submodule deinit --all