blob: b6a59c3e52c0e9605ea10cc2ab062f0304c73eb8 [file] [log] [blame]
brettw2bafab42014-11-27 18:36:171# This file is used by the GN meta build system to find the root of the source
2# tree and to set startup options. For documentation on the values set in this
3# file, run "gn help dotfile" at the command line.
[email protected]96ea63d2013-07-30 10:17:074
5# The location of the build configuration file.
6buildconfig = "//build/config/BUILDCONFIG.gn"
7
8# The secondary source root is a parallel directory tree where
scheibec4b3a42014-09-18 21:50:139# GN build files are placed when they can not be placed directly
10# in the source tree, e.g. for third party source trees.
[email protected]26688b86e2014-06-19 13:14:2611secondary_source = "//build/secondary/"
brettw2bafab42014-11-27 18:36:1712
13# These are the targets to check headers for by default. The files in targets
14# matching these patterns (see "gn help label_pattern" for format) will have
15# their includes checked for proper dependencies when you run either
16# "gn check" or "gn gen --check".
brettwe75311d2015-02-17 23:56:4617check_targets = [
brettwbc44c0a92015-02-20 22:30:3918 #"//apps/*", # Medium-hard.
mswafbb0c02016-02-11 01:54:1219 "//ash/*",
brettw29c2f892015-11-27 17:03:4920 "//base/*",
brettwbc44c0a92015-02-20 22:30:3921 "//blink/*",
22 "//breakpad/*",
23 "//build/*",
brettwe75311d2015-02-17 23:56:4624 "//cc/*",
brettwbc44c0a92015-02-20 22:30:3925
26 #"//chrome/*", # Epic number of errors.
tfarina8e584882016-01-09 00:50:1527 "//chrome/app/*",
brettw0b9c96b12015-10-15 23:06:0428 "//chrome/common/*",
brettwf986f9572015-10-07 17:18:1529 "//chrome/installer/*",
brettw0b9c96b12015-10-15 23:06:0430 "//chrome/third_party/mozilla_security_manager/*",
tfarina961ad5d2016-01-06 22:27:1131 "//chrome/tools/*",
tfarina02f77a42015-12-17 22:38:2332 "//chrome/utility/*",
brettwbc44c0a92015-02-20 22:30:3933 "//chromecast/*",
brettwa219e922015-12-07 22:23:3934 "//chrome_elf/*",
35 "//cloud_print/*",
brettwb5440a92015-12-03 00:47:1236 "//components/*",
tfarina3de81942015-06-12 13:54:4937
brettwbc44c0a92015-02-20 22:30:3938 #"//content/*", # A whole lot of errors.
brettwb78fc9e2016-03-25 21:02:5139 "//content/gpu/*",
brettwc15ed732016-03-21 23:14:2940 "//content/public/*",
jbromanfc4ac0dd72016-01-23 01:53:4441 "//content/renderer/*",
brettwb78fc9e2016-03-25 21:02:5142
43 #"//content/shell/*", # Needs Android fix, bug 597020.
44
45 #"//content/test/*", # A couple of errors left.
brettwb78fc9e2016-03-25 21:02:5146 "//content/test:content_gl_tests",
47 "//content/test:content_perftests",
48 "//content/test:content_site_isolation_browsertests",
49 "//content/test:content_test_mojo_bindings",
50 "//content/test:content_unittests",
51 "//content/test:test_support",
brettwbc44c0a92015-02-20 22:30:3952 "//courgette/*",
53 "//crypto/*",
54 "//data/*",
55 "//dbus/*",
brettwbda835b2015-12-04 22:12:3056 "//device/*",
brettwbc44c0a92015-02-20 22:30:3957
58 #"//extensions/*", # Lots of errors.
jbromanb5e31792015-12-09 17:13:0259 "//gin/*",
tfarina9ee681962015-03-02 03:20:1360 "//google_apis/*",
brettwbc44c0a92015-02-20 22:30:3961 "//google_update/*",
brettw09039c12016-03-18 03:22:4662 "//gpu/*",
tfarinaf89722432015-05-15 19:30:1963
brettwbc44c0a92015-02-20 22:30:3964 #"//ios/*",
brettwe75311d2015-02-17 23:56:4665 "//ipc/*",
brettwbc44c0a92015-02-20 22:30:3966
67 #"//jingle/*",
skyb0446352015-11-18 00:43:5668 "//mash/*",
sky88d7709e2015-08-12 19:19:4969
brettwbc44c0a92015-02-20 22:30:3970 #"//media/*", # Lots of errors.
sky343931432015-08-10 19:22:1971 "mojo/*",
skyd412f6e2015-07-22 17:22:1372
brettwbc44c0a92015-02-20 22:30:3973 #"//native_client/*",
brettw25ca8922016-03-18 22:59:5874 "//net/*",
brettwbc44c0a92015-02-20 22:30:3975
76 #"//pdf/*", # Medium-hard.
77 #"//ppapi/*", # Lots of errors.
jbroman86f78272015-12-31 00:00:5178 "//ppapi/examples/*",
brettwbc44c0a92015-02-20 22:30:3979 "//printing/*",
80
81 #"//remoting/*", # Medium-hard.
brettw09039c12016-03-18 03:22:4682 "//rlz/*",
83
brettwbc44c0a92015-02-20 22:30:3984 #"//sandbox/*", # Medium-hard.
85 "//sdch/*",
86 "//skia/*",
87 "//sql/*",
88 "//storage/*",
89 "//sync/*",
90 "//testing/*",
91
92 #"//third_party/*", # May not ever want this.
rouslan30b18292016-03-31 18:05:1093 "//third_party/hunspell/*",
pmonette502a83e2016-01-08 00:21:1694 "//third_party/kasko/*",
rouslan30b18292016-03-31 18:05:1095 "//third_party/libaddressinput/*",
96 "//third_party/libphonenumber/*",
jbroman626eecf2015-12-03 18:59:0097 "//third_party/WebKit/Source/*",
brettwbc44c0a92015-02-20 22:30:3998 "//tools/*",
99
brettwb7f2c302015-12-08 01:29:21100 #"//ui/*", # Work left on Chromeos w/ use_ozone. Some parts of UI that work:
101 "//ui/accessibility/*",
102 "//ui/android/*",
103 "//ui/app_list/*",
104 "//ui/aura/*",
105 "//ui/aura_extra/*",
106 "//ui/base/*",
107 "//ui/chromeos/*",
108 "//ui/compositor/*",
kylechar3e6b9772016-04-15 18:55:27109 "//ui/content_accelerators/*",
brettwb7f2c302015-12-08 01:29:21110 "//ui/display/*",
kylechar3e6b9772016-04-15 18:55:27111 "//ui/events/*",
brettwb7f2c302015-12-08 01:29:21112 "//ui/file_manager/*",
113 "//ui/gfx/*",
114 "//ui/gl/*",
115 "//ui/keyboard/*",
kylechar3e6b9772016-04-15 18:55:27116 "//ui/latency_info/*",
brettwb7f2c302015-12-08 01:29:21117 "//ui/login/*",
118 "//ui/message_center/*",
brettwb7f2c302015-12-08 01:29:21119 "//ui/mojo/*",
120 "//ui/native_theme/*",
kylechare2b20222016-04-14 20:58:33121 "//ui/ozone/*",
brettwb7f2c302015-12-08 01:29:21122 "//ui/platform_window/*",
123 "//ui/resources/*",
124 "//ui/shell_dialogs/*",
125 "//ui/snapshot/*",
126 "//ui/strings/*",
127 "//ui/surface/*",
128 "//ui/touch_selection/*",
129 "//ui/views/*",
130 "//ui/views_content_client/*",
131 "//ui/web_dialogs/*",
132 "//ui/webui/*",
133 "//ui/wm/*",
brettwbc44c0a92015-02-20 22:30:39134 "//url/*",
135 "//v8/*",
brettw0ead9772015-11-23 23:12:08136 "//win8/*",
brettwe75311d2015-02-17 23:56:46137]
brettwed99f7b2015-04-07 00:22:50138
139# These are the list of GN files that run exec_script. This whitelist exists
140# to force additional review for new uses of exec_script, which is strongly
brettwd385ecf2016-04-19 22:53:23141# discouraged.
142#
143# GYPI_TO_GN
144#
145# Most of these entries are for gypi_to_gn calls. We should not be adding new
146# calls to this script in the build (see //build/gypi_to_gn.py for detailed
147# advice). The only time you should be editing this list for gypi_to_gn
148# purposes is when moving an existing call to a different place.
149#
150# PLEASE READ
151#
152# You should almost never need to add new exec_script calls. exec_script is
153# slow, especially on Windows, and can cause confusing effects. Although
154# individually each call isn't slow or necessarily very confusing, at the scale
155# of our repo things get out of hand quickly. By strongly pushing back on all
156# additions, we keep the build fast and clean. If you think you need to add a
157# new call, please consider:
158#
159# - Do not use a script to check for the existance of a file or directory to
160# enable a different mode. Instead, use GN build args to enable or disable
161# functionality and set options. An example is checking for a file in the
162# src-internal repo to see if the corresponding src-internal feature should
163# be enabled. There are several things that can go wrong with this:
164#
165# - It's mysterious what causes some things to happen. Although in many cases
166# such behavior can be conveniently automatic, GN optimizes for explicit
167# and obvious behavior so people can more easily diagnose problems.
168#
169# - The user can't enable a mode for one build and not another. With GN build
170# args, the user can choose the exact configuration of multiple builds
171# using one checkout. But implicitly basing flags on the state of the
172# checkout, this functionality is broken.
173#
174# - It's easy to get stale files. If for example the user edits the gclient
175# to stop checking out src-internal (or any other optional thing), it's
176# easy to end up with stale files still mysteriously triggering build
177# conditions that are no longer appropriate (yes, this happens in real
178# life).
179#
180# - Do not use a script to iterate files in a directory (glob):
181#
182# - This has the same "stale file" problem as the above discussion. Various
183# operations can leave untracked files in the source tree which can cause
184# surprising effects.
185#
186# - It becomes impossible to use "git grep" to find where a certain file is
187# referenced. This operation is very common and people really do get
188# confused when things aren't listed.
189#
190# - It's easy to screw up. One common case is a build-time script that packs
191# up a directory. The author notices that the script isn't re-run when the
192# directory is updated, so adds a glob so all the files are listed as
193# inputs. This seems to work great... until a file is deleted. When a
194# file is deleted, all the inputs the glob lists will still be up-to-date
195# and no command-lines will have been changed. The action will not be
196# re-run and the build will be broken. It is possible to get this correct
197# using glob, and it's possible to mess it up without glob, but globs make
198# this situation much easier to create. if the build always lists the
199# files and passes them to a script, it will always be correct.
brettwed99f7b2015-04-07 00:22:50200exec_script_whitelist = [
michaelbaicbcc7e62015-11-12 04:29:53201 "//android_webview/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50202 "//ash/BUILD.gn",
agrieve92a9e0682016-02-16 16:54:38203 "//build/config/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50204 "//build/config/android/config.gni",
205 "//build/config/android/internal_rules.gni",
206 "//build/config/android/rules.gni",
207 "//build/config/compiler/BUILD.gn",
208 "//build/config/gcc/gcc_version.gni",
209 "//build/config/ios/ios_sdk.gni",
210 "//build/config/linux/BUILD.gn",
211 "//build/config/linux/pkg_config.gni",
agrieve95ba4442016-04-25 15:47:13212 "//build/config/linux/atk/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50213 "//build/config/mac/mac_sdk.gni",
brettw888b65f2015-10-02 18:00:23214 "//build/config/posix/BUILD.gn",
agrieve45c8e9fd2015-12-03 20:56:48215 "//build/config/sysroot.gni",
Nico Weber8091cf92015-09-28 09:44:35216 "//build/config/win/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50217 "//build/config/win/visual_studio_version.gni",
218 "//build/gn_helpers.py",
219 "//build/gypi_to_gn.py",
dprankead0c1f42015-08-28 21:48:04220 "//build/linux/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50221 "//build/toolchain/gcc_toolchain.gni",
222 "//build/toolchain/mac/BUILD.gn",
dprankefa6ffe2f2015-08-31 20:17:52223 "//build/toolchain/nacl/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50224 "//build/toolchain/win/BUILD.gn",
brettw983c05622015-07-22 04:26:49225 "//build/util/version.gni",
brettwed99f7b2015-04-07 00:22:50226 "//chrome/android/BUILD.gn",
227 "//chrome/browser/BUILD.gn",
228 "//chrome/browser/chromeos/BUILD.gn",
229 "//chrome/browser/extensions/BUILD.gn",
plundblad70028e5c2015-07-09 09:01:05230 "//chrome/browser/resources/chromeos/chromevox/BUILD.gn",
imchengb6b09239f2015-05-15 21:41:55231 "//chrome/browser/media/router/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50232 "//chrome/browser/ui/BUILD.gn",
233 "//chrome/chrome_tests.gni",
234 "//chrome/common/BUILD.gn",
235 "//chrome/common/extensions/api/schemas.gni",
236 "//chrome/renderer/BUILD.gn",
237 "//chrome/test/BUILD.gn",
238 "//chrome/utility/BUILD.gn",
239 "//chromeos/BUILD.gn",
dgn470951712015-04-07 10:37:47240
241 # TODO(dgn): Layer violation but breaks the build otherwise, see
242 # https://crbug.com/474506
243 "//clank/java/BUILD.gn",
Newton Allen68f14da2015-06-17 20:48:34244 "//clank/native/BUILD.gn",
dgn470951712015-04-07 10:37:47245
brettwed99f7b2015-04-07 00:22:50246 "//components/domain_reliability/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50247 "//content/browser/browser.gni",
248 "//content/child/child.gni",
249 "//content/common/common.gni",
brettwed99f7b2015-04-07 00:22:50250 "//content/public/android/BUILD.gn",
251 "//content/renderer/renderer.gni",
252 "//content/test/BUILD.gn",
rockot7b6128a2015-05-18 20:18:00253 "//content/utility/utility.gni",
brettwed99f7b2015-04-07 00:22:50254 "//extensions/common/api/schemas.gni",
255 "//extensions/extensions.gni",
256 "//extensions/shell/app_shell.gni",
257 "//extensions/shell/common/api/schemas.gni",
258 "//google_apis/BUILD.gn",
259 "//gpu/gles2_conform_support/BUILD.gn",
ullysses.a.eoffcfd81412015-10-29 17:04:53260 "//gpu/khronos_glcts_support/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50261 "//jingle/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50262 "//net/BUILD.gn",
263 "//ppapi/ppapi_sources.gni",
264 "//printing/BUILD.gn",
265 "//remoting/host/BUILD.gn",
266 "//remoting/remoting_srcs.gni",
267 "//remoting/remoting_version.gni",
268 "//skia/BUILD.gn",
pkotwicz9ae3420e2015-11-25 03:52:20269 "//sync/protocol/protocol_sources.gni",
brettwed99f7b2015-04-07 00:22:50270 "//third_party/android_platform/BUILD.gn",
271 "//third_party/angle/BUILD.gn",
cwallez4c57af32015-09-03 14:54:49272 "//third_party/angle/src/tests/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50273 "//third_party/boringssl/BUILD.gn",
sullivan0cf87672015-08-04 17:10:32274 "//third_party/catapult/tracing/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50275 "//third_party/cld_2/BUILD.gn",
276 "//third_party/cython/rules.gni",
277 "//third_party/google_input_tools/inputview.gni",
278 "//third_party/harfbuzz-ng/BUILD.gn",
279 "//third_party/libaddressinput/BUILD.gn",
280 "//third_party/opus/BUILD.gn",
hbos17a7b4a22015-12-07 10:49:45281 "//third_party/openh264/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50282 "//third_party/WebKit/Source/bindings/bindings.gni",
283 "//third_party/WebKit/Source/bindings/scripts/scripts.gni",
284 "//third_party/WebKit/Source/config.gni",
285 "//third_party/WebKit/Source/core/core.gni",
286 "//third_party/WebKit/Source/devtools/BUILD.gn",
287 "//third_party/WebKit/Source/modules/modules.gni",
288 "//third_party/WebKit/Source/platform/BUILD.gn",
289 "//third_party/WebKit/Source/platform/platform.gni",
290 "//third_party/WebKit/Source/web/BUILD.gn",
291 "//third_party/WebKit/Source/wtf/BUILD.gn",
mcasas4337d5d32015-09-14 22:43:02292 "//third_party/WebKit/public/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50293 "//tools/gn/BUILD.gn",
294 "//tools/gn/build_settings.h",
295 "//tools/gn/command_help.cc",
296 "//tools/gn/docs/language.md",
297 "//tools/gn/format_test_data/053.gn",
298 "//tools/gn/format_test_data/053.golden",
299 "//tools/gn/format_test_data/055.gn",
300 "//tools/gn/format_test_data/055.golden",
301 "//tools/gn/function_exec_script.cc",
302 "//tools/gn/gn.gyp",
303 "//tools/gn/input_conversion.cc",
304 "//tools/gn/misc/emacs/gn.el",
305 "//tools/gn/misc/vim/syntax/gn.vim",
306 "//tools/gn/setup.cc",
lionel.g.landwerlin991e92d72015-07-09 08:46:25307 "//ui/accessibility/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50308 "//ui/views/BUILD.gn",
309]