Name Date Size #Lines LOC

..--

BUILD.gnH A D25-Apr-2025342 129

README.mdH A D25-Apr-2025831 3222

buildflags.gniH A D25-Apr-2025234 97

README.md

1# CfM GN Build Flags
2
3Note: GN Flags are Build time flags
4
5You can get a comprehensive list of all arguments supported by gn by running the
6command gn args --list out/some-directory (the directory passed to gn args is
7required as gn args will invokes gn gen to generate the build.ninja files).
8
9## is_cfm (BUILDFLAG(PLATFORM_CFM))
10
11Flag for building chromium for CfM devices.
12
13### Query Flag
14```bash
15$ gn args out_<cfm_overlay>/{Release||Debug} --list=is_cfm
16```
17
18### Enable Flag
19```bash
20$ gn args out_<cfm_overlay>/{Release||Debug}
21$ Editor will open add is_cfm=true save and exit
22```
23
24### Alt: EnrollmentRequisitionManager
25
26We can alternatively use the EnrollmentRequisitionManager to determine if
27chromium is running a CfM enabled Platform in source code
28
29```cpp
30policy::EnrollmentRequisitionManager::IsRemoraRequisition();
31```
32