fx bazel2gn

針對在兩者中雙重建構的目標,同步處理 BUILD.gn 和 BUILD.bazel。

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 原始碼