blob: 825bf64c69354c4e685d5350036947e2b68f7a3c [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001This directory is here to hold .gni files that contain sets of GN build
2arguments for given configurations.
3
4(Currently this directory is empty because we removed the only thing here, but
5this has come up several times so I'm confident we'll need this again. If this
6directory is still empty by 2017, feel free to delete it. --Brett)
7
8Some projects or bots may have build configurations with specific combinations
9of flags. Rather than making a new global flag for your specific project and
10adding it all over the build to each arg it should affect, you can add a .gni
11file here with the variables.
12
13For example, for project foo you may put in build/args/foo.gni:
14
15 target_os = "android"
16 use_pulseaudio = false
17 use_ozone = true
18 system_libdir = "foo"
19
20Users wanting to build this configuration would run:
21
22 $ gn args out/mybuild
23
24And add the following line to their args for that build directory:
25
26 import("//build/args/foo.gni")
27 # You can set any other args here like normal.
28 is_component_build = false
29
30This way everybody can agree on a set of flags for a project, and their builds
31stay in sync as the flags in foo.gni are modified.