blob: 303c16f418d4f1e86d95fe538c4cd376a6dd66b6 [file] [log] [blame]
Dirk Pranke5e4f0722021-11-02 14:55:55 -07001# 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
26allowed_hosts = [
27 'chromium.googlesource.com',
28]
29
30use_relative_paths = True
31
32deps = {
Dirk Pranke5e4f0722021-11-02 14:55:55 -070033}
34
35hooks = [
36 {
37 'name': 'node_linux64',
38 'pattern': '.',
39 'condition': 'host_os == "linux"',
Dirk Pranke10681782021-11-04 16:13:55 -070040 'action': [ 'download_from_google_storage',
Dirk Pranke5e4f0722021-11-02 14:55:55 -070041 '--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 Pranke10681782021-11-04 16:13:55 -070052 'action': [ 'download_from_google_storage',
Dirk Pranke5e4f0722021-11-02 14:55:55 -070053 '--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 Pranke10681782021-11-04 16:13:55 -070067 'action': [ 'download_from_google_storage',
Dirk Pranke5e4f0722021-11-02 14:55:55 -070068 '--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 Pranke10681782021-11-04 16:13:55 -070079 'action': [ 'download_from_google_storage',
Dirk Pranke5e4f0722021-11-02 14:55:55 -070080 '--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 Pranke00990bf2021-11-09 11:37:26 -080093 {
94 'name': 'fetch_lobs',
95 'pattern': '.',
Dirk Pranke11078572022-02-02 13:49:59 -080096 'action': [
97 'vpython3',
98 'scripts/fetch_lobs.py',
Dirk Pranke00990bf2021-11-09 11:37:26 -080099 ],
100 },
Dirk Pranke907c0562021-11-09 13:35:31 -0800101 {
Dirk Pranke288328d2021-11-23 12:23:10 -0800102 # 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 Pranke907c0562021-11-09 13:35:31 -0800106 'pattern': '.',
Dirk Pranke288328d2021-11-23 12:23:10 -0800107 'action': [
108 'python3',
109 '-c', 'import shutil; shutil.rmtree("build/originals", ignore_errors=True)',
Dirk Pranke907c0562021-11-09 13:35:31 -0800110 ],
111 },
Dirk Pranke5e4f0722021-11-02 14:55:55 -0700112]