| OLD | NEW | 
|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python | 
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be | 
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. | 
| 5 | 5 | 
| 6 """Install Debian Wheezy sysroots for building chromium. | 6 """Install Debian Wheezy sysroots for building chromium. | 
| 7 """ | 7 """ | 
| 8 | 8 | 
| 9 # The sysroot is needed to ensure that binaries will run on Debian Wheezy, | 9 # The sysroot is needed to ensure that binaries will run on Debian Wheezy, | 
| 10 # the oldest supported linux distribution.  This script can be run manually but | 10 # the oldest supported linux distribution.  This script can be run manually but | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
| 25 import subprocess | 25 import subprocess | 
| 26 import sys | 26 import sys | 
| 27 | 27 | 
| 28 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) | 28 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) | 
| 29 sys.path.append(os.path.dirname(os.path.dirname(SCRIPT_DIR))) | 29 sys.path.append(os.path.dirname(os.path.dirname(SCRIPT_DIR))) | 
| 30 import detect_host_arch | 30 import detect_host_arch | 
| 31 import gyp_chromium | 31 import gyp_chromium | 
| 32 import gyp_environment | 32 import gyp_environment | 
| 33 | 33 | 
| 34 | 34 | 
| 35 URL_PREFIX = 'http://storage.googleapis.com' | 35 URL_PREFIX = 'http://commondatastorage.googleapis.com' | 
| 36 URL_PATH = 'chrome-linux-sysroot/toolchain' | 36 URL_PATH = 'chrome-linux-sysroot/toolchain' | 
| 37 REVISION_AMD64 = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07' | 37 REVISION_AMD64 = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07' | 
| 38 REVISION_ARM = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07' | 38 REVISION_ARM = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07' | 
| 39 REVISION_I386 = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07' | 39 REVISION_I386 = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07' | 
| 40 REVISION_MIPS = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07' | 40 REVISION_MIPS = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07' | 
| 41 TARBALL_AMD64 = 'debian_wheezy_amd64_sysroot.tgz' | 41 TARBALL_AMD64 = 'debian_wheezy_amd64_sysroot.tgz' | 
| 42 TARBALL_ARM = 'debian_wheezy_arm_sysroot.tgz' | 42 TARBALL_ARM = 'debian_wheezy_arm_sysroot.tgz' | 
| 43 TARBALL_I386 = 'debian_wheezy_i386_sysroot.tgz' | 43 TARBALL_I386 = 'debian_wheezy_i386_sysroot.tgz' | 
| 44 TARBALL_MIPS = 'debian_wheezy_mips_sysroot.tgz' | 44 TARBALL_MIPS = 'debian_wheezy_mips_sysroot.tgz' | 
| 45 TARBALL_AMD64_SHA1SUM = 'a0c85e8c964638ea4e442cb6d59b8f478830a453' | 45 TARBALL_AMD64_SHA1SUM = 'a0c85e8c964638ea4e442cb6d59b8f478830a453' | 
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 210 | 210 | 
| 211 if __name__ == '__main__': | 211 if __name__ == '__main__': | 
| 212   parser = optparse.OptionParser('usage: %prog [OPTIONS]', description=__doc__) | 212   parser = optparse.OptionParser('usage: %prog [OPTIONS]', description=__doc__) | 
| 213   parser.add_option('--running-as-hook', action='store_true', | 213   parser.add_option('--running-as-hook', action='store_true', | 
| 214                     default=False, help='Used when running from gclient hooks.' | 214                     default=False, help='Used when running from gclient hooks.' | 
| 215                                         ' Installs default sysroot images.') | 215                                         ' Installs default sysroot images.') | 
| 216   parser.add_option('--arch', type='choice', choices=valid_archs, | 216   parser.add_option('--arch', type='choice', choices=valid_archs, | 
| 217                     help='Sysroot architecture: %s' % ', '.join(valid_archs)) | 217                     help='Sysroot architecture: %s' % ', '.join(valid_archs)) | 
| 218   options, _ = parser.parse_args() | 218   options, _ = parser.parse_args() | 
| 219   sys.exit(main()) | 219   sys.exit(main()) | 
| OLD | NEW | 
|---|