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