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 | 305ad0a | 2019-10-26 09:02:35 +0200 | [diff] [blame] | 26 | 'chromium_build': '709754', |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 27 | } |
| 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. |
| 31 | allowed_hosts = [ 'chromium.googlesource.com' ] |
| 32 | |
| 33 | deps = { |
Tim van der Lippe | f7bc2e3 | 2019-11-09 12:17:44 -0800 | [diff] [blame^] | 34 | 'devtools-frontend/buildtools/clang_format/script': |
| 35 | Var('clang_format_url') + '@' + Var('clang_format_revision'), |
| 36 | |
| 37 | 'devtools-frontend/buildtools': |
| 38 | Var('buildtools_url') + '@' + Var('buildtools_revision'), |
| 39 | |
Yang Guo | e98b715 | 2019-11-06 16:33:09 +0100 | [diff] [blame] | 40 | 'devtools-frontend/buildtools/linux64': { |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 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 | }, |
Yang Guo | e98b715 | 2019-11-06 16:33:09 +0100 | [diff] [blame] | 50 | 'devtools-frontend/buildtools/mac': { |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 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 | }, |
Yang Guo | e98b715 | 2019-11-06 16:33:09 +0100 | [diff] [blame] | 60 | 'devtools-frontend/buildtools/win': { |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 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 | |
| 78 | hooks = [ |
| 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 | |
Tim van der Lippe | f7bc2e3 | 2019-11-09 12:17:44 -0800 | [diff] [blame^] | 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', 'devtools-frontend/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', 'devtools-frontend/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', 'devtools-frontend/buildtools/linux64/clang-format.sha1', |
| 175 | ], |
| 176 | }, |
| 177 | |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 178 | # Pull chromium from common storage |
| 179 | { |
| 180 | 'name': 'chromium_linux', |
| 181 | 'pattern': '.', |
| 182 | 'condition': 'host_os == "linux"', |
| 183 | 'action': [ 'python', |
Yang Guo | 9117835 | 2019-10-31 08:50:19 +0100 | [diff] [blame] | 184 | 'devtools-frontend/scripts/deps/download_chromium.py', |
Yang Guo | 4fd355c | 2019-09-19 10:59:03 +0200 | [diff] [blame] | 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 | ] |