blob: 7cde8bb32940f7522e0dee79bcdeaa25ef7a1bd8 [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/*",
nyquist409b3362016-04-28 21:10:0721 "//blimp/*",
brettwbc44c0a92015-02-20 22:30:3922 "//blink/*",
23 "//breakpad/*",
24 "//build/*",
brettwe75311d2015-02-17 23:56:4625 "//cc/*",
brettwbc44c0a92015-02-20 22:30:3926
27 #"//chrome/*", # Epic number of errors.
tfarina8e584882016-01-09 00:50:1528 "//chrome/app/*",
brettw0b9c96b12015-10-15 23:06:0429 "//chrome/common/*",
brettwf986f9572015-10-07 17:18:1530 "//chrome/installer/*",
brettw0b9c96b12015-10-15 23:06:0431 "//chrome/third_party/mozilla_security_manager/*",
tfarina961ad5d2016-01-06 22:27:1132 "//chrome/tools/*",
tfarina02f77a42015-12-17 22:38:2333 "//chrome/utility/*",
brettwbc44c0a92015-02-20 22:30:3934 "//chromecast/*",
oshima3f959fa82016-05-02 18:42:5735 "//chromeos/*",
brettwa219e922015-12-07 22:23:3936 "//chrome_elf/*",
37 "//cloud_print/*",
brettwb5440a92015-12-03 00:47:1238 "//components/*",
tfarina3de81942015-06-12 13:54:4939
brettwbc44c0a92015-02-20 22:30:3940 #"//content/*", # A whole lot of errors.
jbroman84ba6842016-04-28 00:34:5041 "//content/browser/*",
jbromanfd2fb9b72016-05-02 18:19:1542 "//content/child/*",
brettwb78fc9e2016-03-25 21:02:5143 "//content/gpu/*",
brettwc15ed732016-03-21 23:14:2944 "//content/public/*",
jbromanfc4ac0dd72016-01-23 01:53:4445 "//content/renderer/*",
brettwb78fc9e2016-03-25 21:02:5146
47 #"//content/shell/*", # Needs Android fix, bug 597020.
48
49 #"//content/test/*", # A couple of errors left.
brettwb78fc9e2016-03-25 21:02:5150 "//content/test:content_perftests",
51 "//content/test:content_site_isolation_browsertests",
52 "//content/test:content_test_mojo_bindings",
53 "//content/test:content_unittests",
54 "//content/test:test_support",
brettwbc44c0a92015-02-20 22:30:3955 "//courgette/*",
56 "//crypto/*",
57 "//data/*",
58 "//dbus/*",
brettwbda835b2015-12-04 22:12:3059 "//device/*",
brettwbc44c0a92015-02-20 22:30:3960
61 #"//extensions/*", # Lots of errors.
jbromanb5e31792015-12-09 17:13:0262 "//gin/*",
tfarina9ee681962015-03-02 03:20:1363 "//google_apis/*",
brettwbc44c0a92015-02-20 22:30:3964 "//google_update/*",
brettw09039c12016-03-18 03:22:4665 "//gpu/*",
tfarinaf89722432015-05-15 19:30:1966
sdefresne5f39d8e62016-05-18 19:27:3767 "//ios/*",
68 "//ios_internal/*",
brettwe75311d2015-02-17 23:56:4669 "//ipc/*",
brettwbc44c0a92015-02-20 22:30:3970
71 #"//jingle/*",
skyb0446352015-11-18 00:43:5672 "//mash/*",
sky88d7709e2015-08-12 19:19:4973
brettwbc44c0a92015-02-20 22:30:3974 #"//media/*", # Lots of errors.
sky343931432015-08-10 19:22:1975 "mojo/*",
skyd412f6e2015-07-22 17:22:1376
brettwbc44c0a92015-02-20 22:30:3977 #"//native_client/*",
brettw25ca8922016-03-18 22:59:5878 "//net/*",
brettwbc44c0a92015-02-20 22:30:3979
80 #"//pdf/*", # Medium-hard.
81 #"//ppapi/*", # Lots of errors.
jbroman86f78272015-12-31 00:00:5182 "//ppapi/examples/*",
brettwbc44c0a92015-02-20 22:30:3983 "//printing/*",
84
85 #"//remoting/*", # Medium-hard.
brettw09039c12016-03-18 03:22:4686 "//rlz/*",
87
brettwbc44c0a92015-02-20 22:30:3988 #"//sandbox/*", # Medium-hard.
89 "//sdch/*",
sky1e8f9f862016-05-19 22:34:4390 "//services/*",
brettwbc44c0a92015-02-20 22:30:3991 "//skia/*",
92 "//sql/*",
93 "//storage/*",
94 "//sync/*",
95 "//testing/*",
96
97 #"//third_party/*", # May not ever want this.
rouslan30b18292016-03-31 18:05:1098 "//third_party/hunspell/*",
pmonette502a83e2016-01-08 00:21:1699 "//third_party/kasko/*",
rouslan30b18292016-03-31 18:05:10100 "//third_party/libaddressinput/*",
101 "//third_party/libphonenumber/*",
jbroman626eecf2015-12-03 18:59:00102 "//third_party/WebKit/Source/*",
brettwbc44c0a92015-02-20 22:30:39103 "//tools/*",
104
brettwb7f2c302015-12-08 01:29:21105 #"//ui/*", # Work left on Chromeos w/ use_ozone. Some parts of UI that work:
106 "//ui/accessibility/*",
107 "//ui/android/*",
108 "//ui/app_list/*",
109 "//ui/aura/*",
110 "//ui/aura_extra/*",
111 "//ui/base/*",
112 "//ui/chromeos/*",
113 "//ui/compositor/*",
kylechar3e6b9772016-04-15 18:55:27114 "//ui/content_accelerators/*",
brettwb7f2c302015-12-08 01:29:21115 "//ui/display/*",
kylechar3e6b9772016-04-15 18:55:27116 "//ui/events/*",
brettwb7f2c302015-12-08 01:29:21117 "//ui/file_manager/*",
118 "//ui/gfx/*",
119 "//ui/gl/*",
120 "//ui/keyboard/*",
kylechar3e6b9772016-04-15 18:55:27121 "//ui/latency_info/*",
brettwb7f2c302015-12-08 01:29:21122 "//ui/login/*",
123 "//ui/message_center/*",
brettwb7f2c302015-12-08 01:29:21124 "//ui/mojo/*",
125 "//ui/native_theme/*",
kylechare2b20222016-04-14 20:58:33126 "//ui/ozone/*",
brettwb7f2c302015-12-08 01:29:21127 "//ui/platform_window/*",
128 "//ui/resources/*",
129 "//ui/shell_dialogs/*",
130 "//ui/snapshot/*",
131 "//ui/strings/*",
132 "//ui/surface/*",
133 "//ui/touch_selection/*",
134 "//ui/views/*",
135 "//ui/views_content_client/*",
136 "//ui/web_dialogs/*",
137 "//ui/webui/*",
138 "//ui/wm/*",
brettwbc44c0a92015-02-20 22:30:39139 "//url/*",
140 "//v8/*",
brettw0ead9772015-11-23 23:12:08141 "//win8/*",
brettwe75311d2015-02-17 23:56:46142]
brettwed99f7b2015-04-07 00:22:50143
144# These are the list of GN files that run exec_script. This whitelist exists
145# to force additional review for new uses of exec_script, which is strongly
brettwd385ecf2016-04-19 22:53:23146# discouraged.
147#
148# GYPI_TO_GN
149#
150# Most of these entries are for gypi_to_gn calls. We should not be adding new
151# calls to this script in the build (see //build/gypi_to_gn.py for detailed
152# advice). The only time you should be editing this list for gypi_to_gn
153# purposes is when moving an existing call to a different place.
154#
155# PLEASE READ
156#
157# You should almost never need to add new exec_script calls. exec_script is
158# slow, especially on Windows, and can cause confusing effects. Although
159# individually each call isn't slow or necessarily very confusing, at the scale
160# of our repo things get out of hand quickly. By strongly pushing back on all
161# additions, we keep the build fast and clean. If you think you need to add a
162# new call, please consider:
163#
164# - Do not use a script to check for the existance of a file or directory to
165# enable a different mode. Instead, use GN build args to enable or disable
166# functionality and set options. An example is checking for a file in the
167# src-internal repo to see if the corresponding src-internal feature should
168# be enabled. There are several things that can go wrong with this:
169#
170# - It's mysterious what causes some things to happen. Although in many cases
171# such behavior can be conveniently automatic, GN optimizes for explicit
172# and obvious behavior so people can more easily diagnose problems.
173#
174# - The user can't enable a mode for one build and not another. With GN build
175# args, the user can choose the exact configuration of multiple builds
176# using one checkout. But implicitly basing flags on the state of the
177# checkout, this functionality is broken.
178#
179# - It's easy to get stale files. If for example the user edits the gclient
180# to stop checking out src-internal (or any other optional thing), it's
181# easy to end up with stale files still mysteriously triggering build
182# conditions that are no longer appropriate (yes, this happens in real
183# life).
184#
185# - Do not use a script to iterate files in a directory (glob):
186#
187# - This has the same "stale file" problem as the above discussion. Various
188# operations can leave untracked files in the source tree which can cause
189# surprising effects.
190#
191# - It becomes impossible to use "git grep" to find where a certain file is
192# referenced. This operation is very common and people really do get
193# confused when things aren't listed.
194#
195# - It's easy to screw up. One common case is a build-time script that packs
196# up a directory. The author notices that the script isn't re-run when the
197# directory is updated, so adds a glob so all the files are listed as
198# inputs. This seems to work great... until a file is deleted. When a
199# file is deleted, all the inputs the glob lists will still be up-to-date
200# and no command-lines will have been changed. The action will not be
201# re-run and the build will be broken. It is possible to get this correct
202# using glob, and it's possible to mess it up without glob, but globs make
203# this situation much easier to create. if the build always lists the
204# files and passes them to a script, it will always be correct.
brettwed99f7b2015-04-07 00:22:50205exec_script_whitelist = [
michaelbaicbcc7e62015-11-12 04:29:53206 "//android_webview/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50207 "//ash/BUILD.gn",
agrieve92a9e0682016-02-16 16:54:38208 "//build/config/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50209 "//build/config/android/config.gni",
210 "//build/config/android/internal_rules.gni",
211 "//build/config/android/rules.gni",
212 "//build/config/compiler/BUILD.gn",
213 "//build/config/gcc/gcc_version.gni",
214 "//build/config/ios/ios_sdk.gni",
215 "//build/config/linux/BUILD.gn",
216 "//build/config/linux/pkg_config.gni",
agrieve95ba4442016-04-25 15:47:13217 "//build/config/linux/atk/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50218 "//build/config/mac/mac_sdk.gni",
brettw888b65f2015-10-02 18:00:23219 "//build/config/posix/BUILD.gn",
agrieve45c8e9fd2015-12-03 20:56:48220 "//build/config/sysroot.gni",
Nico Weber8091cf92015-09-28 09:44:35221 "//build/config/win/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50222 "//build/config/win/visual_studio_version.gni",
223 "//build/gn_helpers.py",
224 "//build/gypi_to_gn.py",
225 "//build/toolchain/gcc_toolchain.gni",
226 "//build/toolchain/mac/BUILD.gn",
dprankefa6ffe2f2015-08-31 20:17:52227 "//build/toolchain/nacl/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50228 "//build/toolchain/win/BUILD.gn",
rseseke8b24a9c12016-05-03 14:29:50229 "//build/util/branding.gni",
brettw983c05622015-07-22 04:26:49230 "//build/util/version.gni",
brettwed99f7b2015-04-07 00:22:50231 "//chrome/android/BUILD.gn",
232 "//chrome/browser/BUILD.gn",
233 "//chrome/browser/chromeos/BUILD.gn",
234 "//chrome/browser/extensions/BUILD.gn",
plundblad70028e5c2015-07-09 09:01:05235 "//chrome/browser/resources/chromeos/chromevox/BUILD.gn",
imchengb6b09239f2015-05-15 21:41:55236 "//chrome/browser/media/router/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50237 "//chrome/browser/ui/BUILD.gn",
238 "//chrome/chrome_tests.gni",
239 "//chrome/common/BUILD.gn",
240 "//chrome/common/extensions/api/schemas.gni",
241 "//chrome/renderer/BUILD.gn",
242 "//chrome/test/BUILD.gn",
243 "//chrome/utility/BUILD.gn",
244 "//chromeos/BUILD.gn",
dgn470951712015-04-07 10:37:47245
246 # TODO(dgn): Layer violation but breaks the build otherwise, see
247 # https://crbug.com/474506
248 "//clank/java/BUILD.gn",
Newton Allen68f14da2015-06-17 20:48:34249 "//clank/native/BUILD.gn",
dgn470951712015-04-07 10:37:47250
brettwed99f7b2015-04-07 00:22:50251 "//components/domain_reliability/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50252 "//content/browser/browser.gni",
253 "//content/child/child.gni",
254 "//content/common/common.gni",
brettwed99f7b2015-04-07 00:22:50255 "//content/public/android/BUILD.gn",
256 "//content/renderer/renderer.gni",
257 "//content/test/BUILD.gn",
rockot7b6128a2015-05-18 20:18:00258 "//content/utility/utility.gni",
brettwed99f7b2015-04-07 00:22:50259 "//extensions/common/api/schemas.gni",
260 "//extensions/extensions.gni",
261 "//extensions/shell/app_shell.gni",
262 "//extensions/shell/common/api/schemas.gni",
263 "//google_apis/BUILD.gn",
264 "//gpu/gles2_conform_support/BUILD.gn",
ullysses.a.eoffcfd81412015-10-29 17:04:53265 "//gpu/khronos_glcts_support/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50266 "//jingle/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50267 "//net/BUILD.gn",
268 "//ppapi/ppapi_sources.gni",
269 "//printing/BUILD.gn",
270 "//remoting/host/BUILD.gn",
271 "//remoting/remoting_srcs.gni",
272 "//remoting/remoting_version.gni",
273 "//skia/BUILD.gn",
pkotwicz9ae3420e2015-11-25 03:52:20274 "//sync/protocol/protocol_sources.gni",
brettwed99f7b2015-04-07 00:22:50275 "//third_party/android_platform/BUILD.gn",
276 "//third_party/angle/BUILD.gn",
cwallez4c57af32015-09-03 14:54:49277 "//third_party/angle/src/tests/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50278 "//third_party/boringssl/BUILD.gn",
sullivan0cf87672015-08-04 17:10:32279 "//third_party/catapult/tracing/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50280 "//third_party/cld_2/BUILD.gn",
281 "//third_party/cython/rules.gni",
282 "//third_party/google_input_tools/inputview.gni",
283 "//third_party/harfbuzz-ng/BUILD.gn",
284 "//third_party/libaddressinput/BUILD.gn",
285 "//third_party/opus/BUILD.gn",
hbos17a7b4a22015-12-07 10:49:45286 "//third_party/openh264/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50287 "//third_party/WebKit/Source/bindings/bindings.gni",
288 "//third_party/WebKit/Source/bindings/scripts/scripts.gni",
289 "//third_party/WebKit/Source/config.gni",
290 "//third_party/WebKit/Source/core/core.gni",
291 "//third_party/WebKit/Source/devtools/BUILD.gn",
292 "//third_party/WebKit/Source/modules/modules.gni",
293 "//third_party/WebKit/Source/platform/BUILD.gn",
294 "//third_party/WebKit/Source/platform/platform.gni",
295 "//third_party/WebKit/Source/web/BUILD.gn",
296 "//third_party/WebKit/Source/wtf/BUILD.gn",
mcasas4337d5d32015-09-14 22:43:02297 "//third_party/WebKit/public/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50298 "//tools/gn/BUILD.gn",
299 "//tools/gn/build_settings.h",
300 "//tools/gn/command_help.cc",
301 "//tools/gn/docs/language.md",
302 "//tools/gn/format_test_data/053.gn",
303 "//tools/gn/format_test_data/053.golden",
304 "//tools/gn/format_test_data/055.gn",
305 "//tools/gn/format_test_data/055.golden",
306 "//tools/gn/function_exec_script.cc",
307 "//tools/gn/gn.gyp",
308 "//tools/gn/input_conversion.cc",
309 "//tools/gn/misc/emacs/gn.el",
310 "//tools/gn/misc/vim/syntax/gn.vim",
311 "//tools/gn/setup.cc",
lionel.g.landwerlin991e92d72015-07-09 08:46:25312 "//ui/accessibility/BUILD.gn",
brettwed99f7b2015-04-07 00:22:50313 "//ui/views/BUILD.gn",
314]