blob: 7082e9ee902d42649c45dd4517c90fa15622ebfe [file] [log] [blame]
Yang Guo4fd355c2019-09-19 10:59:03 +02001# 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
5vars = {
6 'build_url': 'https://chromium.googlesource.com/chromium/src/build.git',
Yang Guo5ce37da2019-10-29 20:54:41 +01007 'build_revision': '61ec5dc258b9fbc17504d1276e0c3eaf4656e372',
Yang Guo4fd355c2019-09-19 10:59:03 +02008
9 'buildtools_url': 'https://chromium.googlesource.com/chromium/src/buildtools.git',
Yang Guo5ce37da2019-10-29 20:54:41 +010010 'buildtools_revision': '140e4d7c45ffb55ce5dc4d11a0c3938363cd8257',
Yang Guo4fd355c2019-09-19 10:59:03 +020011
12 'depot_tools_url': 'https://chromium.googlesource.com/chromium/tools/depot_tools',
Yang Guo5ce37da2019-10-29 20:54:41 +010013 'depot_tools_revision': '512f92b73181c8e1d99d38cd9b73fbf41151636a',
Yang Guo4fd355c2019-09-19 10:59:03 +020014
15 'inspector_protocol_url': 'https://chromium.googlesource.com/deps/inspector_protocol',
Yang Guo5ce37da2019-10-29 20:54:41 +010016 'inspector_protocol_revision': 'd2fc9b958e1eeb1e956f3e2208afa9923bdc9b67',
Yang Guo4fd355c2019-09-19 10:59:03 +020017
18 'clang_format_url': 'https://chromium.googlesource.com/chromium/llvm-project/cfe/tools/clang-format.git',
Yang Guo5ce37da2019-10-29 20:54:41 +010019 'clang_format_revision': 'bb994c6f067340c1135eb43eed84f4b33cfa7397',
Yang Guo4fd355c2019-09-19 10:59:03 +020020
21 # GN CIPD package version.
22 'gn_version': 'git_revision:ad9e442d92dcd9ee73a557428cfc336b55cbd533',
23
24 # Chromium build number for unit tests. It should be regularly updated to
25 # the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE
Yang Guo305ad0a2019-10-26 09:02:35 +020026 'chromium_build': '709754',
Yang Guo4fd355c2019-09-19 10:59:03 +020027}
28
29# Only these hosts are allowed for dependencies in this DEPS file.
30# If you need to add a new host, contact chrome infrastracture team.
31allowed_hosts = [ 'chromium.googlesource.com' ]
32
33deps = {
34 'buildtools/clang_format/script':
35 Var('clang_format_url') + '@' + Var('clang_format_revision'),
36
37 'buildtools':
38 Var('buildtools_url') + '@' + Var('buildtools_revision'),
39
40 'buildtools/linux64': {
41 'packages': [
42 {
43 'package': 'gn/gn/linux-amd64',
44 'version': Var('gn_version'),
45 }
46 ],
47 'dep_type': 'cipd',
48 'condition': 'host_os == "linux"',
49 },
50 'buildtools/mac': {
51 'packages': [
52 {
53 'package': 'gn/gn/mac-amd64',
54 'version': Var('gn_version'),
55 }
56 ],
57 'dep_type': 'cipd',
58 'condition': 'host_os == "mac"',
59 },
60 'buildtools/win': {
61 'packages': [
62 {
63 'package': 'gn/gn/windows-amd64',
64 'version': Var('gn_version'),
65 }
66 ],
67 'dep_type': 'cipd',
68 'condition': 'host_os == "win"',
69 },
70 'devtools-frontend/build':
71 Var('build_url') + '@' + Var('build_revision'),
72 'devtools-frontend/third_party/depot_tools':
73 Var('depot_tools_url') + '@' + Var('depot_tools_revision'),
74 'devtools-frontend/third_party/inspector_protocol':
75 Var('inspector_protocol_url') + '@' + Var('inspector_protocol_revision'),
76}
77
78hooks = [
79 # Pull down Node binaries for WebUI toolchain.
80 {
81 'name': 'node_linux64',
82 'pattern': '.',
83 'condition': 'host_os == "linux"',
84 'action': [ 'python',
85 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py',
86 '--no_resume',
87 '--extract',
88 '--no_auth',
89 '--bucket', 'chromium-nodejs/10.15.3',
90 '-s', 'devtools-frontend/third_party/node/linux/node-linux-x64.tar.gz.sha1',
91 ],
92 },
93 {
94 'name': 'node_mac',
95 'pattern': '.',
96 'condition': 'host_os == "mac"',
97 'action': [ 'python',
98 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py',
99 '--no_resume',
100 '--extract',
101 '--no_auth',
102 '--bucket', 'chromium-nodejs/10.15.3',
103 '-s', 'devtools-frontend/third_party/node/mac/node-darwin-x64.tar.gz.sha1',
104 ],
105 },
106 {
107 'name': 'node_win',
108 'pattern': '.',
109 'condition': 'host_os == "win"',
110 'action': [ 'python',
111 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py',
112 '--no_resume',
113 '--no_auth',
114 '--bucket', 'chromium-nodejs/10.15.3',
115 '-s', 'devtools-frontend/third_party/node/win/node.exe.sha1',
116 ],
117 },
118
119 {
120 # Ensure that the DEPS'd "depot_tools" has its self-update capability
121 # disabled.
122 'name': 'disable_depot_tools_selfupdate',
123 'pattern': '.',
124 'action': [
125 'python',
126 'devtools-frontend/third_party/depot_tools/update_depot_tools_toggle.py',
127 '--disable',
128 ],
129 },
130
131 {
132 'name': 'sysroot_x64',
133 'pattern': '.',
134 'condition': 'checkout_linux and checkout_x64',
135 'action': ['python',
136 'devtools-frontend/build/linux/sysroot_scripts/install-sysroot.py',
137 '--arch=x64'],
138 },
139
140 # Pull clang-format binaries using checked-in hashes.
141 {
142 'name': 'clang_format_win',
143 'pattern': '.',
144 'condition': 'host_os == "win"',
145 'action': [ 'python',
146 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py',
147 '--no_resume',
148 '--no_auth',
149 '--bucket', 'chromium-clang-format',
150 '-s', 'buildtools/win/clang-format.exe.sha1',
151 ],
152 },
153 {
154 'name': 'clang_format_mac',
155 'pattern': '.',
156 'condition': 'host_os == "mac"',
157 'action': [ 'python',
158 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py',
159 '--no_resume',
160 '--no_auth',
161 '--bucket', 'chromium-clang-format',
162 '-s', 'buildtools/mac/clang-format.sha1',
163 ],
164 },
165 {
166 'name': 'clang_format_linux',
167 'pattern': '.',
168 'condition': 'host_os == "linux"',
169 'action': [ 'python',
170 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py',
171 '--no_resume',
172 '--no_auth',
173 '--bucket', 'chromium-clang-format',
174 '-s', 'buildtools/linux64/clang-format.sha1',
175 ],
176 },
177
178 # Pull chromium from common storage
179 {
180 'name': 'chromium_linux',
181 'pattern': '.',
182 'condition': 'host_os == "linux"',
183 'action': [ 'python',
184 'devtools-frontend/scripts/download_chromium.py',
185 'https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/' + Var('chromium_build') + '/chrome-linux.zip',
186 'devtools-frontend/third_party/chrome',
187 'chrome-linux/chrome',
188 Var('chromium_build'),
189 ],
190 },
191]