-
Notifications
You must be signed in to change notification settings - Fork 472
/
DEPS
319 lines (292 loc) · 11.1 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
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
use_relative_paths = True
git_dependencies = 'SYNC'
gclient_gn_args_file = 'build/config/gclient_args.gni'
gclient_gn_args = [
]
vars = {
'build_with_chromium': False,
'build_url': 'https://chromium.googlesource.com/chromium/src/build.git',
'build_revision': 'db22025de280f1dd7e2cece017cb4a7475500157',
'buildtools_url': 'https://chromium.googlesource.com/chromium/src/buildtools.git',
'buildtools_revision': '1760ff6d7267dd97ae1968c7bee9ce04a2a8489d',
'depot_tools_url': 'https://chromium.googlesource.com/chromium/tools/depot_tools.git',
'depot_tools_revision': 'bc85464ac5aeaa5d8c10db21b548a32a6de0f3e1',
'inspector_protocol_url': 'https://chromium.googlesource.com/deps/inspector_protocol',
'inspector_protocol_revision': 'f43f7515bcf291ed7413ba70b0c8514f842f9f5d',
# Keeping track of the last time we rollerd the browser protocol files.
'chromium_browser_protocol_revision' : 'affc133e5a5412e462e08273b449ea838952e216',
'clang_format_url': 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/clang/tools/clang-format.git',
'clang_format_revision': '3c0acd2d4e73dd911309d9e970ba09d58bf23a62',
'emscripten_tag': 'ade9d780ff17c88d81aa13860361743e3c1e1396',
# GN CIPD package version.
'gn_version': 'git_revision:feafd1012a32c05ec6095f69ddc3850afb621f3a',
'cmake_version': 'version:[email protected]',
'llvm_url': 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/',
'llvm_revision': '3c51ea3619e488db19cd26840ed46d58cfc7062f',
'lldb_eval_url': 'https://chromium.googlesource.com/external/github.com/google/lldb-eval.git',
'lldb_eval_revision': 'e87123a7e639bf1d86f24c37079570fb7fa00b72',
# ninja CIPD package version.
# https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja
'ninja_version': 'version:[email protected]',
# Chrome version used for tests. It should be regularly updated to
# match the Canary version listed here:
# https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json
'chrome': '133.0.6840.0',
# 'magic' text to tell depot_tools that git submodules should be accepted but
# but parity with DEPS file is expected.
'SUBMODULE_MIGRATION': 'True',
# condition to allowlist deps for non-git-source processing.
'non_git_source': 'True',
}
# Only these hosts are allowed for dependencies in this DEPS file.
# If you need to add a new host, contact chrome infrastracture team.
allowed_hosts = [
'chromium.googlesource.com',
'chrome-infra-packages.appspot.com',
# TODO(b/337061377): Move into a separate alllowed gcs bucket list.
'chromium-nodejs',
]
deps = {
'third_party/clang-format/script': {
'url': Var('clang_format_url') + '@' + Var('clang_format_revision'),
'condition': 'build_with_chromium == False',
},
'third_party/cmake': {
'packages': [{
'package': 'infra/3pp/tools/cmake/${{platform}}',
'version': Var('cmake_version')
}],
'dep_type':
'cipd',
'condition': 'checkout_cxx_debugging_extension_deps == True',
},
'extensions/cxx_debugging/third_party/llvm/src': {
'url': Var('llvm_url') + '@' + Var('llvm_revision'),
'condition': 'checkout_cxx_debugging_extension_deps == True',
},
'extensions/cxx_debugging/third_party/lldb-eval/src': {
'url': Var('lldb_eval_url') + '@' + Var('lldb_eval_revision'),
'condition': 'checkout_cxx_debugging_extension_deps == True',
},
'buildtools': {
'url': Var('buildtools_url') + '@' + Var('buildtools_revision'),
'condition': 'build_with_chromium == False',
},
'buildtools/linux64': {
'packages': [
{
'package': 'gn/gn/linux-${{arch}}',
'version': Var('gn_version'),
}
],
'dep_type': 'cipd',
'condition': 'host_os == "linux" and build_with_chromium == False',
},
'buildtools/mac': {
'packages': [
{
'package': 'gn/gn/mac-${{arch}}',
'version': Var('gn_version'),
}
],
'dep_type': 'cipd',
'condition': 'host_os == "mac" and build_with_chromium == False',
},
'buildtools/win': {
'packages': [
{
'package': 'gn/gn/windows-amd64',
'version': Var('gn_version'),
}
],
'dep_type': 'cipd',
'condition': 'host_os == "win" and build_with_chromium == False',
},
'third_party/esbuild': {
'packages': [
{
'package': 'infra/3pp/tools/esbuild/${{platform}}',
'version': 'version:[email protected]',
}
],
'dep_type': 'cipd',
'condition': 'non_git_source',
},
'build': {
'url': Var('build_url') + '@' + Var('build_revision'),
'condition': 'build_with_chromium == False',
},
'third_party/depot_tools': {
'url': Var('depot_tools_url') + '@' + Var('depot_tools_revision'),
'condition': 'build_with_chromium == False',
},
'third_party/inspector_protocol': {
'url': Var('inspector_protocol_url') + '@' + Var('inspector_protocol_revision'),
'condition': 'build_with_chromium == False',
},
'third_party/ninja': {
'packages': [
{
'package': 'infra/3pp/tools/ninja/${{platform}}',
'version': Var('ninja_version'),
}
],
'dep_type': 'cipd',
'condition': 'build_with_chromium == False',
},
# Pull down Node binaries for WebUI toolchain.
'third_party/node/linux': {
'dep_type': 'gcs',
'condition': 'host_os == "linux" and build_with_chromium == False and non_git_source',
'bucket': 'chromium-nodejs',
'objects': [
{
'object_name': 'fa98c6432de572206bc5519f85e9c96bd518b039',
'sha256sum': 'fb563633b5bfe2d4307075c54c6bb54664a3b5ec6bc811f5b15742720549007a',
'size_bytes': 50288755,
'generation': 1730835522207929,
'output_file': 'node-linux-x64.tar.gz',
},
],
},
'third_party/node/mac': {
'dep_type': 'gcs',
'condition': 'host_os == "mac" and build_with_chromium == False and host_cpu != "arm64" and non_git_source',
'bucket': 'chromium-nodejs',
'objects': [
{
'object_name': '4c8952a65a1ce7a2e4cff6db68f9b7454c46349f',
'sha256sum': 'fadb4530fbe6e35ed298848c66102a0aa7d92974789e6222c4eadee26a381e7e',
'size_bytes': 45672893,
'generation': 1730835514382259,
'output_file': 'node-darwin-x64.tar.gz',
},
],
},
'third_party/node/mac_arm64': {
'dep_type': 'gcs',
'condition': 'host_os == "mac" and build_with_chromium == False and host_cpu == "arm64" and non_git_source',
'bucket': 'chromium-nodejs',
'objects': [
{
'object_name': '0886aa6a146cb5c213cb09b59ed1075982e4cb57',
'sha256sum': 'd39e2d44d58bb89740b9aca1073959fc92edbdbbe810a5e48448e331cf72c196',
'size_bytes': 44929037,
'generation': 1730835518292126,
'output_file': 'node-darwin-arm64.tar.gz',
},
],
},
'third_party/node/win': {
'dep_type': 'gcs',
'condition': 'host_os == "win" and build_with_chromium == False and non_git_source',
'bucket': 'chromium-nodejs',
'objects': [
{
'object_name': '907d7e104e7389dc74cec7d32527c1db704b7f96',
'sha256sum': '7447c4ece014aa41fb2ff866c993c708e5a8213a00913cc2ac5049ea3ffc230d',
'size_bytes': 80511640,
'generation': 1730835526374028,
'output_file': 'node.exe',
},
],
},
}
hooks = [
{
# Ensure that the DEPS'd "depot_tools" has its self-update capability
# disabled.
'name': 'disable_depot_tools_selfupdate',
'pattern': '.',
'condition': 'build_with_chromium == False',
'action': [
'vpython3',
'third_party/depot_tools/update_depot_tools_toggle.py',
'--disable',
],
},
# Pull Chrome binaries from CfT buckets.
{
'name': 'download_chrome_win',
'pattern': '.',
'condition': 'host_os == "win" and build_with_chromium == False',
'action': [ 'vpython3',
'scripts/deps/download_chrome.py',
'--url=https://storage.googleapis.com/chrome-for-testing-public/' + Var('chrome') + '/win64/chrome-win64.zip',
'--target=third_party/chrome',
'--rename_from=chrome-win64',
'--rename_to=chrome-win',
'--path_to_binary=chrome-win/chrome.exe',
'--version_number=' + Var('chrome'),
],
},
{
'name': 'download_chrome_mac',
'pattern': '.',
'condition': 'host_os == "mac" and build_with_chromium == False and host_cpu != "arm64"',
'action': [ 'vpython3',
'scripts/deps/download_chrome.py',
'--url=https://storage.googleapis.com/chrome-for-testing-public/' + Var('chrome') + '/mac-x64/chrome-mac-x64.zip',
'--target=third_party/chrome',
'--rename_from=chrome-mac-x64',
'--rename_to=chrome-mac',
'--path_to_binary=chrome-mac/Google Chrome for Testing.app/Contents',
'--version_number=' + Var('chrome'),
],
},
{
'name': 'download_chrome_mac',
'pattern': '.',
'condition': 'host_os == "mac" and build_with_chromium == False and host_cpu == "arm64"',
'action': [ 'vpython3',
'scripts/deps/download_chrome.py',
'--url=https://storage.googleapis.com/chrome-for-testing-public/' + Var('chrome') + '/mac-arm64/chrome-mac-arm64.zip',
'--target=third_party/chrome',
'--rename_from=chrome-mac-arm64',
'--rename_to=chrome-mac',
'--path_to_binary=chrome-mac/Google Chrome for Testing.app/Contents',
'--version_number=' + Var('chrome'),
],
},
{
'name': 'download_chrome_linux',
'pattern': '.',
'condition': 'host_os == "linux" and build_with_chromium == False',
'action': [ 'vpython3',
'scripts/deps/download_chrome.py',
'--url=https://storage.googleapis.com/chrome-for-testing-public/' + Var('chrome') + '/linux64/chrome-linux64.zip',
'--target=third_party/chrome',
'--rename_from=chrome-linux64',
'--rename_to=chrome-linux',
'--path_to_binary=chrome-linux/chrome',
'--version_number=' + Var('chrome'),
],
},
{
# Update LASTCHANGE for build script timestamps
'name': 'lastchange',
'condition': 'build_with_chromium == False',
'pattern': '.',
'action': ['vpython3', 'build/util/lastchange.py',
'-o', 'build/util/LASTCHANGE'],
},
{
'name': 'emscripten',
'pattern': '.',
'condition': 'build_with_chromium == False',
'action': ['vpython3', 'scripts/deps/download_emscripten.py', Var('emscripten_tag'), 'third_party/emscripten-releases'],
},
{
'name': 'VS Code settings',
'pattern': '.',
'condition': 'build_with_chromium == False',
'action': ['vpython3', 'third_party/node/node.py', '--output', 'scripts/deps/sync-vscode-settings.js']
},
]
recursedeps = [
'build',
'buildtools',
]