The Chromium Mac build has scripts in //chrome/tools/build/mac, //chrome/tools/mac_helpers, and //chrome/app. There's not a good reason for them to be spread out and they could be centralized to a single directory.
In addition, the Mac-specific packaging logic in //chrome/BUILD.gn is close to 600 lines. Splitting this out to a separate GN file would make the overall BUILD.gn file easier to read, and it would allow for more finer-grained reviews.
My current thought is to create //chrome/build/mac and move all the scripts into there. Then add a new BUILD.gn file there as well, into which I can split the Mac packaging rules from //chrome/BUILD.gn.
Brett/Dirk: Does that sound reasonable? Would other platforms benefit from splitting out their rules, or is Mac the only platform with complicated packaging needs?
Comment 1 by rsesek@chromium.org
, Mar 31 2017