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/*",
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/os_crypt/*",
40 "//components/pref_registry/*",
41 "//components/undo/*",
42 "//components/update_client/*",
43 "//components/url_fixer/*",
44 "//components/url_matcher/*",
45 "//components/user_manager/*",
46 "//components/user_prefs/*",
47 "//components/variations/*",
48 "//components/wallpaper/*",
49 "//components/webcrypto/*",
51 #"//content/*", # A whole lot of errors.
57 #"//device/*", # Ran into http://crbug.com/500761 adding dbus dependency
59 #"//extensions/*", # Lots of errors.
64 #"//gpu/*", # Lots of errors.
71 #"//media/*", # Lots of errors.
74 #"//net/*", # Needs GN binary changes to work on Android.
76 #"//pdf/*", # Medium-hard.
77 #"//ppapi/*", # Lots of errors.
80 #"//remoting/*", # Medium-hard.
81 #"//rlz/*", # Needs checking on Windows.
82 #"//sandbox/*", # Medium-hard.
90 #"//third_party/*", # May not ever want this.
93 #"//ui/*", # Just a few problems.
98 # These are the list of GN files that run exec_script. This whitelist exists
99 # to force additional review for new uses of exec_script, which is strongly
100 # discouraged except for gypi_to_gn calls.
101 exec_script_whitelist = [
103 "//build/config/android/BUILD.gn",
104 "//build/config/android/config.gni",
105 "//build/config/android/internal_rules.gni",
106 "//build/config/android/rules.gni",
107 "//build/config/compiler/BUILD.gn",
108 "//build/config/gcc/gcc_version.gni",
109 "//build/config/ios/ios_sdk.gni",
110 "//build/config/linux/BUILD.gn",
111 "//build/config/linux/pkg_config.gni",
112 "//build/config/mac/mac_sdk.gni",
113 "//build/config/win/visual_studio_version.gni",
114 "//build/gn_helpers.py",
115 "//build/gypi_to_gn.py",
116 "//build/toolchain/gcc_toolchain.gni",
117 "//build/toolchain/mac/BUILD.gn",
118 "//build/toolchain/win/BUILD.gn",
119 "//chrome/android/BUILD.gn",
120 "//chrome/browser/BUILD.gn",
121 "//chrome/browser/chromeos/BUILD.gn",
122 "//chrome/browser/extensions/BUILD.gn",
123 "//chrome/browser/media/router/BUILD.gn",
124 "//chrome/browser/ui/BUILD.gn",
125 "//chrome/chrome_tests.gni",
126 "//chrome/common/BUILD.gn",
127 "//chrome/common/extensions/api/schemas.gni",
128 "//chrome/renderer/BUILD.gn",
129 "//chrome/test/BUILD.gn",
130 "//chrome/utility/BUILD.gn",
131 "//chromeos/BUILD.gn",
133 # TODO(dgn): Layer violation but breaks the build otherwise, see
134 # https://crbug.com/474506
135 "//clank/java/BUILD.gn",
136 "//clank/native/BUILD.gn",
138 "//components/domain_reliability/BUILD.gn",
139 "//components/scheduler/scheduler.gni",
140 "//content/browser/browser.gni",
141 "//content/child/child.gni",
142 "//content/common/common.gni",
143 "//content/content.gni",
144 "//content/public/android/BUILD.gn",
145 "//content/renderer/renderer.gni",
146 "//content/test/BUILD.gn",
147 "//content/utility/utility.gni",
148 "//extensions/common/api/schemas.gni",
149 "//extensions/extensions.gni",
150 "//extensions/shell/app_shell.gni",
151 "//extensions/shell/common/api/schemas.gni",
152 "//google_apis/BUILD.gn",
153 "//gpu/gles2_conform_support/BUILD.gn",
155 "//native_client/build/toolchain/gcc_toolchain.gni",
156 "//native_client/build/toolchain/nacl/BUILD.gn",
157 "//native_client/build/config/android/BUILD.gn",
158 "//native_client/build/config/gcc/gcc_version.gni",
159 "//native_client/build/config/ios/ios_sdk.gni",
160 "//native_client/build/config/linux/BUILD.gn",
161 "//native_client/build/config/linux/pkg_config.gni",
162 "//native_client/build/config/mac/mac_sdk.gni",
163 "//native_client/build/config/win/visual_studio_version.gni",
164 "//native_client/build/toolchain/gcc_toolchain.gni",
165 "//native_client/build/toolchain/mac/BUILD.gn",
166 "//native_client/build/toolchain/nacl/BUILD.gn",
167 "//native_client/build/toolchain/win/BUILD.gn",
169 "//ppapi/ppapi_sources.gni",
170 "//printing/BUILD.gn",
171 "//remoting/host/BUILD.gn",
172 "//remoting/remoting_srcs.gni",
173 "//remoting/remoting_version.gni",
175 "//third_party/android_platform/BUILD.gn",
176 "//third_party/angle/BUILD.gn",
177 "//third_party/boringssl/BUILD.gn",
178 "//third_party/cld_2/BUILD.gn",
179 "//third_party/cython/rules.gni",
180 "//third_party/google_input_tools/inputview.gni",
181 "//third_party/harfbuzz-ng/BUILD.gn",
182 "//third_party/libaddressinput/BUILD.gn",
183 "//third_party/opus/BUILD.gn",
184 "//third_party/trace-viewer/tracing/BUILD.gn",
185 "//third_party/WebKit/Source/bindings/bindings.gni",
186 "//third_party/WebKit/Source/bindings/scripts/scripts.gni",
187 "//third_party/WebKit/Source/config.gni",
188 "//third_party/WebKit/Source/core/core.gni",
189 "//third_party/WebKit/Source/devtools/BUILD.gn",
190 "//third_party/WebKit/Source/modules/modules.gni",
191 "//third_party/WebKit/Source/platform/BUILD.gn",
192 "//third_party/WebKit/Source/platform/platform.gni",
193 "//third_party/WebKit/Source/web/BUILD.gn",
194 "//third_party/WebKit/Source/wtf/BUILD.gn",
195 "//tools/gn/BUILD.gn",
196 "//tools/gn/build_settings.h",
197 "//tools/gn/command_help.cc",
198 "//tools/gn/docs/language.md",
199 "//tools/gn/format_test_data/053.gn",
200 "//tools/gn/format_test_data/053.golden",
201 "//tools/gn/format_test_data/055.gn",
202 "//tools/gn/format_test_data/055.golden",
203 "//tools/gn/function_exec_script.cc",
205 "//tools/gn/input_conversion.cc",
206 "//tools/gn/misc/emacs/gn.el",
207 "//tools/gn/misc/vim/syntax/gn.vim",
208 "//tools/gn/setup.cc",
209 "//ui/views/BUILD.gn",