blob: be1fb7219f8973a156df2f25ecb26d6e25329299 [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
dpranke1cfa5312016-11-22 03:07:475import("//build/dotfile_settings.gni")
6
[email protected]96ea63d2013-07-30 10:17:077# The location of the build configuration file.
8buildconfig = "//build/config/BUILDCONFIG.gn"
9
10# The secondary source root is a parallel directory tree where
scheibec4b3a42014-09-18 21:50:1311# GN build files are placed when they can not be placed directly
12# in the source tree, e.g. for third party source trees.
[email protected]26688b86e2014-06-19 13:14:2613secondary_source = "//build/secondary/"
brettw2bafab42014-11-27 18:36:1714
brettw04a0e482017-01-25 21:29:5915# These arguments override the default values for items in a declare_args
16# block. "gn args" in turn can override these.
17#
18# In general the value for a build arg in the declare_args block should be the
19# default. In some cases, a DEPS-ed in project will want different defaults for
20# being built as part of Chrome vs. being built standalone. In this case, the
21# Chrome defaults should go here. There should be no overrides here for
22# values declared in the main Chrome repository.
23default_args = {
24 v8_extra_library_files = [
25 # Dependencies used by the extra libraries. Putting them here causes them
26 # to be executed first during snapshot creation.
27 "//third_party/WebKit/Source/core/streams/CommonStrings.js",
28
29 # Extra libraries.
30 "//third_party/WebKit/Source/core/streams/ByteLengthQueuingStrategy.js",
31 "//third_party/WebKit/Source/core/streams/CountQueuingStrategy.js",
32 "//third_party/WebKit/Source/core/streams/ReadableStream.js",
33 ]
ricea9ba4a6432017-01-26 17:11:5734 v8_experimental_extra_library_files = [
35 "//third_party/WebKit/Source/core/streams/ReadableStreamExperimentalPipeTo.js",
36 "//third_party/WebKit/Source/core/streams/WritableStream.js",
37 ]
brettw04a0e482017-01-25 21:29:5938 v8_enable_inspector = true
39 v8_enable_gdbjit = false
40 v8_imminent_deprecation_warnings = false
41}
42
brettw2bafab42014-11-27 18:36:1743# These are the targets to check headers for by default. The files in targets
44# matching these patterns (see "gn help label_pattern" for format) will have
45# their includes checked for proper dependencies when you run either
46# "gn check" or "gn gen --check".
brettwe75311d2015-02-17 23:56:4647check_targets = [
brettwbc44c0a92015-02-20 22:30:3948 #"//apps/*", # Medium-hard.
mswafbb0c02016-02-11 01:54:1249 "//ash/*",
brettw29c2f892015-11-27 17:03:4950 "//base/*",
brettwbc44c0a92015-02-20 22:30:3951 "//blink/*",
52 "//breakpad/*",
53 "//build/*",
brettwe75311d2015-02-17 23:56:4654 "//cc/*",
brettwbc44c0a92015-02-20 22:30:3955
56 #"//chrome/*", # Epic number of errors.
tfarina8e584882016-01-09 00:50:1557 "//chrome/app/*",
brettwafa8f542016-08-24 05:16:2458 "//chrome/browser/extensions/*",
brettwb3e60142016-09-23 19:55:0159 "//chrome/browser/ui/*",
brettw0b9c96b12015-10-15 23:06:0460 "//chrome/common/*",
brettwf986f9572015-10-07 17:18:1561 "//chrome/installer/*",
brettw0b9c96b12015-10-15 23:06:0462 "//chrome/third_party/mozilla_security_manager/*",
tfarina961ad5d2016-01-06 22:27:1163 "//chrome/tools/*",
tfarina02f77a42015-12-17 22:38:2364 "//chrome/utility/*",
brettwbc44c0a92015-02-20 22:30:3965 "//chromecast/*",
oshima3f959fa82016-05-02 18:42:5766 "//chromeos/*",
brettwa219e922015-12-07 22:23:3967 "//chrome_elf/*",
68 "//cloud_print/*",
brettwb5440a92015-12-03 00:47:1269 "//components/*",
brettwd064ace4e2016-07-21 21:38:5370 "//content/*",
brettwbc44c0a92015-02-20 22:30:3971 "//courgette/*",
72 "//crypto/*",
73 "//data/*",
74 "//dbus/*",
brettwbda835b2015-12-04 22:12:3075 "//device/*",
brettwbc44c0a92015-02-20 22:30:3976
77 #"//extensions/*", # Lots of errors.
brettwdc1e6182016-08-30 20:52:1378 "//extensions:extensions_unittests",
79 "//extensions/browser:browser_tests",
80 "//extensions/browser:unit_tests",
81 "//extensions/common:unit_tests",
82 "//extensions/renderer:unit_tests",
83 "//extensions/shell:browser_tests",
84 "//extensions/shell:unit_tests",
85 "//extensions/utility:unit_tests",
jbromanb5e31792015-12-09 17:13:0286 "//gin/*",
tfarina9ee681962015-03-02 03:20:1387 "//google_apis/*",
brettwbc44c0a92015-02-20 22:30:3988 "//google_update/*",
brettw09039c12016-03-18 03:22:4689 "//gpu/*",
tfarinaf89722432015-05-15 19:30:1990
sdefresne5f39d8e62016-05-18 19:27:3791 "//ios/*",
92 "//ios_internal/*",
brettwe75311d2015-02-17 23:56:4693 "//ipc/*",
brettwbc44c0a92015-02-20 22:30:3994
95 #"//jingle/*",
skyb0446352015-11-18 00:43:5696 "//mash/*",
sky88d7709e2015-08-12 19:19:4997
brettwbc44c0a92015-02-20 22:30:3998 #"//media/*", # Lots of errors.
jrummell370e8f92016-06-02 19:16:2799 #"//media/base/*",
100 #"//media/capture/*",
weze25ca8402016-11-11 02:05:12101 "//media/cast/*",
jrummell370e8f92016-06-02 19:16:27102 "//media:media",
103 "//media:shared_memory_support",
104 "//media:media_unittests",
105 "//media:audio_unittests",
106 "//media:media_perftests",
107 "//media/audio/*",
108 "//media/blink/*",
109 "//media/cdm/*",
110 "//media/ffmpeg/*",
111 "//media/gpu/*",
112 "//media/midi/*",
113 "//media/mojo/*",
xhwang09f35d952016-11-11 18:12:18114 "//media/remoting/*",
jrummell5216c612016-10-06 01:30:30115 "//media/test/*",
jrummell370e8f92016-06-02 19:16:27116
sky343931432015-08-10 19:22:19117 "mojo/*",
skyd412f6e2015-07-22 17:22:13118
brettwbc44c0a92015-02-20 22:30:39119 #"//native_client/*",
brettw25ca8922016-03-18 22:59:58120 "//net/*",
brettwbc44c0a92015-02-20 22:30:39121
122 #"//pdf/*", # Medium-hard.
123 #"//ppapi/*", # Lots of errors.
jbroman86f78272015-12-31 00:00:51124 "//ppapi/examples/*",
brettwbc44c0a92015-02-20 22:30:39125 "//printing/*",
126
127 #"//remoting/*", # Medium-hard.
brettw09039c12016-03-18 03:22:46128 "//rlz/*",
129
brettwbc44c0a92015-02-20 22:30:39130 #"//sandbox/*", # Medium-hard.
131 "//sdch/*",
sky1e8f9f862016-05-19 22:34:43132 "//services/*",
brettwbc44c0a92015-02-20 22:30:39133 "//skia/*",
134 "//sql/*",
135 "//storage/*",
brettwbc44c0a92015-02-20 22:30:39136 "//testing/*",
137
138 #"//third_party/*", # May not ever want this.
rouslan30b18292016-03-31 18:05:10139 "//third_party/hunspell/*",
pmonette502a83e2016-01-08 00:21:16140 "//third_party/kasko/*",
rouslan30b18292016-03-31 18:05:10141 "//third_party/libaddressinput/*",
142 "//third_party/libphonenumber/*",
jbroman626eecf2015-12-03 18:59:00143 "//third_party/WebKit/Source/*",
brettwbc44c0a92015-02-20 22:30:39144 "//tools/*",
145
brettwb7f2c302015-12-08 01:29:21146 #"//ui/*", # Work left on Chromeos w/ use_ozone. Some parts of UI that work:
147 "//ui/accessibility/*",
148 "//ui/android/*",
149 "//ui/app_list/*",
xiyuan369cf0c2016-06-30 16:34:15150 "//ui/arc/*",
brettwb7f2c302015-12-08 01:29:21151 "//ui/aura/*",
152 "//ui/aura_extra/*",
153 "//ui/base/*",
154 "//ui/chromeos/*",
155 "//ui/compositor/*",
kylechar3e6b9772016-04-15 18:55:27156 "//ui/content_accelerators/*",
brettwb7f2c302015-12-08 01:29:21157 "//ui/display/*",
kylechar3e6b9772016-04-15 18:55:27158 "//ui/events/*",
brettwb7f2c302015-12-08 01:29:21159 "//ui/file_manager/*",
160 "//ui/gfx/*",
161 "//ui/gl/*",
162 "//ui/keyboard/*",
kylechar3e6b9772016-04-15 18:55:27163 "//ui/latency_info/*",
brettwb7f2c302015-12-08 01:29:21164 "//ui/login/*",
165 "//ui/message_center/*",
brettwb7f2c302015-12-08 01:29:21166 "//ui/mojo/*",
167 "//ui/native_theme/*",
kylechare2b20222016-04-14 20:58:33168 "//ui/ozone/*",
brettwb7f2c302015-12-08 01:29:21169 "//ui/platform_window/*",
170 "//ui/resources/*",
171 "//ui/shell_dialogs/*",
172 "//ui/snapshot/*",
173 "//ui/strings/*",
174 "//ui/surface/*",
175 "//ui/touch_selection/*",
176 "//ui/views/*",
177 "//ui/views_content_client/*",
178 "//ui/web_dialogs/*",
179 "//ui/webui/*",
180 "//ui/wm/*",
brettwbc44c0a92015-02-20 22:30:39181 "//url/*",
182 "//v8/*",
brettw0ead9772015-11-23 23:12:08183 "//win8/*",
brettwe75311d2015-02-17 23:56:46184]
brettwed99f7b2015-04-07 00:22:50185
186# These are the list of GN files that run exec_script. This whitelist exists
187# to force additional review for new uses of exec_script, which is strongly
brettwd385ecf2016-04-19 22:53:23188# discouraged.
189#
190# GYPI_TO_GN
191#
192# Most of these entries are for gypi_to_gn calls. We should not be adding new
193# calls to this script in the build (see //build/gypi_to_gn.py for detailed
194# advice). The only time you should be editing this list for gypi_to_gn
195# purposes is when moving an existing call to a different place.
196#
197# PLEASE READ
198#
199# You should almost never need to add new exec_script calls. exec_script is
200# slow, especially on Windows, and can cause confusing effects. Although
201# individually each call isn't slow or necessarily very confusing, at the scale
202# of our repo things get out of hand quickly. By strongly pushing back on all
203# additions, we keep the build fast and clean. If you think you need to add a
204# new call, please consider:
205#
206# - Do not use a script to check for the existance of a file or directory to
207# enable a different mode. Instead, use GN build args to enable or disable
208# functionality and set options. An example is checking for a file in the
209# src-internal repo to see if the corresponding src-internal feature should
210# be enabled. There are several things that can go wrong with this:
211#
212# - It's mysterious what causes some things to happen. Although in many cases
213# such behavior can be conveniently automatic, GN optimizes for explicit
214# and obvious behavior so people can more easily diagnose problems.
215#
216# - The user can't enable a mode for one build and not another. With GN build
217# args, the user can choose the exact configuration of multiple builds
218# using one checkout. But implicitly basing flags on the state of the
219# checkout, this functionality is broken.
220#
221# - It's easy to get stale files. If for example the user edits the gclient
222# to stop checking out src-internal (or any other optional thing), it's
223# easy to end up with stale files still mysteriously triggering build
224# conditions that are no longer appropriate (yes, this happens in real
225# life).
226#
227# - Do not use a script to iterate files in a directory (glob):
228#
229# - This has the same "stale file" problem as the above discussion. Various
230# operations can leave untracked files in the source tree which can cause
231# surprising effects.
232#
233# - It becomes impossible to use "git grep" to find where a certain file is
234# referenced. This operation is very common and people really do get
235# confused when things aren't listed.
236#
237# - It's easy to screw up. One common case is a build-time script that packs
238# up a directory. The author notices that the script isn't re-run when the
239# directory is updated, so adds a glob so all the files are listed as
240# inputs. This seems to work great... until a file is deleted. When a
thakis3e861de2016-06-14 14:24:01241# file is deleted, all the inputs the glob lists will still be up to date
brettwd385ecf2016-04-19 22:53:23242# and no command-lines will have been changed. The action will not be
243# re-run and the build will be broken. It is possible to get this correct
244# using glob, and it's possible to mess it up without glob, but globs make
245# this situation much easier to create. if the build always lists the
246# files and passes them to a script, it will always be correct.
dgn470951712015-04-07 10:37:47247
dpranke1cfa5312016-11-22 03:07:47248exec_script_whitelist =
249 build_dotfile_settings.exec_script_whitelist + [
250 # Whitelist entries for //build should go into
251 # //build/dotfile_settings.gni instead, so that they can be shared
252 # with other repos. The entries in this list should be only for files
253 # in the Chromium repo outside of //build.
254 "//android_webview/BUILD.gn",
255 "//build_overrides/build.gni",
256 "//chromeos/BUILD.gn",
dgn470951712015-04-07 10:37:47257
dpranke1cfa5312016-11-22 03:07:47258 # TODO(dgn): Layer violation but breaks the build otherwise, see
259 # https://crbug.com/474506.
260 "//clank/java/BUILD.gn",
261 "//clank/native/BUILD.gn",
brettw46134cb2016-09-02 23:53:18262
dpranke1cfa5312016-11-22 03:07:47263 "//jingle/BUILD.gn",
264 "//net/BUILD.gn",
265 "//remoting/host/installer/linux/BUILD.gn",
266 "//remoting/remoting_version.gni",
267 "//remoting/host/installer/win/generate_clsids.gni",
brettwde7b2652016-09-09 23:25:05268
dpranke1cfa5312016-11-22 03:07:47269 # TODO(dpranke): Get these from the appropriate repos instead.
270 "//third_party/angle/BUILD.gn",
271 "//third_party/angle/src/tests/BUILD.gn",
272 "//third_party/angle/src/vulkan_support/BUILD.gn",
273 "//third_party/catapult/tracing/BUILD.gn",
274 "//third_party/google_input_tools/inputview.gni",
275
276 # CLD2 should be removed soon, delete this when we do.
277 "//third_party/cld_2/BUILD.gn",
278 "//tools/grit/grit_rule.gni",
279
280 # Not gypi-to-gn.
281 "//google_apis/BUILD.gn",
282 "//printing/BUILD.gn",
283 ]