1 # 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.
5 # The location of the build configuration file.
6 buildconfig = "//build/config/BUILDCONFIG.gn"
8 # The secondary source root is a parallel directory tree where
9 # GN build files are placed when they can not be placed directly
10 # in the source tree, e.g. for third party source trees.
11 secondary_source = "//build/secondary/"
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".
18 #"//apps/*", # Medium-hard.
19 #"//ash/*", # Medium-hard.
20 #"//base/*", # Needs GN binary changes to work on Android.
26 #"//chrome/*", # Epic number of errors.
27 #"//chrome/installer/*", # A few errors, need to verify the size after fixing.
30 # TODO(brettw): Fix http://crbug.com/460828 and uncomment the following
35 #"//components/*", # Lots of errors.
36 "//components/app_modal/*",
37 "//components/autofill/*",
38 "//components/bookmarks/*",
39 "//components/google/*",
40 "//components/history/*",
42 # TODO(dpranke): Reenable once v8 exports v8_base as a public_dep
43 #"//components/html_viewer/*",
46 "//components/omnibox/*",
47 "//components/os_crypt/*",
48 "//components/pref_registry/*",
49 "//components/undo/*",
50 "//components/update_client/*",
51 "//components/url_formatter/*",
52 "//components/url_matcher/*",
53 "//components/user_manager/*",
54 "//components/user_prefs/*",
55 "//components/variations/*",
56 "//components/wallpaper/*",
57 "//components/web_cache/*",
58 "//components/webcrypto/*",
59 "//components/web_modal/*",
60 "//components/web_view/*",
61 "//components/webdata/*",
62 "//components/webdata_services/*",
64 #"//content/*", # A whole lot of errors.
70 #"//device/*", # Ran into http://crbug.com/500761 adding dbus dependency
72 #"//extensions/*", # Lots of errors.
77 #"//gpu/*", # Lots of errors.
86 #"//media/*", # Lots of errors.
90 #"//net/*", # Needs GN binary changes to work on Android.
92 #"//pdf/*", # Medium-hard.
93 #"//ppapi/*", # Lots of errors.
96 #"//remoting/*", # Medium-hard.
97 #"//rlz/*", # Needs checking on Windows.
98 #"//sandbox/*", # Medium-hard.
106 #"//third_party/*", # May not ever want this.
109 #"//ui/*", # Just a few problems.
114 # These are the list of GN files that run exec_script. This whitelist exists
115 # to force additional review for new uses of exec_script, which is strongly
116 # discouraged except for gypi_to_gn calls.
117 exec_script_whitelist = [
119 "//build/config/android/BUILD.gn",
120 "//build/config/android/config.gni",
121 "//build/config/android/internal_rules.gni",
122 "//build/config/android/rules.gni",
123 "//build/config/compiler/BUILD.gn",
124 "//build/config/gcc/gcc_version.gni",
125 "//build/config/ios/ios_sdk.gni",
126 "//build/config/linux/BUILD.gn",
127 "//build/config/linux/pkg_config.gni",
128 "//build/config/mac/mac_sdk.gni",
129 "//build/config/win/visual_studio_version.gni",
130 "//build/gn_helpers.py",
131 "//build/gypi_to_gn.py",
132 "//build/linux/BUILD.gn",
133 "//build/toolchain/gcc_toolchain.gni",
134 "//build/toolchain/mac/BUILD.gn",
135 "//build/toolchain/nacl/BUILD.gn",
136 "//build/toolchain/win/BUILD.gn",
137 "//build/util/version.gni",
138 "//chrome/android/BUILD.gn",
139 "//chrome/browser/BUILD.gn",
140 "//chrome/browser/chromeos/BUILD.gn",
141 "//chrome/browser/extensions/BUILD.gn",
142 "//chrome/browser/resources/chromeos/chromevox/BUILD.gn",
143 "//chrome/browser/media/router/BUILD.gn",
144 "//chrome/browser/ui/BUILD.gn",
145 "//chrome/chrome_tests.gni",
146 "//chrome/common/BUILD.gn",
147 "//chrome/common/extensions/api/schemas.gni",
148 "//chrome/renderer/BUILD.gn",
149 "//chrome/test/BUILD.gn",
150 "//chrome/utility/BUILD.gn",
151 "//chromeos/BUILD.gn",
153 # TODO(dgn): Layer violation but breaks the build otherwise, see
154 # https://crbug.com/474506
155 "//clank/java/BUILD.gn",
156 "//clank/native/BUILD.gn",
158 "//components/domain_reliability/BUILD.gn",
159 "//components/scheduler/scheduler.gni",
160 "//content/browser/browser.gni",
161 "//content/child/child.gni",
162 "//content/common/common.gni",
163 "//content/content.gni",
164 "//content/public/android/BUILD.gn",
165 "//content/renderer/renderer.gni",
166 "//content/test/BUILD.gn",
167 "//content/utility/utility.gni",
168 "//extensions/common/api/schemas.gni",
169 "//extensions/extensions.gni",
170 "//extensions/shell/app_shell.gni",
171 "//extensions/shell/common/api/schemas.gni",
172 "//google_apis/BUILD.gn",
173 "//gpu/gles2_conform_support/BUILD.gn",
176 "//ppapi/ppapi_sources.gni",
177 "//printing/BUILD.gn",
178 "//remoting/host/BUILD.gn",
179 "//remoting/remoting_srcs.gni",
180 "//remoting/remoting_version.gni",
182 "//third_party/android_platform/BUILD.gn",
183 "//third_party/angle/BUILD.gn",
184 "//third_party/angle/src/tests/BUILD.gn",
185 "//third_party/boringssl/BUILD.gn",
186 "//third_party/catapult/tracing/BUILD.gn",
187 "//third_party/cld_2/BUILD.gn",
188 "//third_party/cython/rules.gni",
189 "//third_party/google_input_tools/inputview.gni",
190 "//third_party/harfbuzz-ng/BUILD.gn",
191 "//third_party/libaddressinput/BUILD.gn",
192 "//third_party/opus/BUILD.gn",
193 "//third_party/WebKit/Source/bindings/bindings.gni",
194 "//third_party/WebKit/Source/bindings/scripts/scripts.gni",
195 "//third_party/WebKit/Source/config.gni",
196 "//third_party/WebKit/Source/core/core.gni",
197 "//third_party/WebKit/Source/devtools/BUILD.gn",
198 "//third_party/WebKit/Source/modules/modules.gni",
199 "//third_party/WebKit/Source/platform/BUILD.gn",
200 "//third_party/WebKit/Source/platform/platform.gni",
201 "//third_party/WebKit/Source/web/BUILD.gn",
202 "//third_party/WebKit/Source/wtf/BUILD.gn",
203 "//third_party/WebKit/public/BUILD.gn",
204 "//tools/gn/BUILD.gn",
205 "//tools/gn/build_settings.h",
206 "//tools/gn/command_help.cc",
207 "//tools/gn/docs/language.md",
208 "//tools/gn/format_test_data/053.gn",
209 "//tools/gn/format_test_data/053.golden",
210 "//tools/gn/format_test_data/055.gn",
211 "//tools/gn/format_test_data/055.golden",
212 "//tools/gn/function_exec_script.cc",
214 "//tools/gn/input_conversion.cc",
215 "//tools/gn/misc/emacs/gn.el",
216 "//tools/gn/misc/vim/syntax/gn.vim",
217 "//tools/gn/setup.cc",
218 "//ui/accessibility/BUILD.gn",
219 "//ui/views/BUILD.gn",