Skip to content

Commit 570f67d

Browse files
committed
Download GN in the gclient hooks.
Recently git cl format has started requiring GN and would fail when run in the ANGLE standalone repository because the binary was not present. BUG= Change-Id: I0482db6fd6a868dc02ef6e395e6ff4817623c291 Reviewed-on: https://chromium-review.googlesource.com/326420 Reviewed-by: Jamie Madill <[email protected]> Reviewed-by: Geoff Lang <[email protected]> Commit-Queue: Corentin Wallez <[email protected]>
1 parent d1c4622 commit 570f67d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Diff for: DEPS

+34
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,40 @@ hooks = [
6666
'-s', 'buildtools/linux64/clang-format.sha1',
6767
],
6868
},
69+
# Pull GN binaries using checked-in hashes.
70+
{
71+
'name': 'gn_win',
72+
'pattern': '.',
73+
'action': [ 'download_from_google_storage',
74+
'--no_resume',
75+
'--platform=win32',
76+
'--no_auth',
77+
'--bucket', 'chromium-gn',
78+
'-s', 'buildtools/win/gn.exe.sha1',
79+
],
80+
},
81+
{
82+
'name': 'gn_mac',
83+
'pattern': '.',
84+
'action': [ 'download_from_google_storage',
85+
'--no_resume',
86+
'--platform=darwin',
87+
'--no_auth',
88+
'--bucket', 'chromium-gn',
89+
'-s', 'buildtools/mac/gn.sha1',
90+
],
91+
},
92+
{
93+
'name': 'gn_linux64',
94+
'pattern': '.',
95+
'action': [ 'download_from_google_storage',
96+
'--no_resume',
97+
'--platform=linux*',
98+
'--no_auth',
99+
'--bucket', 'chromium-gn',
100+
'-s', 'buildtools/linux64/gn.sha1',
101+
],
102+
},
69103
{
70104
# A change to a .gyp, .gypi, or to GYP itself should run the generator.
71105
"pattern": ".",

0 commit comments

Comments
 (0)