summaryrefslogtreecommitdiffstats
path: root/build/args
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2016-01-21 11:38:11 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-21 19:39:46 +0000
commit858b96471ab1eb4e5c6365d1b0fa1fc6f5d4c7f7 (patch)
tree8adf3e7becb238de511ecb4b8c9074f9f492c28e /build/args
parentf10b7732d68db797aa14195149882b2f928f3b54 (diff)
downloadchromium_src-858b96471ab1eb4e5c6365d1b0fa1fc6f5d4c7f7.zip
chromium_src-858b96471ab1eb4e5c6365d1b0fa1fc6f5d4c7f7.tar.gz
chromium_src-858b96471ab1eb4e5c6365d1b0fa1fc6f5d4c7f7.tar.bz2
Add readme for build/args directory.
Review URL: https://codereview.chromium.org/1613283002 Cr-Commit-Position: refs/heads/master@{#370751}
Diffstat (limited to 'build/args')
-rw-r--r--build/args/README.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/build/args/README.txt b/build/args/README.txt
new file mode 100644
index 0000000..825bf64
--- /dev/null
+++ b/build/args/README.txt
@@ -0,0 +1,31 @@
+This directory is here to hold .gni files that contain sets of GN build
+arguments for given configurations.
+
+(Currently this directory is empty because we removed the only thing here, but
+this has come up several times so I'm confident we'll need this again. If this
+directory is still empty by 2017, feel free to delete it. --Brett)
+
+Some projects or bots may have build configurations with specific combinations
+of flags. Rather than making a new global flag for your specific project and
+adding it all over the build to each arg it should affect, you can add a .gni
+file here with the variables.
+
+For example, for project foo you may put in build/args/foo.gni:
+
+ target_os = "android"
+ use_pulseaudio = false
+ use_ozone = true
+ system_libdir = "foo"
+
+Users wanting to build this configuration would run:
+
+ $ gn args out/mybuild
+
+And add the following line to their args for that build directory:
+
+ import("//build/args/foo.gni")
+ # You can set any other args here like normal.
+ is_component_build = false
+
+This way everybody can agree on a set of flags for a project, and their builds
+stay in sync as the flags in foo.gni are modified.