Dirk Pranke | 5e4f072 | 2021-11-02 14:55:55 -0700 | [diff] [blame] | 1 | # Copyright 2021 Google LLC |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | # |
| 15 | # |
| 16 | # This file is used to manage the dependencies of the chromium website tooling. |
| 17 | # It is used by gclient to determine what version of each dependency to |
| 18 | # check out, and where. |
| 19 | # |
| 20 | # For more information, please refer to the official documentation: |
| 21 | # https://sites.google.com/a/chromium.org/dev/developers/how-tos/get-the-code |
| 22 | # |
| 23 | # When adding a new dependency, please update the top-level .gitignore file |
| 24 | # to list the dependency's destination directory. |
| 25 | |
| 26 | allowed_hosts = [ |
| 27 | 'chromium.googlesource.com', |
| 28 | ] |
| 29 | |
| 30 | use_relative_paths = True |
| 31 | |
| 32 | deps = { |
Dirk Pranke | 5e4f072 | 2021-11-02 14:55:55 -0700 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | hooks = [ |
| 36 | { |
| 37 | 'name': 'node_linux64', |
| 38 | 'pattern': '.', |
| 39 | 'condition': 'host_os == "linux"', |
Dirk Pranke | 1068178 | 2021-11-04 16:13:55 -0700 | [diff] [blame] | 40 | 'action': [ 'download_from_google_storage', |
Dirk Pranke | 5e4f072 | 2021-11-02 14:55:55 -0700 | [diff] [blame] | 41 | '--no_resume', |
| 42 | '--extract', |
| 43 | '--no_auth', |
| 44 | '--bucket', 'chromium-nodejs/14.15.4', |
| 45 | '-s', 'third_party/node/linux/node-linux-x64.tar.gz.sha1', |
| 46 | ], |
| 47 | }, |
| 48 | { |
| 49 | 'name': 'node_mac', |
| 50 | 'pattern': '.', |
| 51 | 'condition': 'host_os == "mac" and host_cpu == "x64"', |
Dirk Pranke | 1068178 | 2021-11-04 16:13:55 -0700 | [diff] [blame] | 52 | 'action': [ 'download_from_google_storage', |
Dirk Pranke | 5e4f072 | 2021-11-02 14:55:55 -0700 | [diff] [blame] | 53 | '--no_resume', |
| 54 | '--extract', |
| 55 | '--no_auth', |
| 56 | '--bucket', 'chromium-nodejs/14.15.4', |
| 57 | '-s', 'third_party/node/mac/node-darwin-x64.tar.gz.sha1', |
| 58 | ], |
| 59 | }, |
| 60 | { |
| 61 | # TODO: Node 16.0 will likely ship with an official universal node binary |
| 62 | # on macOS. Once node 16.0 is released, collapse this into the node_mac hook |
| 63 | # above again and use the universal binary on mac independent of host_cpu. |
| 64 | 'name': 'node_mac_arm64', |
| 65 | 'pattern': '.', |
| 66 | 'condition': 'host_os == "mac" and host_cpu == "arm64"', |
Dirk Pranke | 1068178 | 2021-11-04 16:13:55 -0700 | [diff] [blame] | 67 | 'action': [ 'download_from_google_storage', |
Dirk Pranke | 5e4f072 | 2021-11-02 14:55:55 -0700 | [diff] [blame] | 68 | '--no_resume', |
| 69 | '--extract', |
| 70 | '--no_auth', |
| 71 | '--bucket', 'chromium-nodejs/16.0.0-pre', |
| 72 | '-s', 'third_party/node/mac/node-darwin-arm64.tar.gz.sha1', |
| 73 | ], |
| 74 | }, |
| 75 | { |
| 76 | 'name': 'node_win', |
| 77 | 'pattern': '.', |
| 78 | 'condition': 'host_os == "win"', |
Dirk Pranke | 1068178 | 2021-11-04 16:13:55 -0700 | [diff] [blame] | 79 | 'action': [ 'download_from_google_storage', |
Dirk Pranke | 5e4f072 | 2021-11-02 14:55:55 -0700 | [diff] [blame] | 80 | '--no_resume', |
| 81 | '--no_auth', |
| 82 | '--bucket', 'chromium-nodejs/14.15.4', |
| 83 | '-s', 'third_party/node/win/node.exe.sha1', |
| 84 | ], |
| 85 | }, |
| 86 | { |
| 87 | 'name': 'fetch_node_modules', |
| 88 | 'pattern': '.', |
| 89 | 'action': [ 'python3', |
| 90 | 'scripts/fetch_node_modules.py' |
| 91 | ], |
| 92 | }, |
Dirk Pranke | 00990bf | 2021-11-09 11:37:26 -0800 | [diff] [blame] | 93 | { |
| 94 | 'name': 'fetch_lobs', |
| 95 | 'pattern': '.', |
Dirk Pranke | 1107857 | 2022-02-02 13:49:59 -0800 | [diff] [blame] | 96 | 'action': [ |
| 97 | 'vpython3', |
| 98 | 'scripts/fetch_lobs.py', |
Dirk Pranke | 00990bf | 2021-11-09 11:37:26 -0800 | [diff] [blame] | 99 | ], |
| 100 | }, |
Dirk Pranke | 907c056 | 2021-11-09 13:35:31 -0800 | [diff] [blame] | 101 | { |
Dirk Pranke | 288328d | 2021-11-23 12:23:10 -0800 | [diff] [blame] | 102 | # TODO(crbug.com/1273181) - Delete this when we no longer support |
| 103 | # comparing against the old site and we can be sure that no one |
| 104 | # has anything in //build/originals. |
| 105 | 'name': 'remove_originals', |
Dirk Pranke | 907c056 | 2021-11-09 13:35:31 -0800 | [diff] [blame] | 106 | 'pattern': '.', |
Dirk Pranke | 288328d | 2021-11-23 12:23:10 -0800 | [diff] [blame] | 107 | 'action': [ |
| 108 | 'python3', |
| 109 | '-c', 'import shutil; shutil.rmtree("build/originals", ignore_errors=True)', |
Dirk Pranke | 907c056 | 2021-11-09 13:35:31 -0800 | [diff] [blame] | 110 | ], |
| 111 | }, |
Dirk Pranke | 5e4f072 | 2021-11-02 14:55:55 -0700 | [diff] [blame] | 112 | ] |