fx bazel2gn

Syncs BUILD.gn and BUILD.bazel for targets that are dual-building in both.

usage: fx bazel2gn [-d|--directory <path/to/dir>]... [-h|--help] [--no-build]

  -h|--help       Print out this message.
  -d|--directory  Directory to sync, repeatable.
  --no-build      Skip building required dependencies.

Updates BUILD.gn files from the BUILD.bazel files in their directories. Without
-d, syncs every directory whose BUILD.gn contains the bazel2gn sentinel.

bazel2gn source code