[go: nahoru, domu]

blob: 46133be0f5b46045eb3b769764616c72f2131a7a [file] [log] [blame]
Yang Guo4fd355c2019-09-19 08:59:031# Copyright 2019 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Philip Pfaffea7673312020-07-10 13:06:495use_relative_paths = True
Ergün Erdoğmuş3e2bc4d2022-06-13 08:33:006gclient_gn_args_file = 'build/config/gclient_args.gni'
7gclient_gn_args = [
8]
Philip Pfaffea7673312020-07-10 13:06:499
Yang Guo4fd355c2019-09-19 08:59:0310vars = {
Tim van der Lippeceded1a2021-07-20 10:16:4711 'build_with_chromium': False,
12
Yang Guo4fd355c2019-09-19 08:59:0313 'build_url': 'https://chromium.googlesource.com/chromium/src/build.git',
devtools-ci-autoroll-builder15fe46c2023-02-28 03:05:4214 'build_revision': '0c4c8e9d71232c79433b5d52a0040d11ba2eceba',
Yang Guo4fd355c2019-09-19 08:59:0315
Tim van der Lippef7bc2e32019-11-09 20:17:4416 'buildtools_url': 'https://chromium.googlesource.com/chromium/src/buildtools.git',
devtools-ci-autoroll-builderef3ace12023-02-27 03:05:0917 'buildtools_revision': 'bdd20ec72c4c7612f5e3b26d1000239ce4f7fdb2',
Tim van der Lippef7bc2e32019-11-09 20:17:4418
Michael Achenbach4b5276f2019-12-02 14:18:0119 'depot_tools_url': 'https://chromium.googlesource.com/chromium/tools/depot_tools.git',
devtools-ci-autoroll-builder15fe46c2023-02-28 03:05:4220 'depot_tools_revision': '7bf7e06945109cad2881d8a55022bdbfb2587721',
Yang Guo4fd355c2019-09-19 08:59:0321
22 'inspector_protocol_url': 'https://chromium.googlesource.com/deps/inspector_protocol',
devtools-ci-autoroll-builder04d2e9e2023-01-10 03:07:0823 'inspector_protocol_revision': '231d3578b4bf2bec1c3d306e53621430003b4bae',
Yang Guo4fd355c2019-09-19 08:59:0324
Almothana Athamneh908bbc52021-02-11 12:57:1525 'clang_format_url': 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/clang/tools/clang-format.git',
devtools-ci-autoroll-builder13b8e0d2023-01-18 03:05:2526 'clang_format_revision': 'f97059df7f8b205064625cdb5f97b56668a125ef',
Tim van der Lippef7bc2e32019-11-09 20:17:4427
Philip Pfaffe208ac9a2022-06-29 09:53:5528 'emscripten_tag': 'ade9d780ff17c88d81aa13860361743e3c1e1396',
Philip Pfaffe02376092020-09-29 11:10:0529
Yang Guo4fd355c2019-09-19 08:59:0330 # GN CIPD package version.
devtools-ci-autoroll-builder485a9712023-02-24 12:24:4931 'gn_version': 'git_revision:fe330c0ae1ec29db30b6f830e50771a335e071fb',
Yang Guo4fd355c2019-09-19 08:59:0332
Junji Watanabe4c805762022-09-30 02:43:2933 # ninja CIPD package version.
34 # https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja
devtools-ci-autoroll-builder9ca57172023-01-17 12:23:1235 'ninja_version': 'version:2@1.11.1.chromium.6',
Junji Watanabe4c805762022-09-30 02:43:2936
Yang Guo4fd355c2019-09-19 08:59:0337 # Chromium build number for unit tests. It should be regularly updated to
38 # the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE
devtools-ci-autoroll-builder562c5742023-02-28 12:24:3839 'chromium_linux': '1110884',
Yang Guo0802bf52019-11-11 12:07:2040 # the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win_x64/LAST_CHANGE
devtools-ci-autoroll-builder562c5742023-02-28 12:24:3841 'chromium_win': '1110838',
Yang Guo0802bf52019-11-11 12:07:2042 # the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/LAST_CHANGE
devtools-ci-autoroll-builder562c5742023-02-28 12:24:3843 'chromium_mac': '1110872',
Alex Rudenko66d22512022-11-14 12:46:0144 # the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac_Arm/LAST_CHANGE
devtools-ci-autoroll-builder562c5742023-02-28 12:24:3845 'chromium_mac_arm': '1110872',
Yang Guo4fd355c2019-09-19 08:59:0346}
47
48# Only these hosts are allowed for dependencies in this DEPS file.
49# If you need to add a new host, contact chrome infrastracture team.
Thiago Perrottac88c3912022-07-14 08:36:2250allowed_hosts = [ 'chromium.googlesource.com', 'chrome-infra-packages.appspot.com' ]
Yang Guo4fd355c2019-09-19 08:59:0351
52deps = {
Takuto Ikuta6ed5f9a2022-01-19 09:13:4753 'buildtools/clang_format/script': {
54 'url': Var('clang_format_url') + '@' + Var('clang_format_revision'),
55 'condition': 'build_with_chromium == False',
56 },
Tim van der Lippef7bc2e32019-11-09 20:17:4457
Takuto Ikuta6ed5f9a2022-01-19 09:13:4758 'buildtools': {
59 'url': Var('buildtools_url') + '@' + Var('buildtools_revision'),
60 'condition': 'build_with_chromium == False',
61 },
Tim van der Lippef7bc2e32019-11-09 20:17:4462
Philip Pfaffea7673312020-07-10 13:06:4963 'buildtools/linux64': {
Yang Guo4fd355c2019-09-19 08:59:0364 'packages': [
65 {
Liviu Rauf1dd5442022-05-19 10:45:2666 'package': 'gn/gn/linux-${{arch}}',
Yang Guo4fd355c2019-09-19 08:59:0367 'version': Var('gn_version'),
68 }
69 ],
70 'dep_type': 'cipd',
Takuto Ikuta6ed5f9a2022-01-19 09:13:4771 'condition': 'host_os == "linux" and build_with_chromium == False',
Yang Guo4fd355c2019-09-19 08:59:0372 },
Philip Pfaffea7673312020-07-10 13:06:4973 'buildtools/mac': {
Yang Guo4fd355c2019-09-19 08:59:0374 'packages': [
75 {
Liviu Rauf1dd5442022-05-19 10:45:2676 'package': 'gn/gn/mac-${{arch}}',
Yang Guo4fd355c2019-09-19 08:59:0377 'version': Var('gn_version'),
78 }
79 ],
80 'dep_type': 'cipd',
Takuto Ikuta6ed5f9a2022-01-19 09:13:4781 'condition': 'host_os == "mac" and build_with_chromium == False',
Yang Guo4fd355c2019-09-19 08:59:0382 },
Philip Pfaffea7673312020-07-10 13:06:4983 'buildtools/win': {
Yang Guo4fd355c2019-09-19 08:59:0384 'packages': [
85 {
Liviu Rauf1dd5442022-05-19 10:45:2686 'package': 'gn/gn/windows-${{arch}}',
Yang Guo4fd355c2019-09-19 08:59:0387 'version': Var('gn_version'),
88 }
89 ],
90 'dep_type': 'cipd',
Takuto Ikuta6ed5f9a2022-01-19 09:13:4791 'condition': 'host_os == "win" and build_with_chromium == False',
Yang Guo4fd355c2019-09-19 08:59:0392 },
Takuto Ikutae8cb2092022-01-18 10:29:5493 'third_party/esbuild': {
94 'packages': [
95 {
96 'package': 'infra/3pp/tools/esbuild/${{platform}}',
Jack Franklin5ee20e32022-12-01 10:35:5497 'version': 'version:2@0.14.13.chromium.2',
Takuto Ikutae8cb2092022-01-18 10:29:5498 }
99 ],
100 'dep_type': 'cipd',
101 },
102
Takuto Ikuta6ed5f9a2022-01-19 09:13:47103 'build': {
104 'url': Var('build_url') + '@' + Var('build_revision'),
105 'condition': 'build_with_chromium == False',
106 },
107 'third_party/depot_tools': {
108 'url': Var('depot_tools_url') + '@' + Var('depot_tools_revision'),
109 'condition': 'build_with_chromium == False',
110 },
111 'third_party/inspector_protocol': {
112 'url': Var('inspector_protocol_url') + '@' + Var('inspector_protocol_revision'),
113 'condition': 'build_with_chromium == False',
114 },
Junji Watanabe4c805762022-09-30 02:43:29115 'third_party/ninja': {
116 'packages': [
117 {
118 'package': 'infra/3pp/tools/ninja/${{platform}}',
119 'version': Var('ninja_version'),
120 }
121 ],
122 'dep_type': 'cipd',
Junji Watanabede0a9822022-11-30 12:37:45123 'condition': 'build_with_chromium == False',
Junji Watanabe4c805762022-09-30 02:43:29124 },
Yang Guo4fd355c2019-09-19 08:59:03125}
126
127hooks = [
128 # Pull down Node binaries for WebUI toolchain.
129 {
130 'name': 'node_linux64',
131 'pattern': '.',
Tim van der Lippeceded1a2021-07-20 10:16:47132 'condition': 'host_os == "linux" and build_with_chromium == False',
Takuto Ikuta0319fe02021-11-25 05:38:09133 'action': [ 'python3',
Philip Pfaffea7673312020-07-10 13:06:49134 'third_party/depot_tools/download_from_google_storage.py',
Yang Guo4fd355c2019-09-19 08:59:03135 '--no_resume',
136 '--extract',
137 '--no_auth',
Tim van der Lippe60679102021-11-02 12:20:51138 '--bucket', 'chromium-nodejs/16.13.0',
Philip Pfaffea7673312020-07-10 13:06:49139 '-s', 'third_party/node/linux/node-linux-x64.tar.gz.sha1',
Yang Guo4fd355c2019-09-19 08:59:03140 ],
141 },
142 {
143 'name': 'node_mac',
144 'pattern': '.',
Tim van der Lippeceded1a2021-07-20 10:16:47145 'condition': 'host_os == "mac" and build_with_chromium == False',
Takuto Ikuta0319fe02021-11-25 05:38:09146 'action': [ 'python3',
Philip Pfaffea7673312020-07-10 13:06:49147 'third_party/depot_tools/download_from_google_storage.py',
Yang Guo4fd355c2019-09-19 08:59:03148 '--no_resume',
149 '--extract',
150 '--no_auth',
Tim van der Lippe60679102021-11-02 12:20:51151 '--bucket', 'chromium-nodejs/16.13.0',
Philip Pfaffea7673312020-07-10 13:06:49152 '-s', 'third_party/node/mac/node-darwin-x64.tar.gz.sha1',
Yang Guo4fd355c2019-09-19 08:59:03153 ],
154 },
155 {
156 'name': 'node_win',
157 'pattern': '.',
Tim van der Lippeceded1a2021-07-20 10:16:47158 'condition': 'host_os == "win" and build_with_chromium == False',
Takuto Ikuta0319fe02021-11-25 05:38:09159 'action': [ 'python3',
Philip Pfaffea7673312020-07-10 13:06:49160 'third_party/depot_tools/download_from_google_storage.py',
Yang Guo4fd355c2019-09-19 08:59:03161 '--no_resume',
162 '--no_auth',
Tim van der Lippe60679102021-11-02 12:20:51163 '--bucket', 'chromium-nodejs/16.13.0',
Philip Pfaffea7673312020-07-10 13:06:49164 '-s', 'third_party/node/win/node.exe.sha1',
Yang Guo4fd355c2019-09-19 08:59:03165 ],
166 },
167
168 {
169 # Ensure that the DEPS'd "depot_tools" has its self-update capability
170 # disabled.
171 'name': 'disable_depot_tools_selfupdate',
172 'pattern': '.',
Takuto Ikuta6ed5f9a2022-01-19 09:13:47173 'condition': 'build_with_chromium == False',
Yang Guo4fd355c2019-09-19 08:59:03174 'action': [
Takuto Ikuta0319fe02021-11-25 05:38:09175 'python3',
Philip Pfaffea7673312020-07-10 13:06:49176 'third_party/depot_tools/update_depot_tools_toggle.py',
Yang Guo4fd355c2019-09-19 08:59:03177 '--disable',
178 ],
179 },
180
Tim van der Lippef7bc2e32019-11-09 20:17:44181 # Pull clang-format binaries using checked-in hashes.
182 {
183 'name': 'clang_format_win',
184 'pattern': '.',
Tim van der Lippeceded1a2021-07-20 10:16:47185 'condition': 'host_os == "win" and build_with_chromium == False',
Takuto Ikuta0319fe02021-11-25 05:38:09186 'action': [ 'python3',
Philip Pfaffea7673312020-07-10 13:06:49187 'third_party/depot_tools/download_from_google_storage.py',
Tim van der Lippef7bc2e32019-11-09 20:17:44188 '--no_resume',
189 '--no_auth',
190 '--bucket', 'chromium-clang-format',
Philip Pfaffea7673312020-07-10 13:06:49191 '-s', 'buildtools/win/clang-format.exe.sha1',
Tim van der Lippef7bc2e32019-11-09 20:17:44192 ],
193 },
194 {
Eric Leese969a65f2022-03-22 14:48:27195 'name': 'clang_format_mac_x64',
Tim van der Lippef7bc2e32019-11-09 20:17:44196 'pattern': '.',
Eric Leese969a65f2022-03-22 14:48:27197 'condition': 'host_os == "mac" and build_with_chromium == False and host_cpu == "x64"',
Takuto Ikuta0319fe02021-11-25 05:38:09198 'action': [ 'python3',
Philip Pfaffea7673312020-07-10 13:06:49199 'third_party/depot_tools/download_from_google_storage.py',
Tim van der Lippef7bc2e32019-11-09 20:17:44200 '--no_resume',
201 '--no_auth',
202 '--bucket', 'chromium-clang-format',
Eric Leese969a65f2022-03-22 14:48:27203 '-s', 'buildtools/mac/clang-format.x64.sha1',
204 '-o', 'buildtools/mac/clang-format',
205 ],
206 },
207 {
208 'name': 'clang_format_mac_arm64',
209 'pattern': '.',
210 'condition': 'host_os == "mac" and build_with_chromium == False and host_cpu == "arm64"',
211 'action': [ 'python3',
212 'third_party/depot_tools/download_from_google_storage.py',
213 '--no_resume',
214 '--no_auth',
215 '--bucket', 'chromium-clang-format',
216 '-s', 'buildtools/mac/clang-format.arm64.sha1',
217 '-o', 'buildtools/mac/clang-format',
Tim van der Lippef7bc2e32019-11-09 20:17:44218 ],
219 },
220 {
221 'name': 'clang_format_linux',
222 'pattern': '.',
Tim van der Lippeceded1a2021-07-20 10:16:47223 'condition': 'host_os == "linux" and build_with_chromium == False',
Takuto Ikuta0319fe02021-11-25 05:38:09224 'action': [ 'python3',
Philip Pfaffea7673312020-07-10 13:06:49225 'third_party/depot_tools/download_from_google_storage.py',
Tim van der Lippef7bc2e32019-11-09 20:17:44226 '--no_resume',
227 '--no_auth',
228 '--bucket', 'chromium-clang-format',
Philip Pfaffea7673312020-07-10 13:06:49229 '-s', 'buildtools/linux64/clang-format.sha1',
Tim van der Lippef7bc2e32019-11-09 20:17:44230 ],
231 },
Yang Guod97dd182019-11-19 14:18:02232
Yang Guo4fd355c2019-09-19 08:59:03233 # Pull chromium from common storage
234 {
Yang Guo0802bf52019-11-11 12:07:20235 'name': 'download_chromium_win',
236 'pattern': '.',
Tim van der Lippeceded1a2021-07-20 10:16:47237 'condition': 'host_os == "win" and build_with_chromium == False',
Takuto Ikuta0319fe02021-11-25 05:38:09238 'action': [ 'python3',
Philip Pfaffea7673312020-07-10 13:06:49239 'scripts/deps/download_chromium.py',
Yang Guo0802bf52019-11-11 12:07:20240 'https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win_x64/' + Var('chromium_win') + '/chrome-win.zip',
Philip Pfaffea7673312020-07-10 13:06:49241 'third_party/chrome',
Yang Guo0802bf52019-11-11 12:07:20242 'chrome-win/chrome.exe',
243 Var('chromium_win'),
244 ],
245 },
246 {
247 'name': 'download_chromium_mac',
248 'pattern': '.',
Alex Rudenko66d22512022-11-14 12:46:01249 'condition': 'host_os == "mac" and build_with_chromium == False and host_cpu != "arm64"',
Takuto Ikuta0319fe02021-11-25 05:38:09250 'action': [ 'python3',
Philip Pfaffea7673312020-07-10 13:06:49251 'scripts/deps/download_chromium.py',
Yang Guo0802bf52019-11-11 12:07:20252 'https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/' + Var('chromium_mac') + '/chrome-mac.zip',
Philip Pfaffea7673312020-07-10 13:06:49253 'third_party/chrome',
Yang Guo0802bf52019-11-11 12:07:20254 'chrome-mac/Chromium.app/Contents',
255 Var('chromium_mac'),
256 ],
257 },
258 {
Alex Rudenko66d22512022-11-14 12:46:01259 'name': 'download_chromium_mac',
260 'pattern': '.',
261 'condition': 'host_os == "mac" and build_with_chromium == False and host_cpu == "arm64"',
262 'action': [ 'python3',
263 'scripts/deps/download_chromium.py',
264 'https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac_Arm/' + Var('chromium_mac_arm') + '/chrome-mac.zip',
265 'third_party/chrome',
266 'chrome-mac/Chromium.app/Contents',
267 Var('chromium_mac_arm'),
268 ],
269 },
270 {
Yang Guo0802bf52019-11-11 12:07:20271 'name': 'download_chromium_linux',
Yang Guo4fd355c2019-09-19 08:59:03272 'pattern': '.',
Tim van der Lippeceded1a2021-07-20 10:16:47273 'condition': 'host_os == "linux" and build_with_chromium == False',
Takuto Ikuta0319fe02021-11-25 05:38:09274 'action': [ 'python3',
Philip Pfaffea7673312020-07-10 13:06:49275 'scripts/deps/download_chromium.py',
Yang Guo0802bf52019-11-11 12:07:20276 'https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/' + Var('chromium_linux') + '/chrome-linux.zip',
Philip Pfaffea7673312020-07-10 13:06:49277 'third_party/chrome',
Yang Guo4fd355c2019-09-19 08:59:03278 'chrome-linux/chrome',
Yang Guo0802bf52019-11-11 12:07:20279 Var('chromium_linux'),
Yang Guo4fd355c2019-09-19 08:59:03280 ],
281 },
Liviu Rau2a632902020-05-13 08:02:15282 {
Tim van der Lippe08285ab2022-01-07 10:43:33283 # Update LASTCHANGE for build script timestamps
284 'name': 'lastchange',
Takuto Ikuta6ed5f9a2022-01-19 09:13:47285 'condition': 'build_with_chromium == False',
Tim van der Lippe08285ab2022-01-07 10:43:33286 'pattern': '.',
287 'action': ['python3', 'build/util/lastchange.py',
288 '-o', 'build/util/LASTCHANGE'],
289 },
290 {
Simon Quec6c55b62020-06-25 08:42:32291 'name': 'sysroot_x64',
292 'pattern': '.',
Takuto Ikuta6ed5f9a2022-01-19 09:13:47293 'condition': 'checkout_linux and checkout_x64 and build_with_chromium == False',
Takuto Ikuta0319fe02021-11-25 05:38:09294 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Simon Quec6c55b62020-06-25 08:42:32295 '--arch=x64'],
296 },
Philip Pfaffe02376092020-09-29 11:10:05297 {
298 'name': 'emscripten',
299 'pattern': '.',
Tim van der Lippeceded1a2021-07-20 10:16:47300 'condition': 'build_with_chromium == False',
Takuto Ikuta0319fe02021-11-25 05:38:09301 'action': ['python3', 'scripts/deps/download_emscripten.py', Var('emscripten_tag'), 'third_party/emscripten-releases'],
Philip Pfaffe02376092020-09-29 11:10:05302 },
Tim van der Lippe7882ce02021-05-11 13:34:27303 {
304 'name': 'VS Code settings',
305 'pattern': '.',
Tim van der Lippeceded1a2021-07-20 10:16:47306 'condition': 'build_with_chromium == False',
Takuto Ikuta0319fe02021-11-25 05:38:09307 'action': ['python3', 'third_party/node/node.py', '--output', 'scripts/deps/sync-vscode-settings.js']
Tim van der Lippe7882ce02021-05-11 13:34:27308 },
Yang Guo4fd355c2019-09-19 08:59:03309]