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