-
Notifications
You must be signed in to change notification settings - Fork 29
/
DEPS
487 lines (484 loc) · 16.6 KB
/
DEPS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
# DO NOT EDIT EXCEPT FOR LOCAL TESTING.
vars = {
"upstream_commit_id": "I79c24561057282ac13192f59bcd990052630bd71",
# The path of the sysroots.json file.
# This is used by vendor builds like Electron.
'sysroots_json_path': 'build/linux/sysroot_scripts/sysroots.json',
}
hooks = [
# Download and initialize "vpython" VirtualEnv environment packages for
# Python3. We do this before running any other hooks so that any other
# hooks that might use vpython don't trip over unexpected issues and
# don't run slower than they might otherwise need to.
{
'name': 'vpython3_common',
'pattern': '.',
'action': [ 'vpython3',
'-vpython-spec', 'chromium/.vpython3',
'-vpython-tool', 'install',
],
},
{
# This clobbers when necessary (based on get_landmines.py). This should
# run as early as possible so that other things that get/generate into the
# output directory will not subsequently be clobbered.
'name': 'landmines',
'pattern': '.',
'action': [
'python3', "-u",
'chromium/build/landmines.py'
],
},
{
# Ensure that the DEPS'd "depot_tools" has its self-update capability
# disabled.
'name': 'disable_depot_tools_selfupdate',
'pattern': '.',
'action': [
'python3', "-u",
'chromium/third_party/depot_tools/update_depot_tools_toggle.py',
'--disable',
],
},
{
'name': 'Ensure bootstrap',
'pattern': '.',
'action': ["bash", 'chromium/third_party/depot_tools/ensure_bootstrap'],
},
{
# Ensure that we don't accidentally reference any .pyc files whose
# corresponding .py files have since been deleted.
# We could actually try to avoid generating .pyc files, crbug.com/500078.
'name': 'remove_stale_pyc_files',
'pattern': '.',
'action': [
'python3', "-u",
'chromium/tools/remove_stale_pyc_files.py',
'chromium/android_webview/tools',
'chromium/build/android',
'chromium/gpu/gles2_conform_support',
'chromium/infra',
'chromium/ppapi',
'chromium/printing',
'chromium/third_party/blink/renderer/build/scripts',
'chromium/third_party/blink/tools', # See http://crbug.com/625877.
'chromium/third_party/catapult',
'chromium/third_party/mako', # Some failures triggered by crrev.com/c/3686969
'chromium/tools',
],
},
{
'name': 'load_build_support',
'pattern': '.',
'action': [
'python3', "-u", 'scripts/load_net_build_support.py',
'--linux', Var("checkout_linux_str"),
'--win', Var("checkout_win_str"),
'--mac', Var("checkout_mac_str"),
'--android', Var("checkout_android_str"),
'--x64', Var("checkout_x64_str"),
'--arm', Var("checkout_arm_str"),
'--arm64', Var("checkout_arm64_str"),
],
},
{
# Check out cipd submodules based on chromium/DEPS for all OSes
'name': 'checkout_general_submodules',
'pattern': '.',
'action': [
'python3', "-u", 'scripts/general_submodules.py',
],
},
{
# Case-insensitivity for the Win SDK. Must run before win_toolchain below.
'name': 'ciopfs_linux',
'pattern': '.',
'condition': 'checkout_win and host_os == "linux"',
'action': [ 'python3', "-u",
'chromium/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
'--bucket', 'chromium-browser-clang/ciopfs',
'-s', 'chromium/build/ciopfs.sha1',
]
},
{
# Update the Windows toolchain if necessary. Must run before 'clang' below.
'name': 'win_toolchain',
'pattern': '.',
'condition': 'checkout_win',
'action': ['python3', "-u", 'scripts/vivaldi_update_toolchain.py'],
},
{
# Update the prebuilt clang toolchain.
# Note: On Win, this should run after win_toolchain, as it may use it.
'name': 'clang',
'pattern': '.',
'action': ['python3', "-u", 'chromium/tools/clang/scripts/update.py'],
},
{
# Update prebuilt Rust toolchain.
'name': 'rust-toolchain',
'pattern': '.',
'action': ['python3', "-u", 'chromium/tools/rust/update_rust.py'],
},
{
# Update the prebuilt clang toolchain.
# Note: On Win, this should run after win_toolchain, as it may use it.
'name': 'clang',
'pattern': '.',
'condition': 'checkout_reclient and (checkout_win or checkout_mac)',
'action': ['python3', "-u", 'chromium/tools/clang/scripts/update.py',
"--host-os", "linux",
"--output-dir",
"chromium/third_party/llvm-build/Release+Asserts_linux"],
},
{
# Should run after the clang hook. Used on mac, as well as for orderfile
# generation and size tooling on Android. Used by
# dump-static-initializers.py on linux.
'name': 'objdump',
'pattern': '.',
'condition': 'checkout_linux or checkout_mac or checkout_android and host_os != "mac"',
'action': ['python3', 'chromium/tools/clang/scripts/update.py',
'--package=objdump'],
},
{
# Update LASTCHANGE.
'name': 'lastchange_vivaldi',
'pattern': '.',
'action': ['python3', "-u",
'scripts/vivaldi_lastchange.py',
"--source-dir", ".",
"--revision-id-only",
'-o', 'chromium/build/util/LASTCHANGE'],
},
{
# Update LASTCHANGE.chromium
'name': 'lastchange_chromium',
'pattern': '.',
'action': ['python3', "-u", 'chromium/build/util/lastchange.py',
'-o', 'chromium/build/util/LASTCHANGE.chromium',
"--filter", "^Change-Id: " + Var("upstream_commit_id")],
},
{
# Update GPU lists version string (for gpu/config).
'name': 'gpu_lists_version',
'pattern': '.',
'action': ['python3', "-u", 'chromium/build/util/lastchange.py',
'-m', 'GPU_LISTS_VERSION',
'--revision-id-only',
'--header', 'chromium/gpu/config/gpu_lists_version.h'],
},
{
# Update skia_commit_hash.h.
'name': 'lastchange_skia',
'pattern': '.',
'action': ['python3', "-u", 'chromium/build/util/lastchange.py',
'-m', 'SKIA_COMMIT_HASH',
'-s', 'chromium/third_party/skia',
'--header', 'chromium/skia/ext/skia_commit_hash.h'],
},
{
# Update dawn_version.h.
'name': 'lastchange_dawn',
'pattern': '.',
'action': ['python3', 'chromium/build/util/lastchange.py',
'-s', 'chromium/third_party/dawn',
'--revision', 'chromium/gpu/webgpu/DAWN_VERSION'],
},
# Pull dsymutil binaries using checked-in hashes.
{
'name': 'dsymutil_mac_arm64',
'pattern': '.',
'condition': 'host_os == "mac" and host_cpu == "arm64"',
'action': [ 'python3',
'chromium/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
'--bucket', 'chromium-browser-clang',
'-s', 'chromium/tools/clang/dsymutil/bin/dsymutil.arm64.sha1',
'-o', 'chromium/tools/clang/dsymutil/bin/dsymutil',
],
},
{
'name': 'dsymutil_mac_x64',
'pattern': '.',
'condition': 'host_os == "mac" and host_cpu == "x64"',
'action': [ 'python3',
'chromium/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
'--bucket', 'chromium-browser-clang',
'-s', 'chromium/tools/clang/dsymutil/bin/dsymutil.x64.sha1',
'-o', 'chromium/tools/clang/dsymutil/bin/dsymutil',
],
},
# Pull clang-format binaries using checked-in hashes.
{
'name': 'clang_format_win',
'pattern': '.',
'condition': 'host_os == "win"',
'action': [ 'python3', "-u",
'chromium/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
'--bucket', 'chromium-clang-format',
'-s', 'chromium/buildtools/win/clang-format.exe.sha1'
],
},
{
'name': 'clang_format_mac_x64',
'pattern': '.',
'condition': 'host_os == "mac" and host_cpu == "x64"',
'action': [ 'python3',
'chromium/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
'--bucket', 'chromium-clang-format',
'-s', 'chromium/buildtools/mac/clang-format.x64.sha1',
'-o', 'chromium/buildtools/mac/clang-format',
],
},
{
'name': 'clang_format_mac_arm64',
'pattern': '.',
'condition': 'host_os == "mac" and host_cpu == "arm64"',
'action': [ 'python3',
'chromium/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
'--bucket', 'chromium-clang-format',
'-s', 'chromium/buildtools/mac/clang-format.arm64.sha1',
'-o', 'chromium/buildtools/mac/clang-format',
],
},
{
'name': 'clang_format_linux',
'pattern': '.',
'condition': 'host_os == "linux"',
'action': [ 'python3', "-u",
'chromium/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
'--bucket', 'chromium-clang-format',
'-s', 'chromium/buildtools/linux64/clang-format.sha1'
],
},
# Pull rc binaries using checked-in hashes.
{
'name': 'rc_win',
'pattern': '.',
'condition': 'checkout_win and host_os == "win"',
'action': [ 'python3', "-u",
'chromium/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
'--bucket', 'chromium-browser-clang/rc',
'-s', 'chromium/build/toolchain/win/rc/win/rc.exe.sha1',
],
},
{
'name': 'rc_mac',
'pattern': '.',
'condition': 'checkout_win and host_os == "mac"',
'action': [ 'python3', "-u",
'chromium/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
'--bucket', 'chromium-browser-clang/rc',
'-s', 'chromium/build/toolchain/win/rc/mac/rc.sha1',
],
},
{
'name': 'rc_linux',
'pattern': '.',
'condition': 'checkout_win and host_os == "linux"',
'action': [ 'python3', "-u",
'chromium/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
'--bucket', 'chromium-browser-clang/rc',
'-s', 'chromium/build/toolchain/win/rc/linux64/rc.sha1',
]
},
# Download test resources for opus, i.e. audio files.
{
'name': 'opus_test_files',
'pattern': '.',
'action': ['download_from_google_storage',
'--no_auth',
'--quiet',
'--bucket', 'chromium-webrtc-resources',
'-d', 'chromium/third_party/opus/tests/resources'],
},
# Pull down NPM dependencies for WebUI toolchain.
{
'name': 'webui_node_modules',
'pattern': '.',
'action': [ 'python3', "-u",
'chromium/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--extract',
'--no_auth',
'--bucket', 'chromium-nodejs',
'-s', 'chromium/third_party/node/node_modules.tar.gz.sha1',
],
},
{
'name': 'Fetch Android AFDO profile',
'pattern': '.',
'condition': 'checkout_android',
'action': [ 'python3',
'chromium/tools/download_optimization_profile.py',
'--newest_state=chromium/chrome/android/profiles/newest.txt',
'--local_state=chromium/chrome/android/profiles/local.txt',
'--output_name=chromium/chrome/android/profiles/afdo.prof',
'--gs_url_base=chromeos-prebuilt/afdo-job/llvm',
],
},
{
'name': 'Fetch Android Arm AFDO profile',
'pattern': '.',
'condition': 'checkout_android',
'action': [ 'python3',
'chromium/tools/download_optimization_profile.py',
'--newest_state=chromium/chrome/android/profiles/arm.newest.txt',
'--local_state=chromium/chrome/android/profiles/arm.local.txt',
'--output_name=chromium/chrome/android/profiles/arm.afdo.prof',
'--gs_url_base=chromeos-prebuilt/afdo-job/llvm',
],
},
{
# Pull doclava binaries if building for Android.
'name': 'doclava',
'pattern': '.',
'condition': 'checkout_android',
'action': ['python3', "-u",
'chromium/build/android/download_doclava.py',
],
},
# Download PGO profiles.
{
'name': 'Fetch PGO profiles for win-arm64',
'pattern': '.',
'condition': 'checkout_pgo_profiles and checkout_win',
'action': [ 'python3',
'chromium/tools/update_pgo_profiles.py',
'--target=win-arm64',
'update',
'--gs-url-base=chromium-optimization-profiles/pgo_profiles',
],
},
{
'name': 'Fetch PGO profiles for win32',
'pattern': '.',
'condition': 'checkout_pgo_profiles and checkout_win',
'action': [ 'python3',
'chromium/tools/update_pgo_profiles.py',
'--target=win32',
'update',
'--gs-url-base=chromium-optimization-profiles/pgo_profiles',
],
},
{
'name': 'Fetch PGO profiles for win64',
'pattern': '.',
'condition': 'checkout_pgo_profiles and checkout_win',
'action': [ 'python3',
'chromium/tools/update_pgo_profiles.py',
'--target=win64',
'update',
'--gs-url-base=chromium-optimization-profiles/pgo_profiles',
],
},
{
'name': 'Fetch PGO profiles for mac',
'pattern': '.',
'condition': 'checkout_pgo_profiles and checkout_mac',
'action': [ 'python3',
'chromium/tools/update_pgo_profiles.py',
'--target=mac',
'update',
'--gs-url-base=chromium-optimization-profiles/pgo_profiles',
],
},
{
'name': 'Fetch PGO profiles for mac arm',
'pattern': '.',
'condition': 'checkout_pgo_profiles and (checkout_mac or checkout_android)',
'action': [ 'python3',
'chromium/tools/update_pgo_profiles.py',
'--target=mac-arm',
'update',
'--gs-url-base=chromium-optimization-profiles/pgo_profiles',
],
},
{
'name': 'Fetch PGO profiles for linux',
'pattern': '.',
'condition': 'checkout_pgo_profiles and checkout_linux',
'action': [ 'python3',
'chromium/tools/update_pgo_profiles.py',
'--target=linux',
'update',
'--gs-url-base=chromium-optimization-profiles/pgo_profiles',
],
},
{
'name': 'Fetch PGO profiles for android arm32',
'pattern': '.',
'condition': 'checkout_pgo_profiles and checkout_android',
'action': [ 'python3',
'chromium/tools/update_pgo_profiles.py',
'--target=android-arm32',
'update',
'--gs-url-base=chromium-optimization-profiles/pgo_profiles',
],
},
{
'name': 'Fetch PGO profiles for android arm64',
'pattern': '.',
'condition': 'checkout_pgo_profiles and checkout_android',
'action': [ 'python3',
'chromium/tools/update_pgo_profiles.py',
'--target=android-arm64',
'update',
'--gs-url-base=chromium-optimization-profiles/pgo_profiles',
],
},
{
'name': 'Fetch PGO profiles for V8 builtins',
'pattern': '.',
# Always download profiles on Android builds. The GN arg `is_official_build`
# is required to consider the profiles during build time.
'condition': 'checkout_pgo_profiles or checkout_android',
'action': [ 'python3',
'chromium/v8/tools/builtins-pgo/download_profiles.py',
'download',
'--depot-tools',
'chromium/third_party/depot_tools',
"--force",
'--quiet',
],
},
#{ # Vivaldi don't do libc++ roll and reverts; disabling
# # Clean up build dirs for crbug.com/1337238.
# # After a libc++ roll and revert, .ninja_deps would get into a state
# # that breaks Ninja on Windows.
# # TODO(crbug.com/1409337): Remove this after updating Ninja 1.12 or newer.
# 'name': 'del_ninja_deps_cache',
# 'pattern': '.',
# 'condition': 'host_os == "win"',
# 'action': ['python3', 'chromium/build/del_ninja_deps_cache.py'],
#},
{
'name': 'bootstrap-gn',
'pattern': '.',
'action': [
'python3', "-u",
'scripts/rungn.py',
'--refresh',
],
}
]