Chromium Code Reviews| Index: build/linux/sysroot_scripts/install-sysroot.py |
| diff --git a/build/linux/sysroot_scripts/install-sysroot.py b/build/linux/sysroot_scripts/install-sysroot.py |
| index b15a341e0d773760da62711060950268a94e6f12..42e8bd30c67a28dfb8303c96c96452c88145ebb3 100755 |
| --- a/build/linux/sysroot_scripts/install-sysroot.py |
| +++ b/build/linux/sysroot_scripts/install-sysroot.py |
| @@ -127,14 +127,21 @@ def InstallDefaultSysroots(host_arch): |
| # available. |
| InstallSysroot('Precise', 'amd64') |
| - # Finally, if we can detect a non-standard target_arch such as ARM or |
| - # MIPS, then install the sysroot too. |
| - # Don't attampt to install arm64 since this is currently and android-only |
| - # architecture. |
| + # If we can detect a non-standard target_arch such as ARM or MIPS, |
| + # then install the sysroot too. Don't attampt to install arm64 |
|
Dirk Pranke
2017/01/23 22:39:53
Nit: s/attampt/attempt
Tom (Use chromium acct)
2017/01/24 01:30:00
Done.
|
| + # since this is currently and android-only architecture. |
| target_arch = DetectTargetArch() |
| if target_arch and target_arch not in (host_arch, 'i386'): |
| InstallDefaultSysrootForArch(target_arch) |
| + # Desktop Linux ozone builds require libxkbcommon* which is not |
| + # available in Wheezy. |
| + # TODO(thomasanderson): Remove this once the Jessie sysroot is used |
| + # by default. |
| + gyp_defines = gyp_chromium.GetGypVars(gyp_chromium.GetSupplementalFiles()) |
| + if 'use_ozone' in gyp_defines and gyp_defines['use_ozone'] == '1': |
|
Dirk Pranke
2017/01/23 22:39:53
Nit:
if gyp_defines.get('use_ozone') == '1':
Tom (Use chromium acct)
2017/01/24 01:30:00
Done.
|
| + InstallSysroot('Jessie', 'amd64') |
| + |
| def main(args): |
| parser = optparse.OptionParser('usage: %prog [OPTIONS]', description=__doc__) |
| @@ -198,7 +205,7 @@ def InstallSysroot(target_platform, target_arch): |
| if os.path.exists(stamp): |
| with open(stamp) as s: |
| if s.read() == url: |
| - print 'Debian %s %s root image already up to date: %s' % \ |
| + print '%s %s sysroot image already up to date: %s' % \ |
| (target_platform, target_arch, sysroot) |
| return |