blob: a3670294c8b7e8f9a3880355fd055b74b712b8ae [file] [log] [blame]
James Robinson0c81e9b2014-10-03 15:32:44 -07001# This file is automatically processed to create .DEPS.git which is the file
2# that gclient uses under git.
3#
4# See http://code.google.com/p/chromium/wiki/UsingGit
5#
6# To test manually, run:
7# python tools/deps2git/deps2git.py -o .DEPS.git -w <gclientdir>
8# where <gcliendir> is the absolute path to the directory containing the
9# .gclient file (the parent of 'src').
10#
11# Then commit .DEPS.git locally (gclient doesn't like dirty trees) and run
12# gclient sync
13# Verify the thing happened you wanted. Then revert your .DEPS.git change
14# DO NOT CHECK IN CHANGES TO .DEPS.git upstream. It will be automatically
15# updated by a bot when you modify this one.
16#
17# When adding a new dependency, please update the top-level .gitignore file
18# to list the dependency's destination directory.
19
20vars = {
Adam Barth0352f982014-10-30 09:38:46 -070021 'chromium_git': 'https://chromium.googlesource.com',
Adam Barthc14c1e12015-01-20 10:33:54 -080022 'dart_svn': 'https://dart.googlecode.com',
Viet-Trung Luu916dc372015-04-21 13:15:25 -070023 'skia_revision': '409fd66a5afcef5f165f7ccec7c3473add231752',
Alhaad Gokhale4f513072015-03-24 10:49:34 -070024 'v8_revision': '230d131d173ab2d60291d303177bc04ec3f6e519',
Alhaad Gokhale4f513072015-03-24 10:49:34 -070025 'angle_revision': 'bdd419f9f5b006e913606e7363125942c8ae06bc',
James Robinson0fae0002015-05-05 16:31:51 -070026 'buildtools_revision': '15308f469a704c45d15567fa69cd94ce07ad0e1b',
John McCutchan4613e6b2015-05-28 07:45:06 -070027 'dart_revision': '7c02eae5ec835c410682182bd380791f69b5eb8d',
John McCutchanf84766d2015-05-06 15:36:12 -070028 'dart_observatory_packages_revision': '45565',
Alhaad Gokhale4f513072015-03-24 10:49:34 -070029 'pdfium_revision': 'b0115665b0f33971f1b7077740d51e155583cec0',
Alhaad Gokhale4f513072015-03-24 10:49:34 -070030 'boringssl_revision': '642f1498d056dbba3e50ed5a232ab2f482626dec',
Dave Moore0ae79f42015-03-17 12:56:46 -070031 'lss_revision': 'e079768b7e3a94dcbe7d338496c0c3bde7151b6e',
James Robinson6a64b812014-12-03 13:38:42 -080032 'nss_revision': 'bb4e75a43d007518ae7d618665ea2f25b0c60b63',
James Robinson0fae0002015-05-05 16:31:51 -070033 'nacl_revision': '87d5dd90911a0657c27574f78e86b7dfc4ad8b29',
John McCutchan93cf2ef2015-06-02 14:09:22 -070034 'vector_math_dart_revision': '65915583f7aa606cb47ed265f853c18c60102b81',
35 'box2d_dart_revision': 'c5e65d9546275e78ad2a1d51b459e7638f6e4323',
James Robinson0c81e9b2014-10-03 15:32:44 -070036}
37
38# Only these hosts are allowed for dependencies in this DEPS file.
Zachary Anderson309b11c2014-11-12 08:07:54 -080039# If you need to add a new host, contact chrome infrastructure team.
James Robinson0c81e9b2014-10-03 15:32:44 -070040allowed_hosts = [
James Robinson0c81e9b2014-10-03 15:32:44 -070041 'boringssl.googlesource.com',
Adam Barthc14c1e12015-01-20 10:33:54 -080042 'chromium.googlesource.com',
43 'dart.googlecode.com',
James Robinson0c81e9b2014-10-03 15:32:44 -070044 'pdfium.googlesource.com',
45]
46
47deps = {
48 'src/buildtools':
49 Var('chromium_git') + '/chromium/buildtools.git' + '@' + Var('buildtools_revision'),
50
James Robinson0c81e9b2014-10-03 15:32:44 -070051 'src/testing/gtest':
James Robinson5e66a792015-01-21 17:02:08 -080052 Var('chromium_git') + '/external/googletest.git' + '@' + 'be1868139ffe0ccd0e8e3b37292b84c821d9c8ad', # from svn revision 704
James Robinson0c81e9b2014-10-03 15:32:44 -070053
54 'src/testing/gmock':
James Robinsondf7315a2014-11-21 18:35:48 -080055 Var('chromium_git') + '/external/googlemock.git' + '@' + '29763965ab52f24565299976b936d1265cb6a271', # from svn revision 501
James Robinson0c81e9b2014-10-03 15:32:44 -070056
57 'src/third_party/angle':
58 Var('chromium_git') + '/angle/angle.git' + '@' + Var('angle_revision'),
59
60 'src/third_party/icu':
Alhaad Gokhale4f513072015-03-24 10:49:34 -070061 Var('chromium_git') + '/chromium/deps/icu.git' + '@' + '7c81740601355556e630da515b74d889ba2f8d08',
James Robinson0c81e9b2014-10-03 15:32:44 -070062
63 'src/tools/grit':
James Robinson0fae0002015-05-05 16:31:51 -070064 Var('chromium_git') + '/external/grit-i18n.git' + '@' + 'c1b1591a05209c1ad467e845ba8543c22f9072af', # from svn revision 189
James Robinson0c81e9b2014-10-03 15:32:44 -070065
James Robinson51b982b2014-10-06 11:06:50 -070066 'src/v8':
67 Var('chromium_git') + '/v8/v8.git' + '@' + Var('v8_revision'),
68
John McCutchan4613e6b2015-05-28 07:45:06 -070069 'src/dart':
70 Var('chromium_git') + '/external/github.com/dart-lang/sdk.git' + '@' + Var('dart_revision'),
Adam Barthc14c1e12015-01-20 10:33:54 -080071
John McCutchan16e03162015-04-08 07:30:38 -070072 'src/dart/third_party/observatory_pub_packages':
73 Var('dart_svn') + '/svn/third_party/observatory_pub_packages' + '@' +
74 Var('dart_observatory_packages_revision'),
75
James Robinson0c81e9b2014-10-03 15:32:44 -070076 'src/third_party/skia':
77 Var('chromium_git') + '/skia.git' + '@' + Var('skia_revision'),
78
James Robinson0c81e9b2014-10-03 15:32:44 -070079 'src/third_party/yasm/source/patched-yasm':
James Robinson6a64b812014-12-03 13:38:42 -080080 Var('chromium_git') + '/chromium/deps/yasm/patched-yasm.git' + '@' + '4671120cd8558ce62ee8672ebf3eb6f5216f909b',
James Robinson0c81e9b2014-10-03 15:32:44 -070081
82 'src/third_party/libjpeg_turbo':
83 Var('chromium_git') + '/chromium/deps/libjpeg_turbo.git' + '@' + '034e9a9747e0983bc19808ea70e469bc8342081f',
84
James Robinson0c81e9b2014-10-03 15:32:44 -070085 'src/third_party/smhasher/src':
86 Var('chromium_git') + '/external/smhasher.git' + '@' + 'e87738e57558e0ec472b2fc3a643b838e5b6e88f',
87
88 'src/third_party/pywebsocket/src':
89 Var('chromium_git') + '/external/pywebsocket/src.git' + '@' + 'cb349e87ddb30ff8d1fa1a89be39cec901f4a29c',
90
91 'src/third_party/mesa/src':
Benjamin Lerman04616822014-12-22 13:08:16 +010092 Var('chromium_git') + '/chromium/deps/mesa.git' + '@' + '071d25db04c23821a12a8b260ab9d96a097402f0',
James Robinson0c81e9b2014-10-03 15:32:44 -070093
John Abd-El-Malek7cd059b2014-10-29 11:00:40 -070094 'src/third_party/pdfium':
95 'https://pdfium.googlesource.com/pdfium.git' + '@' + Var('pdfium_revision'),
96
James Robinson0c81e9b2014-10-03 15:32:44 -070097 'src/third_party/boringssl/src':
98 'https://boringssl.googlesource.com/boringssl.git' + '@' + Var('boringssl_revision'),
John Abd-El-Malek9eb76f92014-11-07 20:45:44 -080099
Etienne Membrives24ffb7d2015-03-27 10:58:41 +0100100 'src/third_party/requests/src':
101 Var('chromium_git') + '/external/github.com/kennethreitz/requests.git' + '@' + 'f172b30356d821d180fa4ecfa3e71c7274a32de4',
James Robinson288298d2015-04-06 11:37:23 -0700102
103 'src/native_client':
104 Var('chromium_git') + '/native_client/src/native_client.git' + '@' + Var('nacl_revision'),
John McCutchan93cf2ef2015-06-02 14:09:22 -0700105
106 'src/third_party/dart-pkg/vector_math':
107 Var('chromium_git') + '/external/github.com/google/vector_math.dart.git' + '@' + Var('vector_math_dart_revision'),
108
109 'src/third_party/dart-pkg/box2d':
110 Var('chromium_git') + '/external/github.com/google/box2d.dart.git' + '@' + Var('box2d_dart_revision'),
James Robinson0c81e9b2014-10-03 15:32:44 -0700111}
112
113
114deps_os = {
James Robinsonba1e6582014-10-14 14:49:04 -0700115 'android': {
116 'src/third_party/colorama/src':
117 Var('chromium_git') + '/external/colorama.git' + '@' + '799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8',
118
119 'src/third_party/jsr-305/src':
120 Var('chromium_git') + '/external/jsr-305.git' + '@' + '642c508235471f7220af6d5df2d3210e3bfc0919',
121
James Robinson0fae0002015-05-05 16:31:51 -0700122 'src/third_party/junit/src':
123 Var('chromium_git') + '/external/junit.git' + '@' + '45a44647e7306262162e1346b750c3209019f2e1',
124
125 'src/third_party/mockito/src':
126 Var('chromium_git') + '/external/mockito/mockito.git' + '@' + 'ed99a52e94a84bd7c467f2443b475a22fcc6ba8e',
127
128 'src/third_party/robolectric/lib':
129 Var('chromium_git') + '/chromium/third_party/robolectric.git' + '@' + '6b63c99a8b6967acdb42cbed0adb067c80efc810',
130
James Robinsonba1e6582014-10-14 14:49:04 -0700131 'src/third_party/android_tools':
Alhaad Gokhale4f513072015-03-24 10:49:34 -0700132 Var('chromium_git') + '/android_tools.git' + '@' + 'a1ffd63322c438627d78ea56eb73fb8779e06950',
James Robinsonba1e6582014-10-14 14:49:04 -0700133
Scott Violet973065b2014-12-16 09:14:21 -0800134 'src/third_party/appurify-python/src':
135 Var('chromium_git') + '/external/github.com/appurify/appurify-python.git' + '@' + 'ee7abd5c5ae3106f72b2a0b9d2cb55094688e867',
136
James Robinsonba1e6582014-10-14 14:49:04 -0700137 'src/third_party/freetype':
Etienne Membrives175837a2014-12-19 15:45:38 +0100138 Var('chromium_git') + '/chromium/src/third_party/freetype.git' + '@' + 'fd6919ac23f74b876c209aba5eaa2be662086391',
Scott Violetfa8a90d2014-12-16 09:30:16 -0800139
140 'src/third_party/requests/src':
141 Var('chromium_git') + '/external/github.com/kennethreitz/requests.git' + '@' + 'f172b30356d821d180fa4ecfa3e71c7274a32de4',
James Robinsonba1e6582014-10-14 14:49:04 -0700142 },
James Robinson0c81e9b2014-10-03 15:32:44 -0700143}
144
145
James Robinson0c81e9b2014-10-03 15:32:44 -0700146hooks = [
147 {
148 # This clobbers when necessary (based on get_landmines.py). It must be the
149 # first hook so that other things that get/generate into the output
150 # directory will not subsequently be clobbered.
151 'name': 'landmines',
152 'pattern': '.',
153 'action': [
154 'python',
155 'src/build/landmines.py',
156 ],
157 },
158 {
James Robinson0c81e9b2014-10-03 15:32:44 -0700159 # Pull clang if needed or requested via GYP_DEFINES.
160 'name': 'clang',
161 'pattern': '.',
162 'action': ['python', 'src/tools/clang/scripts/update.py', '--if-needed'],
163 },
164 {
Elliot Glayshereb78aaf2015-02-17 15:46:04 -0800165 # Pull dart sdk if needed
166 'name': 'dart',
167 'pattern': '.',
168 'action': ['python', 'src/tools/dart/update.py'],
169 },
170 {
James Robinson138597c2015-02-18 16:10:20 -0800171 # This downloads SDK extras and puts them in the
172 # third_party/android_tools/sdk/extras directory on the bots. Developers
173 # need to manually install these packages and accept the ToS.
174 'name': 'sdkextras',
Scott Grahamd7f3bd82014-11-07 20:15:36 -0800175 'pattern': '.',
James Robinson138597c2015-02-18 16:10:20 -0800176 # When adding a new sdk extras package to download, add the package
177 # directory and zip file to .gitignore in third_party/android_tools.
178 'action': ['python', 'src/build/download_sdk_extras.py'],
Scott Grahamd7f3bd82014-11-07 20:15:36 -0800179 },
180 {
James Robinson0c81e9b2014-10-03 15:32:44 -0700181 # Update LASTCHANGE. This is also run by export_tarball.py in
182 # src/tools/export_tarball - please keep them in sync.
183 'name': 'lastchange',
184 'pattern': '.',
185 'action': ['python', 'src/build/util/lastchange.py',
186 '-o', 'src/build/util/LASTCHANGE'],
187 },
188 # Pull GN binaries. This needs to be before running GYP below.
189 {
190 'name': 'gn_linux32',
191 'pattern': '.',
192 'action': [ 'download_from_google_storage',
193 '--no_resume',
194 '--platform=linux*',
195 '--no_auth',
196 '--bucket', 'chromium-gn',
197 '-s', 'src/buildtools/linux32/gn.sha1',
198 ],
199 },
200 {
201 'name': 'gn_linux64',
202 'pattern': '.',
203 'action': [ 'download_from_google_storage',
204 '--no_resume',
205 '--platform=linux*',
206 '--no_auth',
207 '--bucket', 'chromium-gn',
208 '-s', 'src/buildtools/linux64/gn.sha1',
209 ],
210 },
Scott Grahamd19529d2014-11-03 15:04:31 -0800211 {
James Robinson06683f42015-05-07 11:29:37 -0700212 'name': 'gn_mac',
213 'pattern': '.',
214 'action': [ 'download_from_google_storage',
215 '--no_resume',
216 '--platform=darwin',
217 '--no_auth',
218 '--bucket', 'chromium-gn',
219 '-s', 'src/buildtools/mac/gn.sha1',
220 ],
221 },
222 {
Scott Grahamd19529d2014-11-03 15:04:31 -0800223 'name': 'gn_win',
224 'pattern': '.',
225 'action': [ 'download_from_google_storage',
226 '--no_resume',
227 '--platform=win*',
228 '--no_auth',
229 '--bucket', 'chromium-gn',
230 '-s', 'src/buildtools/win/gn.exe.sha1',
231 ],
232 },
James Robinson0c81e9b2014-10-03 15:32:44 -0700233 # Pull clang-format binaries using checked-in hashes.
234 {
235 'name': 'clang_format_linux',
236 'pattern': '.',
237 'action': [ 'download_from_google_storage',
238 '--no_resume',
239 '--platform=linux*',
240 '--no_auth',
241 '--bucket', 'chromium-clang-format',
242 '-s', 'src/buildtools/linux64/clang-format.sha1',
243 ],
244 },
James Robinson06683f42015-05-07 11:29:37 -0700245 {
246 'name': 'clang_format_mac',
247 'pattern': '.',
248 'action': [ 'download_from_google_storage',
249 '--no_resume',
250 '--platform=darwin',
251 '--no_auth',
252 '--bucket', 'chromium-clang-format',
253 '-s', 'src/buildtools/mac/clang-format.sha1',
254 ],
255 },
Eric Seidel22feaa02015-05-27 10:42:33 -0700256 # Pull sky_server binaries using checked-in hashes.
257 {
258 'name': 'sky_server_linux',
259 'pattern': '.',
260 'action': [ 'download_from_google_storage',
261 '--no_resume',
262 '--platform=linux*',
263 '--no_auth',
264 '--bucket', 'mojo',
265 '-s', 'src/sky/tools/skygo/linux64/sky_server.sha1',
266 ],
267 },
268 {
269 'name': 'sky_server_mac',
270 'pattern': '.',
271 'action': [ 'download_from_google_storage',
272 '--no_resume',
273 '--platform=darwin',
274 '--no_auth',
275 '--bucket', 'mojo',
276 '-s', 'src/sky/tools/skygo/mac/sky_server.sha1',
277 ],
278 },
James Robinson0c81e9b2014-10-03 15:32:44 -0700279 # Pull binutils for linux, enabled debug fission for faster linking /
280 # debugging when used with clang on Ubuntu Precise.
281 # https://code.google.com/p/chromium/issues/detail?id=352046
282 {
283 'name': 'binutils',
284 'pattern': 'src/third_party/binutils',
285 'action': [
286 'python',
287 'src/third_party/binutils/download.py',
288 ],
289 },
290 # Pull eu-strip binaries using checked-in hashes.
291 {
292 'name': 'eu-strip',
293 'pattern': '.',
294 'action': [ 'download_from_google_storage',
295 '--no_resume',
296 '--platform=linux*',
297 '--no_auth',
298 '--bucket', 'chromium-eu-strip',
299 '-s', 'src/build/linux/bin/eu-strip.sha1',
300 ],
301 },
Przemysław Pietrzkiewiczbd599f32015-01-23 15:25:10 -0800302 # Pull the prebuilt network service binaries according to
Colin Blundell69666252015-02-13 09:38:24 +0100303 # mojo/public/tools/NETWORK_SERVICE_VERSION.
Przemysław Pietrzkiewiczbd599f32015-01-23 15:25:10 -0800304 {
305 'name': 'download_network_service',
306 'pattern': '',
Colin Blundell25540eb2015-02-13 09:47:05 +0100307 'action': [ 'python',
308 'src/mojo/public/tools/download_network_service.py',
309 '--tools-directory', '../../../tools',
310 ],
Przemysław Pietrzkiewiczbd599f32015-01-23 15:25:10 -0800311 },
John McCutchandd167af2015-04-21 14:10:36 -0700312 # Run "pub get" on any directories with checked-in pubspec.yaml files
Colin Blundella5e74392015-04-13 16:32:14 +0200313 # (excluding sky/, whose pubspec.yaml files are not intended for supporting
314 # building in-place in the repo).
315 {
316 'name': 'run_dart_pub_get',
317 'pattern': '',
318 'action': [ 'python',
319 'src/mojo/public/tools/git/dart_pub_get.py',
320 '--repository-root', '../../../..',
321 '--dart-sdk-directory',
322 '../../../../third_party/dart-sdk/dart-sdk',
323 '--dirs-to-ignore', 'sky/',
324 ],
325 },
James Robinson0c81e9b2014-10-03 15:32:44 -0700326 {
327 # Ensure that we don't accidentally reference any .pyc files whose
328 # corresponding .py files have already been deleted.
329 'name': 'remove_stale_pyc_files',
330 'pattern': 'src/tools/.*\\.py',
331 'action': [
332 'python',
333 'src/tools/remove_stale_pyc_files.py',
334 'src/tools',
335 ],
336 },
James Robinson288298d2015-04-06 11:37:23 -0700337 {
338 # This downloads binaries for Native Client's newlib toolchain.
339 # Done in lieu of building the toolchain from scratch as it can take
340 # anywhere from 30 minutes to 4 hours depending on platform to build.
341 'name': 'nacltools',
342 'pattern': '.',
343 'action': [
344 'python', 'src/build/download_nacl_toolchains.py',
345 '--packages', 'pnacl_newlib',
346 'sync', '--extract',
347 ],
Sergey Rogulenko791dda82015-04-22 13:58:15 -0700348 },
349 {
350 # This downloads linux and android Go binaries according to
351 # tools/go/VERSION.
352 'name': 'gotools',
353 'pattern': '.',
354 'action': [
355 'python', 'src/tools/go/download.py',
356 ],
357 },
Viet-Trung Luu4ecbe5a2015-05-05 13:09:52 -0700358 # Pull DejaVu fonts using checked-in hashes.
359 {
360 'name': 'dejavu-fonts',
361 'pattern': '',
362 'action': [ 'download_from_google_storage',
363 '--no_resume',
364 '--no_auth',
365 '--bucket', 'mojo/dejavu-fonts',
366 '-s', 'src/third_party/dejavu-fonts-ttf-2.34/ttf/DejaVuSansMono.ttf.sha1',
367 ],
368 },
Andrew Wilson51778632015-06-02 16:17:29 -0700369 # Pull keyboard_native resources using checked-in hashes.
370 {
371 'name': 'keyboard_native_resources',
372 'pattern': '',
373 'action': [ 'download_from_google_storage',
374 '--no_resume',
375 '--no_auth',
376 '--bucket', 'mojo/keyboard_native',
377 '-d', 'src/services/keyboard_native/res',
378 ],
379 },
James Robinson0c81e9b2014-10-03 15:32:44 -0700380]