blob: 4075a97f72fab69d9a9a2e520d8d77fd23bc3f2d [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
Yang Guo4fd355c2019-09-19 10:59:03 +02009 'depot_tools_url': 'https://chromium.googlesource.com/chromium/tools/depot_tools',
Yang Guo5ce37da2019-10-29 20:54:41 +010010 'depot_tools_revision': '512f92b73181c8e1d99d38cd9b73fbf41151636a',
Yang Guo4fd355c2019-09-19 10:59:03 +020011
12 'inspector_protocol_url': 'https://chromium.googlesource.com/deps/inspector_protocol',
Yang Guo5ce37da2019-10-29 20:54:41 +010013 'inspector_protocol_revision': 'd2fc9b958e1eeb1e956f3e2208afa9923bdc9b67',
Yang Guo4fd355c2019-09-19 10:59:03 +020014
Yang Guo4fd355c2019-09-19 10:59:03 +020015 # GN CIPD package version.
16 'gn_version': 'git_revision:ad9e442d92dcd9ee73a557428cfc336b55cbd533',
17
18 # Chromium build number for unit tests. It should be regularly updated to
19 # the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE
Yang Guo305ad0a2019-10-26 09:02:35 +020020 'chromium_build': '709754',
Yang Guo4fd355c2019-09-19 10:59:03 +020021}
22
23# Only these hosts are allowed for dependencies in this DEPS file.
24# If you need to add a new host, contact chrome infrastracture team.
25allowed_hosts = [ 'chromium.googlesource.com' ]
26
27deps = {
Yang Guoe98b7152019-11-06 16:33:09 +010028 'devtools-frontend/buildtools/linux64': {
Yang Guo4fd355c2019-09-19 10:59:03 +020029 'packages': [
30 {
31 'package': 'gn/gn/linux-amd64',
32 'version': Var('gn_version'),
33 }
34 ],
35 'dep_type': 'cipd',
36 'condition': 'host_os == "linux"',
37 },
Yang Guoe98b7152019-11-06 16:33:09 +010038 'devtools-frontend/buildtools/mac': {
Yang Guo4fd355c2019-09-19 10:59:03 +020039 'packages': [
40 {
41 'package': 'gn/gn/mac-amd64',
42 'version': Var('gn_version'),
43 }
44 ],
45 'dep_type': 'cipd',
46 'condition': 'host_os == "mac"',
47 },
Yang Guoe98b7152019-11-06 16:33:09 +010048 'devtools-frontend/buildtools/win': {
Yang Guo4fd355c2019-09-19 10:59:03 +020049 'packages': [
50 {
51 'package': 'gn/gn/windows-amd64',
52 'version': Var('gn_version'),
53 }
54 ],
55 'dep_type': 'cipd',
56 'condition': 'host_os == "win"',
57 },
58 'devtools-frontend/build':
59 Var('build_url') + '@' + Var('build_revision'),
60 'devtools-frontend/third_party/depot_tools':
61 Var('depot_tools_url') + '@' + Var('depot_tools_revision'),
62 'devtools-frontend/third_party/inspector_protocol':
63 Var('inspector_protocol_url') + '@' + Var('inspector_protocol_revision'),
64}
65
66hooks = [
67 # Pull down Node binaries for WebUI toolchain.
68 {
69 'name': 'node_linux64',
70 'pattern': '.',
71 'condition': 'host_os == "linux"',
72 'action': [ 'python',
73 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py',
74 '--no_resume',
75 '--extract',
76 '--no_auth',
77 '--bucket', 'chromium-nodejs/10.15.3',
78 '-s', 'devtools-frontend/third_party/node/linux/node-linux-x64.tar.gz.sha1',
79 ],
80 },
81 {
82 'name': 'node_mac',
83 'pattern': '.',
84 'condition': 'host_os == "mac"',
85 'action': [ 'python',
86 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py',
87 '--no_resume',
88 '--extract',
89 '--no_auth',
90 '--bucket', 'chromium-nodejs/10.15.3',
91 '-s', 'devtools-frontend/third_party/node/mac/node-darwin-x64.tar.gz.sha1',
92 ],
93 },
94 {
95 'name': 'node_win',
96 'pattern': '.',
97 'condition': 'host_os == "win"',
98 'action': [ 'python',
99 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py',
100 '--no_resume',
101 '--no_auth',
102 '--bucket', 'chromium-nodejs/10.15.3',
103 '-s', 'devtools-frontend/third_party/node/win/node.exe.sha1',
104 ],
105 },
106
107 {
108 # Ensure that the DEPS'd "depot_tools" has its self-update capability
109 # disabled.
110 'name': 'disable_depot_tools_selfupdate',
111 'pattern': '.',
112 'action': [
113 'python',
114 'devtools-frontend/third_party/depot_tools/update_depot_tools_toggle.py',
115 '--disable',
116 ],
117 },
118
Yang Guo4fd355c2019-09-19 10:59:03 +0200119 # Pull chromium from common storage
120 {
121 'name': 'chromium_linux',
122 'pattern': '.',
123 'condition': 'host_os == "linux"',
124 'action': [ 'python',
Yang Guo91178352019-10-31 08:50:19 +0100125 'devtools-frontend/scripts/deps/download_chromium.py',
Yang Guo4fd355c2019-09-19 10:59:03 +0200126 'https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/' + Var('chromium_build') + '/chrome-linux.zip',
127 'devtools-frontend/third_party/chrome',
128 'chrome-linux/chrome',
129 Var('chromium_build'),
130 ],
131 },
132]