0
Files
src/tools/mb
Etienne Dechamps 9760d7df0b Deduce enable_base_tracing from is_cronet_build
This will make it simpler for Cronet to flip enable_base_tracing, and is
one step towards the general direction of simplifying Cronet's gn args
(i.e. ideally, we should simply set is_cronet_build and everything else
should be derived from that).

Bug: b:346770535, 40287068
Change-Id: Ia969f5abcd2404d349cb73ef574ccd5caf112533
q-Include-Trybots: luci.chromium.try:android-cronet-x64-dbg-15-tests,android-cronet-x86-dbg-marshmallow-tests
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6375211
Commit-Queue: Etienne Dechamps <edechamps@google.com>
Reviewed-by: Stefano Duo <stefanoduo@google.com>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1435479}
2025-03-20 09:23:30 -07:00
..

MB - The Meta-Build wrapper

MB is a simple wrapper around the GN build tool.

It was originally written as part of the GYP->GN migration, in order to provide a uniform interface to either GYP or GN, such that users and bots can call one script and not need to worry about whether a given bot was meant to use GN or GYP.

It eventually grew additional functionality and is now still used even though everything is GN-only.

It supports two main functions:

  1. "gen" - the main gn gen invocation that generates the Ninja files needed for the build.

  2. "analyze" - the step that takes a list of modified files and a list of desired targets and reports which targets will need to be rebuilt.

We also use MB as a forcing function to collect all of the different build configurations that we actually support for Chromium builds into one place, in //tools/mb/mb_config.pyl.

For more information, see: