Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 1 | # 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 | |
| 5 | vars = { |
| 6 | 'build_url': 'https://chromium.googlesource.com/chromium/src/build.git', |
Yang Guo | 5ce37da | 2019-10-29 20:54:41 +0100 | [diff] [blame] | 7 | 'build_revision': '61ec5dc258b9fbc17504d1276e0c3eaf4656e372', |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 8 | |
Tim van der Lippe | f7bc2e3 | 2019-11-09 12:17:44 -0800 | [diff] [blame] | 9 | 'buildtools_url': 'https://chromium.googlesource.com/chromium/src/buildtools.git', |
| 10 | 'buildtools_revision': '140e4d7c45ffb55ce5dc4d11a0c3938363cd8257', |
| 11 | |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 12 | 'depot_tools_url': 'https://chromium.googlesource.com/chromium/tools/depot_tools', |
Yang Guo | 5ce37da | 2019-10-29 20:54:41 +0100 | [diff] [blame] | 13 | 'depot_tools_revision': '512f92b73181c8e1d99d38cd9b73fbf41151636a', |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 14 | |
| 15 | 'inspector_protocol_url': 'https://chromium.googlesource.com/deps/inspector_protocol', |
Yang Guo | 5ce37da | 2019-10-29 20:54:41 +0100 | [diff] [blame] | 16 | 'inspector_protocol_revision': 'd2fc9b958e1eeb1e956f3e2208afa9923bdc9b67', |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 17 | |
Tim van der Lippe | f7bc2e3 | 2019-11-09 12:17:44 -0800 | [diff] [blame] | 18 | 'clang_format_url': 'https://chromium.googlesource.com/chromium/llvm-project/cfe/tools/clang-format.git', |
| 19 | 'clang_format_revision': 'bb994c6f067340c1135eb43eed84f4b33cfa7397', |
| 20 | |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 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 Guo | 0802bf5 | 2019-11-11 13:07:20 +0100 | [diff] [blame] | 26 | 'chromium_linux': '714183', |
| 27 | # the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win_x64/LAST_CHANGE |
| 28 | 'chromium_win': '714183', |
| 29 | # the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/LAST_CHANGE |
| 30 | 'chromium_mac': '714182', |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | # Only these hosts are allowed for dependencies in this DEPS file. |
| 34 | # If you need to add a new host, contact chrome infrastracture team. |
| 35 | allowed_hosts = [ 'chromium.googlesource.com' ] |
| 36 | |
| 37 | deps = { |
Tim van der Lippe | f7bc2e3 | 2019-11-09 12:17:44 -0800 | [diff] [blame] | 38 | 'devtools-frontend/buildtools/clang_format/script': |
| 39 | Var('clang_format_url') + '@' + Var('clang_format_revision'), |
| 40 | |
| 41 | 'devtools-frontend/buildtools': |
| 42 | Var('buildtools_url') + '@' + Var('buildtools_revision'), |
| 43 | |
Yang Guo | e98b715 | 2019-11-06 16:33:09 +0100 | [diff] [blame] | 44 | 'devtools-frontend/buildtools/linux64': { |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 45 | 'packages': [ |
| 46 | { |
| 47 | 'package': 'gn/gn/linux-amd64', |
| 48 | 'version': Var('gn_version'), |
| 49 | } |
| 50 | ], |
| 51 | 'dep_type': 'cipd', |
| 52 | 'condition': 'host_os == "linux"', |
| 53 | }, |
Yang Guo | e98b715 | 2019-11-06 16:33:09 +0100 | [diff] [blame] | 54 | 'devtools-frontend/buildtools/mac': { |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 55 | 'packages': [ |
| 56 | { |
| 57 | 'package': 'gn/gn/mac-amd64', |
| 58 | 'version': Var('gn_version'), |
| 59 | } |
| 60 | ], |
| 61 | 'dep_type': 'cipd', |
| 62 | 'condition': 'host_os == "mac"', |
| 63 | }, |
Yang Guo | e98b715 | 2019-11-06 16:33:09 +0100 | [diff] [blame] | 64 | 'devtools-frontend/buildtools/win': { |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 65 | 'packages': [ |
| 66 | { |
| 67 | 'package': 'gn/gn/windows-amd64', |
| 68 | 'version': Var('gn_version'), |
| 69 | } |
| 70 | ], |
| 71 | 'dep_type': 'cipd', |
| 72 | 'condition': 'host_os == "win"', |
| 73 | }, |
| 74 | 'devtools-frontend/build': |
| 75 | Var('build_url') + '@' + Var('build_revision'), |
| 76 | 'devtools-frontend/third_party/depot_tools': |
| 77 | Var('depot_tools_url') + '@' + Var('depot_tools_revision'), |
| 78 | 'devtools-frontend/third_party/inspector_protocol': |
| 79 | Var('inspector_protocol_url') + '@' + Var('inspector_protocol_revision'), |
| 80 | } |
| 81 | |
| 82 | hooks = [ |
| 83 | # Pull down Node binaries for WebUI toolchain. |
| 84 | { |
| 85 | 'name': 'node_linux64', |
| 86 | 'pattern': '.', |
| 87 | 'condition': 'host_os == "linux"', |
| 88 | 'action': [ 'python', |
| 89 | 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py', |
| 90 | '--no_resume', |
| 91 | '--extract', |
| 92 | '--no_auth', |
| 93 | '--bucket', 'chromium-nodejs/10.15.3', |
| 94 | '-s', 'devtools-frontend/third_party/node/linux/node-linux-x64.tar.gz.sha1', |
| 95 | ], |
| 96 | }, |
| 97 | { |
| 98 | 'name': 'node_mac', |
| 99 | 'pattern': '.', |
| 100 | 'condition': 'host_os == "mac"', |
| 101 | 'action': [ 'python', |
| 102 | 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py', |
| 103 | '--no_resume', |
| 104 | '--extract', |
| 105 | '--no_auth', |
| 106 | '--bucket', 'chromium-nodejs/10.15.3', |
| 107 | '-s', 'devtools-frontend/third_party/node/mac/node-darwin-x64.tar.gz.sha1', |
| 108 | ], |
| 109 | }, |
| 110 | { |
| 111 | 'name': 'node_win', |
| 112 | 'pattern': '.', |
| 113 | 'condition': 'host_os == "win"', |
| 114 | 'action': [ 'python', |
| 115 | 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py', |
| 116 | '--no_resume', |
| 117 | '--no_auth', |
| 118 | '--bucket', 'chromium-nodejs/10.15.3', |
| 119 | '-s', 'devtools-frontend/third_party/node/win/node.exe.sha1', |
| 120 | ], |
| 121 | }, |
| 122 | |
| 123 | { |
| 124 | # Ensure that the DEPS'd "depot_tools" has its self-update capability |
| 125 | # disabled. |
| 126 | 'name': 'disable_depot_tools_selfupdate', |
| 127 | 'pattern': '.', |
| 128 | 'action': [ |
| 129 | 'python', |
| 130 | 'devtools-frontend/third_party/depot_tools/update_depot_tools_toggle.py', |
| 131 | '--disable', |
| 132 | ], |
| 133 | }, |
| 134 | |
Tim van der Lippe | f7bc2e3 | 2019-11-09 12:17:44 -0800 | [diff] [blame] | 135 | { |
| 136 | 'name': 'sysroot_x64', |
| 137 | 'pattern': '.', |
| 138 | 'condition': 'checkout_linux and checkout_x64', |
| 139 | 'action': ['python', |
| 140 | 'devtools-frontend/build/linux/sysroot_scripts/install-sysroot.py', |
| 141 | '--arch=x64'], |
| 142 | }, |
| 143 | |
| 144 | # Pull clang-format binaries using checked-in hashes. |
| 145 | { |
| 146 | 'name': 'clang_format_win', |
| 147 | 'pattern': '.', |
| 148 | 'condition': 'host_os == "win"', |
| 149 | 'action': [ 'python', |
| 150 | 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py', |
| 151 | '--no_resume', |
| 152 | '--no_auth', |
| 153 | '--bucket', 'chromium-clang-format', |
| 154 | '-s', 'devtools-frontend/buildtools/win/clang-format.exe.sha1', |
| 155 | ], |
| 156 | }, |
| 157 | { |
| 158 | 'name': 'clang_format_mac', |
| 159 | 'pattern': '.', |
| 160 | 'condition': 'host_os == "mac"', |
| 161 | 'action': [ 'python', |
| 162 | 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py', |
| 163 | '--no_resume', |
| 164 | '--no_auth', |
| 165 | '--bucket', 'chromium-clang-format', |
| 166 | '-s', 'devtools-frontend/buildtools/mac/clang-format.sha1', |
| 167 | ], |
| 168 | }, |
| 169 | { |
| 170 | 'name': 'clang_format_linux', |
| 171 | 'pattern': '.', |
| 172 | 'condition': 'host_os == "linux"', |
| 173 | 'action': [ 'python', |
| 174 | 'devtools-frontend/third_party/depot_tools/download_from_google_storage.py', |
| 175 | '--no_resume', |
| 176 | '--no_auth', |
| 177 | '--bucket', 'chromium-clang-format', |
| 178 | '-s', 'devtools-frontend/buildtools/linux64/clang-format.sha1', |
| 179 | ], |
| 180 | }, |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 181 | # Pull chromium from common storage |
| 182 | { |
Yang Guo | 0802bf5 | 2019-11-11 13:07:20 +0100 | [diff] [blame] | 183 | 'name': 'download_chromium_win', |
| 184 | 'pattern': '.', |
| 185 | 'condition': 'host_os == "win"', |
| 186 | 'action': [ 'python', |
| 187 | 'devtools-frontend/scripts/deps/download_chromium.py', |
| 188 | 'https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win_x64/' + Var('chromium_win') + '/chrome-win.zip', |
| 189 | 'devtools-frontend/third_party/chrome', |
| 190 | 'chrome-win/chrome.exe', |
| 191 | Var('chromium_win'), |
| 192 | ], |
| 193 | }, |
| 194 | { |
| 195 | 'name': 'download_chromium_mac', |
| 196 | 'pattern': '.', |
| 197 | 'condition': 'host_os == "mac"', |
| 198 | 'action': [ 'python', |
| 199 | 'devtools-frontend/scripts/deps/download_chromium.py', |
| 200 | 'https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/' + Var('chromium_mac') + '/chrome-mac.zip', |
| 201 | 'devtools-frontend/third_party/chrome', |
| 202 | 'chrome-mac/Chromium.app/Contents', |
| 203 | Var('chromium_mac'), |
| 204 | ], |
| 205 | }, |
| 206 | { |
| 207 | 'name': 'download_chromium_linux', |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 208 | 'pattern': '.', |
| 209 | 'condition': 'host_os == "linux"', |
| 210 | 'action': [ 'python', |
Yang Guo | 9117835 | 2019-10-31 08:50:19 +0100 | [diff] [blame] | 211 | 'devtools-frontend/scripts/deps/download_chromium.py', |
Yang Guo | 0802bf5 | 2019-11-11 13:07:20 +0100 | [diff] [blame] | 212 | 'https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/' + Var('chromium_linux') + '/chrome-linux.zip', |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 213 | 'devtools-frontend/third_party/chrome', |
| 214 | 'chrome-linux/chrome', |
Yang Guo | 0802bf5 | 2019-11-11 13:07:20 +0100 | [diff] [blame] | 215 | Var('chromium_linux'), |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 216 | ], |
| 217 | }, |
Yang Guo | 0802bf5 | 2019-11-11 13:07:20 +0100 | [diff] [blame] | 218 | |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 219 | ] |