Pull GN via CIPD package.

The gn binary will be downloaded into third_party/gn.

The part about gn_win will be true only after the buildtools_revision
will be updated by the Chromium roll.

This CL has been copied from https://chromium-review.googlesource.com/c/chromium/src/+/1117264/9/DEPS.

Bug: None
Change-Id: I3fee1d9f6c39e508871798eeeb60d74ab7bc41d1
Reviewed-on: https://webrtc-review.googlesource.com/86123
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Oleh Prypin <oprypin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23765}
This commit is contained in:
Mirko Bonadei
2018-06-28 11:36:27 +02:00
committed by Commit Bot
parent 0bd7bf0de3
commit 77cc8182ae

16
DEPS
View File

@ -104,6 +104,15 @@ deps = {
Var('chromium_git') + '/external/github.com/google/gtest-parallel' + '@' + 'cb3514a0858be0f66281d892e2242d1073fd75fe',
'src/third_party/googletest/src':
Var('chromium_git') + '/external/github.com/google/googletest.git' + '@' + 'ce468a17c434e4e79724396ee1b51d86bfc8a88b',
'src/third_party/gn': {
'packages': [
{
'package': 'gn/gn/${{platform}}',
'version': 'git_revision:f30b5738e20fdd2f00eba6298c536d66c13b09e3',
},
],
'dep_type': 'cipd',
},
'src/third_party/icu': {
'url': Var('chromium_git') + '/chromium/deps/icu.git' + '@' + '172d33141cd16df9d027cfd49bfe940b1dc66f1a',
},
@ -495,7 +504,12 @@ hooks = [
'action': ['python', 'src/build/util/lastchange.py',
'-o', 'src/build/util/LASTCHANGE'],
},
# Pull GN binaries.
# Downloads a old stub where the GN binary used to live. This is *not* the GN
# binary that anything should use any more (see third_party/gn, which is
# pulled by cipd above). This stub simply prints that it's the wrong location,
# and returns with an exit code of 1, so that we: a) notice that the wrong
# binary is being used; 2) help users who rely on gn's automatic regeneration
# so that they know to re-run `gn gen`.
{
'name': 'gn_win',
'pattern': '.',