blob: f2d3c42960ea7d29203b6e2fbecb2ed1b5b0f14d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/usr/bin/env python
# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import subprocess
import sys
def quiet(*cmd):
cmd = ' '.join(cmd).split()
subprocess.check_output(cmd)
def gn_path():
if 'linux' in sys.platform:
return 'buildtools/linux64/gn'
if 'darwin' in sys.platform:
return 'buildtools/mac/gn'
return 'buildtools/win/gn.exe'
quiet('download_from_google_storage',
'--no_resume --no_auth --bucket chromium-gn',
'-s ', gn_path() + '.sha1')
|